Class TIFFJPEGCompressor
- java.lang.Object
-
- com.github.jaiimageio.plugins.tiff.TIFFCompressor
-
- com.github.jaiimageio.impl.plugins.tiff.TIFFBaseJPEGCompressor
-
- com.github.jaiimageio.impl.plugins.tiff.TIFFJPEGCompressor
-
public class TIFFJPEGCompressor extends TIFFBaseJPEGCompressor
Compressor for encoding compression type 7, TTN2/Adobe JPEG-in-TIFF.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TIFFJPEGCompressor.JPEGSPIFilter
A filter which identifies the ImageReaderSpi of a JPEG reader which supports JPEG native stream metadata.
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
CHROMA_SUBSAMPLING
private static boolean
DEBUG
-
Fields inherited from class com.github.jaiimageio.impl.plugins.tiff.TIFFBaseJPEGCompressor
IMAGE_METADATA_NAME, JPEGParam, JPEGStreamMetadata, JPEGWriter, STREAM_METADATA_NAME, writeAbbreviatedStream
-
Fields inherited from class com.github.jaiimageio.plugins.tiff.TIFFCompressor
compressionTagValue, compressionType, isCompressionLossless, metadata, stream, writer
-
-
Constructor Summary
Constructors Constructor Description TIFFJPEGCompressor(javax.imageio.ImageWriteParam param)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static javax.imageio.ImageReader
getJPEGTablesReader()
Retrieves a JPEG reader which supports native JPEG stream metadata.void
setMetadata(javax.imageio.metadata.IIOMetadata metadata)
Sets the value of themetadata
field.-
Methods inherited from class com.github.jaiimageio.impl.plugins.tiff.TIFFBaseJPEGCompressor
encode, finalize, initJPEGWriter
-
Methods inherited from class com.github.jaiimageio.plugins.tiff.TIFFCompressor
dispose, getCompressionTagValue, getCompressionType, getMetadata, getStream, getWriter, isCompressionLossless, setStream, setWriter
-
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
-
CHROMA_SUBSAMPLING
static final int CHROMA_SUBSAMPLING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJPEGTablesReader
private static javax.imageio.ImageReader getJPEGTablesReader()
Retrieves a JPEG reader which supports native JPEG stream metadata.
-
setMetadata
public void setMetadata(javax.imageio.metadata.IIOMetadata metadata)
Sets the value of themetadata
field.The implementation in this class also adds the TIFF fields JPEGTables, YCbCrSubSampling, YCbCrPositioning, and ReferenceBlackWhite superseding any prior settings of those fields.
- Overrides:
setMetadata
in classTIFFCompressor
- Parameters:
metadata
- theIIOMetadata
object for the image being written.- See Also:
TIFFCompressor.getMetadata()
-
-