Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFLSBDecompressor

extends TIFFDecompressor
Class Inheritance
Imports
java.io.IOException

Field Summary

Modifier and TypeField and Description
private static final byte[]
flipTable

Table for flipping bytes from LSB-to-MSB to MSB-to-LSB.

Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
activeSrcHeightactiveSrcMinXactiveSrcMinYactiveSrcWidthbitsPerSamplebyteCountcolorConvertercolorMapcompressiondestinationBandsdstHeightdstMinXdstMinYdstWidthdstXOffsetdstYOffsetextraSamplesimagemetadataoffsetphotometricInterpretationplanarplanarBandrawImagereadersampleFormatsamplesPerPixelsourceBandssourceXOffsetsourceYOffsetsrcHeightsrcMinXsrcMinYsrcWidthstreamsubsampleXsubsampleY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
decodeRaw(byte[]
a byte array to be written.
b
,
int
the starting offset in b to be written.
dstOffset
,
int
the number of bits for each pixel.
bitsPerPixel
,
int
the number of bytes to advance between that starting pixels of each scanline.
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.

Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
beginDecodingcreateComponentCMcreateInterleavedSMcreateRawImagedecodedecodeRawdecodeRawdecodeRawdecodeRawgetRawImageTypegetRawImageTypeSpecifiersetActiveSrcHeightsetActiveSrcMinXsetActiveSrcMinYsetActiveSrcWidthsetBitsPerSamplesetByteCountsetColorConvertersetColorMapsetCompressionsetDestinationBandssetDstHeightsetDstMinXsetDstMinYsetDstWidthsetDstXOffsetsetDstYOffsetsetExtraSamplessetImagesetMetadatasetOffsetsetPhotometricInterpretationsetPlanarsetPlanarBandsetReadersetSampleFormatsetSamplesPerPixelsetSourceBandssetSourceXOffsetsetSourceYOffsetsetSrcHeightsetSrcMinXsetSrcMinYsetSrcWidthsetStreamsetSubsampleXsetSubsampleY

Field Detail

flipTableback to summary
private static final byte[] flipTable

Table for flipping bytes from LSB-to-MSB to MSB-to-LSB.

Constructor Detail

TIFFLSBDecompressorback to summary
public TIFFLSBDecompressor()

Method Detail

decodeRawback to summary
public void decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, 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.

Parameters
b:byte[]

a byte array to be written.

dstOffset:int

the starting offset in b to be written.

bitsPerPixel:int

the number of bits for each pixel.

scanlineStride:int

the number of bytes to advance between that starting pixels of each scanline.

Exceptions
IOException:
if an error occurs reading from the source ImageInputStream.