Class J2KImageReadParamJava
java.lang.Object
javax.imageio.IIOParam
javax.imageio.ImageReadParam
com.sun.media.imageio.plugins.jpeg2000.J2KImageReadParam
com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReadParamJava
A subclass of
ImageReadParam for reading images in
the JPEG 2000 format.
The decoding parameters for JPEG 2000 are listed below:
| Parameter Name | Description |
|---|---|
| decodingRate | Specifies the decoding rate in bits per pixel (bpp) where the
number of pixels is related to the image's original size (Note:
this parameter is not affected by resolution). The
codestream is either parsed (default) or truncated depending
parsingEnabled. The default is Double.MAX_VALUE.
It means decoding with the encoding rate.
|
| resolution | Specifies the resolution level wanted for the decoded image
(0 means the lowest available resolution, the resolution
level gives an image with the original dimension). If the given index
is greater than the number of available resolution levels of the
compressed image, the decoded image has the lowest available
resolution (among all tile-components). This parameter affects only
the inverse wavelet transform and not the number of bytes read by the
codestream parser, which depends only on decodingRate.
|
| noROIDescaling | Ensures that no ROI de-scaling is performed. Decompression is done like there is no ROI in the image. |
| parsingEnabled | Enable the parsing mode or not when the decoding rate is specified. If it is false, the codestream is decoded as if it were truncated to the given rate. If it is true, the decoder creates, truncates and decodes a virtual layer progressive codestream with the same truncation points in each code-block. |
-
Field Summary
Fields inherited from class javax.imageio.ImageReadParam
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSizeFields inherited from class javax.imageio.IIOParam
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default instance ofJ2KImageReadParamJava. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGetsnoROIDescalingbooleanGetsparsingEnabledvoidsetNoROIDescaling(boolean value) SetsnoROIDescalingvoidsetParsingEnabled(boolean value) SetsparsingEnabledMethods inherited from class com.sun.media.imageio.plugins.jpeg2000.J2KImageReadParam
getDecodingRate, getResolution, setDecodingRate, setResolutionMethods inherited from class javax.imageio.ImageReadParam
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSizeMethods inherited from class javax.imageio.IIOParam
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling
-
Constructor Details
-
J2KImageReadParamJava
public J2KImageReadParamJava()Constructs a default instance ofJ2KImageReadParamJava. -
J2KImageReadParamJava
-
-
Method Details
-
setNoROIDescaling
public void setNoROIDescaling(boolean value) SetsnoROIDescaling -
getNoROIDescaling
public boolean getNoROIDescaling()GetsnoROIDescaling -
setParsingEnabled
public void setParsingEnabled(boolean value) SetsparsingEnabled -
getParsingEnabled
public boolean getParsingEnabled()GetsparsingEnabled
-