APIdia Launch Partner
Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

pack-priv Class TIFFFaxDecompressor

extends TIFFDecompressor
Class Inheritance
Imports
java.io.IOException, .EOFException, javax.imageio.IIOException, javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFField, com.sun.imageio.plugins.common.ReaderUtil

Field Summary

Modifier and TypeField and Description
private static short[]
private int
private int
private static short[]
private byte[]
private int
private int
private int[]
private byte[]
private int
fillBits

EOL padding flag: 1 if fill bits have been added before an EOL such that the EOL ends on a byte boundary, 0 otherwise.

private int
fillOrder

The logical order of bits within a byte.

pack-priv static byte[]
private int
h

private static short[]
private int
private int
private int
oneD

Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.

private int[]
private int
private int
private static int[]
private static int[]
private static short[]
private static byte[]
private int
uncompressedMode

Uncompressed mode flag: 1 if uncompressed, 0 if not.

private int
w

private static short[]
Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
activeSrcHeightactiveSrcMinXactiveSrcMinYactiveSrcWidthbitsPerSamplebyteCountcolorConvertercolorMapcompressiondestinationBandsdstHeightdstMinXdstMinYdstWidthdstXOffsetdstYOffsetextraSamplesimagemetadataoffsetphotometricInterpretationplanarplanarBandrawImagereadersampleFormatsamplesPerPixelsourceBandssourceXOffsetsourceYOffsetsrcHeightsrcMinXsrcMinYsrcWidthstreamsubsampleXsubsampleY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
beginDecoding()

Overrides com.sun.imageio.plugins.tiff.TIFFDecompressor.beginDecoding.

Invokes the superclass method and then sets instance variables on the basis of the metadata set on this decompressor.

private int
public void
decodeNextScanline(int lineIndex)

public void
decodeRaw(byte[] b, int dstOffset, int pixelBitStride, int scanlineStride)

Implements abstract com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Decodes the source data into the provided byte array b, starting at the offset given by dstOffset.

public void
public void
public synchronized void
private int
private int
private void
getNextChangingElement(int a0, boolean isWhite, int[] ret)

private int
nextLesserThan8Bits(int bitsToGet)

private int
nextNBits(int bitsToGet)

private void
setToBlack(int bitNum, int numBits)

private void
updatePointer(int bitsToMoveBack)

private void
Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
createComponentCMcreateInterleavedSMcreateRawImagedecodedecodeRawdecodeRawdecodeRawdecodeRawgetRawImageTypegetRawImageTypeSpecifiersetActiveSrcHeightsetActiveSrcMinXsetActiveSrcMinYsetActiveSrcWidthsetBitsPerSamplesetByteCountsetColorConvertersetColorMapsetCompressionsetDestinationBandssetDstHeightsetDstMinXsetDstMinYsetDstWidthsetDstXOffsetsetDstYOffsetsetExtraSamplessetImagesetMetadatasetOffsetsetPhotometricInterpretationsetPlanarsetPlanarBandsetReadersetSampleFormatsetSamplesPerPixelsetSourceBandssetSourceXOffsetsetSourceYOffsetsetSrcHeightsetSrcMinXsetSrcMinYsetSrcWidthsetStreamsetSubsampleXsetSubsampleY

Field Detail

additionalMakeupback to summary
private static short[] additionalMakeup
bitPointerback to summary
private int bitPointer
bitsPerScanlineback to summary
private int bitsPerScanline
blackback to summary
private static short[] black
bufferback to summary
private byte[] buffer
bytePointerback to summary
private int bytePointer
changingElemSizeback to summary
private int changingElemSize
currChangingElemsback to summary
private int[] currChangingElems
databack to summary
private byte[] data
fillBitsback to summary
private int fillBits

EOL padding flag: 1 if fill bits have been added before an EOL such that the EOL ends on a byte boundary, 0 otherwise.

fillOrderback to summary
private int fillOrder

The logical order of bits within a byte.

1 = MSB-to-LSB
2 = LSB-to-MSB (flipped)
flipTableback to summary
pack-priv static byte[] flipTable
hback to summary
private int h
initBlackback to summary
private static short[] initBlack
lastChangingElementback to summary
private int lastChangingElement
lineBitNumback to summary
private int lineBitNum
oneDback to summary
private int oneD

Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.

prevChangingElemsback to summary
private int[] prevChangingElems
t4Optionsback to summary
private int t4Options
t6Optionsback to summary
private int t6Options
table1back to summary
private static int[] table1
table2back to summary
private static int[] table2
twoBitBlackback to summary
private static short[] twoBitBlack
twoDCodesback to summary
private static byte[] twoDCodes
uncompressedModeback to summary
private int uncompressedMode

Uncompressed mode flag: 1 if uncompressed, 0 if not.

wback to summary
private int w
whiteback to summary
private static short[] white

Constructor Detail

TIFFFaxDecompressorback to summary
public TIFFFaxDecompressor()

Method Detail

beginDecodingback to summary
public void beginDecoding()

Overrides com.sun.imageio.plugins.tiff.TIFFDecompressor.beginDecoding.

Invokes the superclass method and then sets instance variables on the basis of the metadata set on this decompressor.

Annotations
@Override
decodeBlackCodeWordback to summary
private int decodeBlackCodeWord() throws IIOException
decodeNextScanlineback to summary
public void decodeNextScanline(int lineIndex) throws IIOException
decodeRawback to summary
public void decodeRaw(byte[] b, int dstOffset, int pixelBitStride, int scanlineStride) throws IOException

Implements abstract com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Doc from com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Decodes the source data into the provided byte array b, starting at the offset given by dstOffset. Each pixel occupies bitsPerPixel bits, with no padding between pixels. Scanlines are separated by scanlineStride bytes.

Annotations
@Override
Exceptions
IOException:
if an error occurs reading from the source ImageInputStream.
decodeRLEback to summary
public void decodeRLE() throws IIOException
decodeT4back to summary
public void decodeT4() throws IIOException
decodeT6back to summary
public synchronized void decodeT6() throws IIOException
decodeWhiteCodeWordback to summary
private int decodeWhiteCodeWord() throws IIOException
findNextLineback to summary
private int findNextLine() throws IIOException, EOFException
getNextChangingElementback to summary
private void getNextChangingElement(int a0, boolean isWhite, int[] ret) throws IIOException
nextLesserThan8Bitsback to summary
private int nextLesserThan8Bits(int bitsToGet) throws IIOException
nextNBitsback to summary
private int nextNBits(int bitsToGet) throws IIOException
setToBlackback to summary
private void setToBlack(int bitNum, int numBits)
updatePointerback to summary
private void updatePointer(int bitsToMoveBack)
warningback to summary
private void warning(String msg)