|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a source of entropy coded data and methods to transfer it in a code-block by code-block basis. In each call to 'getNextCodeBlock()' a new coded code-block is returned. The code-block are retruned in no specific-order.
This interface is the source of data for the rate allocator. See the 'PostCompRateAllocator' class.
For each coded-code-block the entropy-coded data is returned along with the rate-distortion statistics in a 'CBlkRateDistStats' object.
PostCompRateAllocator
,
CBlkRateDistStats
,
EntropyCoder
Method Summary | |
CBlkRateDistStats |
getNextCodeBlock(int c,
CBlkRateDistStats ccb)
Returns the next coded code-block in the current tile for the specified component, as a copy (see below). |
int |
getPPX(int t,
int c,
int r)
Returns the width of a packet for the specified tile-component and resolution level. |
int |
getPPY(int t,
int c,
int r)
Returns the height of a packet for the specified tile-component and resolution level. |
boolean |
precinctPartitionUsed(int c,
int t)
Returns true if the precinct partition is used for the specified component and tile, returns false otherwise |
Methods inherited from interface jj2000.j2k.wavelet.analysis.ForwWTDataProps |
getAnSubbandTree, getCbULX, getCbULY, isReversible |
Methods inherited from interface jj2000.j2k.image.ImgData |
getCompImgHeight, getCompImgWidth, getCompSubsX, getCompSubsY, getCompULX, getCompULY, getImgHeight, getImgULX, getImgULY, getImgWidth, getNomRangeBits, getNomTileHeight, getNomTileWidth, getNumComps, getNumTiles, getNumTiles, getTile, getTileCompHeight, getTileCompWidth, getTileHeight, getTileIdx, getTilePartULX, getTilePartULY, getTileWidth, nextTile, setTile |
Method Detail |
public CBlkRateDistStats getNextCodeBlock(int c, CBlkRateDistStats ccb)
When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.
The data returned by this method is always a copy of the internal data of this object, if any, and it can be modified "in place" without any problems after being returned.
c
- The component for which to return the next code-block.ccb
- If non-null this object might be used in returning the coded
code-block in this or any subsequent call to this method. If null a new
one is created and returned. If the 'data' array of 'cbb' is not null
it may be reused to return the compressed data.
CBlkRateDistStats
public int getPPX(int t, int c, int r)
t
- The tilec
- The componentr
- The resolution level
public int getPPY(int t, int c, int r)
t
- The tilec
- The componentr
- The resolution level
public boolean precinctPartitionUsed(int c, int t)
c
- The componentt
- The tile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |