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
-
public class J2KImageReadParamJava extends J2KImageReadParam
A subclass ofImageReadParam
for reading images in the JPEG 2000 format.The decoding parameters for JPEG 2000 are listed below:
JPEG 2000 Plugin Decoding Parameters 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 dependingparsingEnabled
. The default isDouble.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, sourceRenderSize
-
Fields inherited from class javax.imageio.IIOParam
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
-
-
Constructor Summary
Constructors Constructor Description J2KImageReadParamJava()
Constructs a default instance ofJ2KImageReadParamJava
.J2KImageReadParamJava(ImageReadParam param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getNoROIDescaling()
GetsnoROIDescaling
boolean
getParsingEnabled()
GetsparsingEnabled
void
setNoROIDescaling(boolean value)
SetsnoROIDescaling
void
setParsingEnabled(boolean value)
SetsparsingEnabled
-
Methods inherited from class com.sun.media.imageio.plugins.jpeg2000.J2KImageReadParam
getDecodingRate, getResolution, setDecodingRate, setResolution
-
Methods inherited from class javax.imageio.ImageReadParam
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSize
-
Methods inherited from class javax.imageio.IIOParam
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling
-
-
-
-
Constructor Detail
-
J2KImageReadParamJava
public J2KImageReadParamJava()
Constructs a default instance ofJ2KImageReadParamJava
.
-
J2KImageReadParamJava
public J2KImageReadParamJava(ImageReadParam param)
-
-
Method Detail
-
setNoROIDescaling
public void setNoROIDescaling(boolean value)
SetsnoROIDescaling
-
getNoROIDescaling
public boolean getNoROIDescaling()
GetsnoROIDescaling
-
setParsingEnabled
public void setParsingEnabled(boolean value)
SetsparsingEnabled
-
getParsingEnabled
public boolean getParsingEnabled()
GetsparsingEnabled
-
-