| Modifier and Type | Field and Description |
|---|---|
| private boolean | isReadActiveOnly
Whether to read the active source region only. |
| private int | originalSrcHeight
The original value of |
| private int | originalSrcMinX
The original value of |
| private int | originalSrcMinY
The original value of |
| private int | originalSrcWidth
The original value of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | beginDecoding()
Overrides com. This routine is called prior to a sequence of calls to the
|
| public void | decode()
Overrides com. Decodes the input bit stream (located in the
|
| public void | decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride)
Implements abstract com. Decodes the source data into the provided |
| isReadActiveOnly | back to summary |
|---|---|
| private boolean isReadActiveOnly Whether to read the active source region only. | |
| originalSrcHeight | back to summary |
|---|---|
| private int originalSrcHeight The original value of | |
| originalSrcMinX | back to summary |
|---|---|
| private int originalSrcMinX The original value of | |
| originalSrcMinY | back to summary |
|---|---|
| private int originalSrcMinY The original value of | |
| originalSrcWidth | back to summary |
|---|---|
| private int originalSrcWidth The original value of | |
| TIFFNullDecompressor | back to summary |
|---|---|
| public TIFFNullDecompressor() | |
| beginDecoding | back to summary |
|---|---|
| public void beginDecoding() Overrides com. Doc from com. This routine is called prior to a sequence of calls to the
The default implementation computes tables used by the
| |
| decode | back to summary |
|---|---|
| public void decode() throws IOException Overrides com. Doc from com. Decodes the input bit stream (located in the
The default implementation analyzes the destination image
to determine if it is suitable as the destination for the
The precise responsibilities of this routine are as
follows. The input bit stream is defined by the instance
variables The source data is required to be subsampling, starting at
the Pixels are copied into the destination with an addition shift of
( dx = (sx - sourceXOffset)/subsampleX + dstXOffset; dy = (sy - sourceYOffset)/subsampleY + dstYOffset;Only source pixels such that (sx - sourceXOffset) %
subsampleX == 0 and (sy - sourceYOffset) %
subsampleY == 0 are copied.
The inverse mapping, from destination to source coordinates, is one-to-one: sx = (dx - dstXOffset)*subsampleX + sourceXOffset; sy = (dy - dstYOffset)*subsampleY + sourceYOffset; The region of the destination image to be updated is given
by the instance variables It is possible that not all of the source data being read
will contribute to the destination image. For example, the
destination offsets could be set such that some of the source
pixels land outside of the bounds of the image. As a
convenience, the bounds of the active source region (that is,
the region of the strip or tile being read that actually
contributes to the destination image, taking clipping into
account) are available as The sequence of source bands given by
Some standard tag information is provided the instance
variables In practice, unless there is a significant performance
advantage to be gained by overriding this routine, most users
will prefer to use the default implementation of this routine,
and instead override the
| |
| decodeRaw | back to summary |
|---|---|
| public void decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride) throws IOException Implements abstract com. Doc from com. Decodes the source data into the provided
| |