|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jj2000.j2k.image.ImgDataAdapter | +--jj2000.j2k.entropy.encoder.EntropyCoder
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.
Quantizer
,
CBlkQuantDataSrcEnc
Field Summary | |
static char |
OPT_PREFIX
The prefix for entropy coder options: 'C' |
private static java.lang.String[][] |
pinfo
The list of parameters that is accepted for entropy coding. |
protected CBlkQuantDataSrcEnc |
src
The source of quantized wavelet coefficients |
Fields inherited from class jj2000.j2k.image.ImgDataAdapter |
imgdatasrc,
tIdx |
Fields inherited from interface jj2000.j2k.entropy.StdEntropyCoderOptions |
FIRST_BYPASS_PASS_IDX,
MAX_CB_AREA,
MAX_CB_DIM,
MIN_CB_DIM,
NUM_EMPTY_PASSES_IN_MS_BP,
NUM_NON_BYPASS_MS_BP,
NUM_PASSES,
OPT_BYPASS,
OPT_ER_TERM,
OPT_REG_TERM,
OPT_RESET_MQ,
OPT_SEG_MARKERS,
OPT_VERT_STR_CAUSAL,
STRIPE_HEIGHT |
Constructor Summary | |
EntropyCoder(CBlkQuantDataSrcEnc src)
Initializes the source of quantized wavelet coefficients. |
Method Summary | |
static EntropyCoder |
createInstance(CBlkQuantDataSrcEnc src,
EncoderSpecs encSpec,
ParameterList pl)
Creates a EntropyCoder object for the appropriate entropy coding parameters in the parameter list 'pl', and having 'src' as the source of quantized data. |
abstract int |
getCBlkHeight(int t,
int c)
Returns the code-block height for the specified tile and component. |
abstract int |
getCBlkWidth(int t,
int c)
Returns the code-block width for the specified tile and component. |
static java.lang.String[][] |
getParameterInfo()
Returns the parameters that are used in this class and implementing classes. |
int |
getPartitionULX()
Returns the horizontal coordinate of the origin of the cell and code-block partition, with respect to the canvas origin, on the reference grid. |
int |
getPartitionULY()
Returns the vertical coordinate of the origin of the cell and code-block partition, with respect to the canvas origin, on the reference grid. |
SubbandAn |
getSubbandTree(int t,
int c)
Returns a reference to the root of subband tree structure representing the subband decomposition for the specified tile-component. |
boolean |
isReversible(int t,
int c)
Returns the reversibility of the tile-component data that is provided by the object. |
Methods inherited from class jj2000.j2k.image.ImgDataAdapter |
getCompHeight,
getCompImgHeight,
getCompImgWidth,
getCompSubsX,
getCompSubsY,
getCompWidth,
getHeight,
getImgHeight,
getImgULX,
getImgULY,
getImgWidth,
getNomRangeBits,
getNumComps,
getNumTiles,
getNumTiles,
getTile,
getTileIdx,
getTileOff,
getULX,
getULY,
getWidth,
nextTile,
setTile |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final char OPT_PREFIX
private static final java.lang.String[][] pinfo
protected CBlkQuantDataSrcEnc src
Constructor Detail |
public EntropyCoder(CBlkQuantDataSrcEnc src)
src
- The source of quantized wavelet coefficients.Method Detail |
public abstract int getCBlkWidth(int t, int c)
t
- The tile indexc
- the component indexpublic abstract int getCBlkHeight(int t, int c)
t
- The tile indexc
- the component indexpublic boolean isReversible(int t, int c)
Since entropy coders themselves are always reversible, it returns the reversibility of the data that comes from the 'CBlkQuantDataSrcEnc' source object (i.e. ROIScaler).
t
- Tile indexc
- Component indexROIScaler
public SubbandAn getSubbandTree(int t, int c)
t
- The index of the tile.c
- The index of the component.SubbandAn
,
Subband
public int getPartitionULX()
public int getPartitionULY()
public static java.lang.String[][] getParameterInfo()
public static EntropyCoder createInstance(CBlkQuantDataSrcEnc src, EncoderSpecs encSpec, ParameterList pl)
src
- The source of data to be entropy codedencSpec
- The encoder specificationspl
- The parameter list (or options).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |