| java.lang.Object com.sun.media.imageio.plugins.tiff.TIFFCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFBaseJPEGCompressor
All known Subclasses: com.sun.media.imageioimpl.plugins.tiff.TIFFEXIFJPEGCompressor, com.sun.media.imageioimpl.plugins.tiff.TIFFJPEGCompressor,
TIFFBaseJPEGCompressor | abstract public class TIFFBaseJPEGCompressor extends TIFFCompressor (Code) | | Base class for all possible forms of JPEG compression in TIFF.
|
Method Summary | |
final public int | encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) | protected void | finalize() | protected void | initJPEGWriter(boolean supportsStreamMetadata, boolean supportsImageMetadata) Initializes the JPEGWriter and JPEGParam instance variables. |
IMAGE_METADATA_NAME | final protected static String IMAGE_METADATA_NAME(Code) | | |
JPEGStreamMetadata | protected IIOMetadata JPEGStreamMetadata(Code) | | Stream metadata equivalent to a tables-only stream such as in
the JPEGTables . Default value is null .
This should be set by any subclass which sets
writeAbbreviatedStream to true .
|
STREAM_METADATA_NAME | final protected static String STREAM_METADATA_NAME(Code) | | |
TIFFBaseJPEGCompressor | public TIFFBaseJPEGCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless, ImageWriteParam param)(Code) | | |
encode | final public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException(Code) | | |
initJPEGWriter | protected void initJPEGWriter(boolean supportsStreamMetadata, boolean supportsImageMetadata)(Code) | | Initializes the JPEGWriter and JPEGParam instance variables.
This method must be called before encode() is invoked.
Parameters: supportsStreamMetadata - Whether the JPEG writer mustsupport JPEG native stream metadata, i.e., be capable of writingabbreviated streams. Parameters: supportsImageMetadata - Whether the JPEG writer mustsupport JPEG native image metadata. |
|
|