public class TIFFJPEGDecompressor extends TIFFDecompressor
| Modifier and Type | Field and Description | 
|---|---|
| private byte[] | data | 
| private static boolean | DEBUG | 
| protected static int | EOI | 
| protected boolean | hasJPEGTables | 
| protected ImageReadParam | JPEGParam | 
| protected ImageReader | JPEGReader | 
| protected static int | SOI | 
| protected byte[] | tables | 
activeSrcHeight, activeSrcMinX, activeSrcMinY, activeSrcWidth, bitsPerSample, byteCount, colorConverter, colorMap, compression, destinationBands, dstHeight, dstMinX, dstMinY, dstWidth, dstXOffset, dstYOffset, extraSamples, image, metadata, offset, photometricInterpretation, planar, rawImage, reader, sampleFormat, samplesPerPixel, sourceBands, sourceXOffset, sourceYOffset, srcHeight, srcMinX, srcMinY, srcWidth, stream, subsampleX, subsampleY| Constructor and Description | 
|---|
| TIFFJPEGDecompressor() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | beginDecoding()This routine is called prior to a sequence of calls to the
  decodemethod, in order to allow any necessary
 tables or other structures to be initialized based on metadata
 values. | 
| void | decodeRaw(byte[] b,
         int dstOffset,
         int bitsPerPixel,
         int scanlineStride)Decodes the source data into the provided  bytearrayb, starting at the offset given bydstOffset. | 
| protected void | finalize() | 
createRawImage, decode, decodeRaw, decodeRaw, decodeRaw, getRawImageType, getRawImageTypeSpecifier, setActiveSrcHeight, setActiveSrcMinX, setActiveSrcMinY, setActiveSrcWidth, setBitsPerSample, setByteCount, setColorConverter, setColorMap, setCompression, setDestinationBands, setDstHeight, setDstMinX, setDstMinY, setDstWidth, setDstXOffset, setDstYOffset, setExtraSamples, setImage, setMetadata, setOffset, setPhotometricInterpretation, setPlanar, setReader, setSampleFormat, setSamplesPerPixel, setSourceBands, setSourceXOffset, setSourceYOffset, setSrcHeight, setSrcMinX, setSrcMinY, setSrcWidth, setStream, setSubsampleX, setSubsampleYprivate static final boolean DEBUG
protected static final int SOI
protected static final int EOI
protected ImageReader JPEGReader
protected ImageReadParam JPEGParam
protected boolean hasJPEGTables
protected byte[] tables
private byte[] data
public void beginDecoding()
TIFFDecompressordecode method, in order to allow any necessary
 tables or other structures to be initialized based on metadata
 values.  This routine is guaranteed to be called any time the
 metadata values have changed.
  The default implementation computes tables used by the
 decode method to rescale components to different
 bit depths.  Thus, if this method is overridden, it is
 important for the subclass method to call super(),
 unless it overrides decode as well.
beginDecoding in class TIFFDecompressorpublic void decodeRaw(byte[] b,
             int dstOffset,
             int bitsPerPixel,
             int scanlineStride)
               throws IOException
TIFFDecompressorbyte
 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.decodeRaw in class TIFFDecompressorb - a byte array to be written.dstOffset - the starting offset in b to be
 written.bitsPerPixel - the number of bits for each pixel.scanlineStride - the number of bytes to
 advance between that starting pixels of each scanline.IOException - if an error occurs reading from the source
 ImageInputStream.Copyright © 2015 Open Microscopy Environment