Class CCITTG4Encoder

java.lang.Object
com.lowagie.text.pdf.codec.CCITTG4Encoder

@Deprecated public class CCITTG4Encoder extends Object
Deprecated.
Encodes data in the CCITT G4 FAX format.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private int
    Deprecated.
     
    private byte[]
    Deprecated.
     
    private static final int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private int[]
    Deprecated.
     
    private static final int
    Deprecated.
     
    private int[]
    Deprecated.
     
    private int
    Deprecated.
     
    private static byte[]
    Deprecated.
     
    private ByteBuffer
    Deprecated.
     
    private int[]
    Deprecated.
     
    private byte[]
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private static final int
    Deprecated.
     
    private int
    Deprecated.
     
    private int[][]
    Deprecated.
     
    private int[][]
    Deprecated.
     
    private int[][]
    Deprecated.
     
    private static byte[]
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CCITTG4Encoder(int width)
    Deprecated.
    Creates a new encoder.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Deprecated.
    Closes the encoder and returns the encoded data.
    static byte[]
    compress(byte[] data, int width, int height)
    Deprecated.
    Encodes a full image.
    private void
    Deprecated.
     
    void
    fax4Encode(byte[] data, int height)
    Deprecated.
    Encodes a number of lines.
    void
    fax4Encode(byte[] data, int offset, int size)
    Deprecated.
    Encodes a number of lines.
    private void
    Deprecated.
     
    private static int
    find0span(byte[] bp, int offset, int bs, int be)
    Deprecated.
     
    private static int
    find1span(byte[] bp, int offset, int bs, int be)
    Deprecated.
     
    private static int
    finddiff(byte[] bp, int offset, int bs, int be, int color)
    Deprecated.
     
    private static int
    finddiff2(byte[] bp, int offset, int bs, int be, int color)
    Deprecated.
     
    private void
    handleHorizontalMode(int a0, int a1, int a2)
    Deprecated.
     
    private int
    pixel(byte[] data, int offset, int bit)
    Deprecated.
     
    private void
    putBits(int bits, int length)
    Deprecated.
     
    private void
    putcode(int[] table)
    Deprecated.
     
    private void
    putspan(int span, int[][] tab)
    Deprecated.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LENGTH

      private static final int LENGTH
      Deprecated.
      See Also:
    • CODE

      private static final int CODE
      Deprecated.
      See Also:
    • RUNLEN

      private static final int RUNLEN
      Deprecated.
      See Also:
    • EOL

      private static final int EOL
      Deprecated.
      See Also:
    • G3CODE_EOL

      private static final int G3CODE_EOL
      Deprecated.
      See Also:
    • G3CODE_INVALID

      private static final int G3CODE_INVALID
      Deprecated.
      See Also:
    • G3CODE_EOF

      private static final int G3CODE_EOF
      Deprecated.
      See Also:
    • G3CODE_INCOMP

      private static final int G3CODE_INCOMP
      Deprecated.
      See Also:
    • zeroruns

      private static byte[] zeroruns
      Deprecated.
    • oneruns

      private static byte[] oneruns
      Deprecated.
    • rowbytes

      private int rowbytes
      Deprecated.
    • rowpixels

      private int rowpixels
      Deprecated.
    • bit

      private int bit
      Deprecated.
    • data

      private int data
      Deprecated.
    • refline

      private byte[] refline
      Deprecated.
    • outBuf

      private ByteBuffer outBuf
      Deprecated.
    • dataBp

      private byte[] dataBp
      Deprecated.
    • offsetData

      private int offsetData
      Deprecated.
    • sizeData

      private int sizeData
      Deprecated.
    • TIFFFaxWhiteCodes

      private int[][] TIFFFaxWhiteCodes
      Deprecated.
    • TIFFFaxBlackCodes

      private int[][] TIFFFaxBlackCodes
      Deprecated.
    • horizcode

      private int[] horizcode
      Deprecated.
    • passcode

      private int[] passcode
      Deprecated.
    • vcodes

      private int[][] vcodes
      Deprecated.
    • msbmask

      private int[] msbmask
      Deprecated.
  • Constructor Details

    • CCITTG4Encoder

      public CCITTG4Encoder(int width)
      Deprecated.
      Creates a new encoder.
      Parameters:
      width - the line width
  • Method Details

    • compress

      public static byte[] compress(byte[] data, int width, int height)
      Deprecated.
      Encodes a full image.
      Parameters:
      data - the data to encode
      width - the image width
      height - the image height
      Returns:
      the encoded image
    • find1span

      private static int find1span(byte[] bp, int offset, int bs, int be)
      Deprecated.
    • find0span

      private static int find0span(byte[] bp, int offset, int bs, int be)
      Deprecated.
    • finddiff

      private static int finddiff(byte[] bp, int offset, int bs, int be, int color)
      Deprecated.
    • finddiff2

      private static int finddiff2(byte[] bp, int offset, int bs, int be, int color)
      Deprecated.
    • fax4Encode

      public void fax4Encode(byte[] data, int offset, int size)
      Deprecated.
      Encodes a number of lines.
      Parameters:
      data - the data to be encoded
      offset - the offset into the data
      size - the size of the data to be encoded
    • fax4Encode

      public void fax4Encode(byte[] data, int height)
      Deprecated.
      Encodes a number of lines.
      Parameters:
      data - the data to be encoded
      height - the number of lines to encode
    • putcode

      private void putcode(int[] table)
      Deprecated.
    • putspan

      private void putspan(int span, int[][] tab)
      Deprecated.
    • putBits

      private void putBits(int bits, int length)
      Deprecated.
    • Fax3Encode2DRow

      private void Fax3Encode2DRow()
      Deprecated.
    • handleHorizontalMode

      private void handleHorizontalMode(int a0, int a1, int a2)
      Deprecated.
    • Fax4PostEncode

      private void Fax4PostEncode()
      Deprecated.
    • close

      public byte[] close()
      Deprecated.
      Closes the encoder and returns the encoded data.
      Returns:
      the encoded data
    • pixel

      private int pixel(byte[] data, int offset, int bit)
      Deprecated.