| java.lang.Object jj2000.j2k.image.ImgDataAdapter jj2000.j2k.entropy.encoder.EntropyCoder
All known Subclasses: jj2000.j2k.entropy.encoder.StdEntropyCoder,
EntropyCoder | abstract public class EntropyCoder extends ImgDataAdapter implements CodedCBlkDataSrcEnc,StdEntropyCoderOptions(Code) | | This abstract class provides the general interface for block-based entropy
encoders. The input to the entropy coder is the quantized wavelet
coefficients, or codewords, represented in sign magnitude. The output is a
compressed code-block with rate-distortion information.
The source of data for objects of this class are 'CBlkQuantDataSrcEnc'
objects.
For more details on the sign magnitude representation used see the
Quantizer class.
This class provides default implemenations for most of the methods
(wherever it makes sense), under the assumption that the image and
component dimensions, and the tiles, are not modifed by the entropy
coder. If that is not the case for a particular implementation then the
methods should be overriden.
See Also: Quantizer See Also: CBlkQuantDataSrcEnc |
Method Summary | |
public static EntropyCoder | createInstance(CBlkQuantDataSrcEnc src, J2KImageWriteParamJava wp, CBlkSizeSpec cblks, PrecinctSizeSpec pss, StringSpec bms, StringSpec mqrs, StringSpec rts, StringSpec css, StringSpec sss, StringSpec lcs, StringSpec tts) Creates a EntropyCoder object for the appropriate entropy coding
parameters in the parameter list 'pl', and having 'src' as the source
of quantized data. | public SubbandAn | getAnSubbandTree(int t, int c) Returns a reference to the root of subband tree structure representing
the subband decomposition for the specified tile-component.
Parameters: t - The index of the tile. Parameters: c - The index of the component. | abstract public int | getCBlkHeight(int t, int c) Returns the code-block height for the specified tile and component. | abstract public int | getCBlkWidth(int t, int c) Returns the code-block width for the specified tile and component. | public int | getCbULX() Returns the horizontal offset of the code-block partition. | public int | getCbULY() Returns the vertical offset of the code-block partition. | public static String[][] | getParameterInfo() Returns the parameters that are used in this class and
implementing classes. | public boolean | isReversible(int t, int c) Returns the reversibility of the tile-component data that is provided
by the object. |
OPT_PREFIX | final public static char OPT_PREFIX(Code) | | The prefix for entropy coder options: 'C'
|
EntropyCoder | public EntropyCoder(CBlkQuantDataSrcEnc src)(Code) | | Initializes the source of quantized wavelet coefficients.
Parameters: src - The source of quantized wavelet coefficients. |
createInstance | public static EntropyCoder createInstance(CBlkQuantDataSrcEnc src, J2KImageWriteParamJava wp, CBlkSizeSpec cblks, PrecinctSizeSpec pss, StringSpec bms, StringSpec mqrs, StringSpec rts, StringSpec css, StringSpec sss, StringSpec lcs, StringSpec tts)(Code) | | Creates a EntropyCoder object for the appropriate entropy coding
parameters in the parameter list 'pl', and having 'src' as the source
of quantized data.
Parameters: src - The source of data to be entropy coded Parameters: wp - The parameter list (or options). Parameters: cbks - Code-block size specifications Parameters: pss - Precinct partition specifications Parameters: bms - By-pass mode specifications Parameters: mqrs - MQ-reset specifications Parameters: rts - Regular termination specifications Parameters: css - Causal stripes specifications Parameters: sss - Error resolution segment symbol use specifications Parameters: lcs - Length computation specifications Parameters: tts - Termination type specifications exception: IllegalArgumentException - If an error occurs while parsingthe options in 'pl' |
getAnSubbandTree | public SubbandAn getAnSubbandTree(int t, int c)(Code) | | Returns a reference to the root of subband tree structure representing
the subband decomposition for the specified tile-component.
Parameters: t - The index of the tile. Parameters: c - The index of the component. The root of the subband tree structure, see Subband. See Also: SubbandAn See Also: Subband |
getCBlkHeight | abstract public int getCBlkHeight(int t, int c)(Code) | | Returns the code-block height for the specified tile and component.
Parameters: t - The tile index Parameters: c - the component index The code-block height for the specified tile and component |
getCBlkWidth | abstract public int getCBlkWidth(int t, int c)(Code) | | Returns the code-block width for the specified tile and component.
Parameters: t - The tile index Parameters: c - the component index The code-block width for the specified tile and component |
getCbULX | public int getCbULX()(Code) | | Returns the horizontal offset of the code-block partition. Allowable
values are 0 and 1, nothing else.
|
getCbULY | public int getCbULY()(Code) | | Returns the vertical offset of the code-block partition. Allowable
values are 0 and 1, nothing else.
|
getParameterInfo | public static String[][] getParameterInfo()(Code) | | Returns the parameters that are used in this class and
implementing classes. It returns a 2D String array. Each of the
1D arrays is for a different option, and they have 3
elements. The first element is the option name, the second one
is the synopsis, the third one is a long description of what
the parameter is and the fourth is its default value. The
synopsis or description may be 'null', in which case it is
assumed that there is no synopsis or description of the option,
respectively. Null may be returned if no options are supported.
the options name, their synopsis and their explanation,or null if no options are supported. |
isReversible | public boolean isReversible(int t, int c)(Code) | | Returns the reversibility of the tile-component data that is provided
by the object. Data is reversible when it is suitable for lossless and
lossy-to-lossless compression.
Since entropy coders themselves are always reversible, it returns
the reversibility of the data that comes from the 'CBlkQuantDataSrcEnc'
source object (i.e. ROIScaler).
Parameters: t - Tile index Parameters: c - Component index true is the data is reversible, false if not. See Also: jj2000.j2k.roi.encoder.ROIScaler |
|
|