public class TIFFJPEGCompressor extends TIFFBaseJPEGCompressor
Modifier and Type | Class and Description |
---|---|
private static class |
TIFFJPEGCompressor.JPEGSPIFilter
A filter which identifies the ImageReaderSpi of a JPEG reader
which supports JPEG native stream metadata.
|
Modifier and Type | Field and Description |
---|---|
(package private) static int |
CHROMA_SUBSAMPLING |
private static boolean |
DEBUG |
IMAGE_METADATA_NAME, JPEGParam, JPEGStreamMetadata, JPEGWriter, STREAM_METADATA_NAME, writeAbbreviatedStream
compressionTagValue, compressionType, isCompressionLossless, metadata, stream, writer
Constructor and Description |
---|
TIFFJPEGCompressor(ImageWriteParam param) |
Modifier and Type | Method and Description |
---|---|
private static ImageReader |
getJPEGTablesReader()
Retrieves a JPEG reader which supports native JPEG stream metadata.
|
void |
setMetadata(IIOMetadata metadata)
Sets the value of the
metadata field. |
encode, finalize, initJPEGWriter
getCompressionTagValue, getCompressionType, getMetadata, getStream, getWriter, isCompressionLossless, setStream, setWriter
private static final boolean DEBUG
static final int CHROMA_SUBSAMPLING
public TIFFJPEGCompressor(ImageWriteParam param)
private static ImageReader getJPEGTablesReader()
public void setMetadata(IIOMetadata metadata)
metadata
field.
The implementation in this class also adds the TIFF fields JPEGTables, YCbCrSubSampling, YCbCrPositioning, and ReferenceBlackWhite superseding any prior settings of those fields.
setMetadata
in class TIFFCompressor
metadata
- the IIOMetadata
object for the
image being written.TIFFCompressor.getMetadata()
Copyright © 2016 Open Microscopy Environment