[]
This class reads the bit stream (with the help of HeaderDecoder for tile headers and PktDecoder for packets header and body) and retrives location of all code-block's codewords.
<p>Note: All tile-parts headers are read by the constructor whereas packets
are processed when decoding related tile (when setTile method is
called).</p><p>In parsing mode, the reader simulates a virtual layer-resolution
progressive bit stream with the same truncation points in each code-block,
whereas in truncation mode, only the first bytes are taken into account (it
behaves like if it is a real truncated codestream).</p>
public class FileBitstreamReaderAgent : BitstreamReaderAgent, CodedCBlkDataSrcDec, InvWTData, MultiResImgData
Name | Description |
---|---|
FileBitstreamReaderAgent(HeaderDecoder, RandomAccessIO, DecoderSpecs, ParameterList, bool, HeaderInfo) | Reads all tiles headers and keep offset of their first packet. Finally it calls the rate allocation method. |
Name | Description |
---|---|
pktDec | Reference to the PktDecoder instance |
Name | Description |
---|---|
CBlkInfo | Gets the reference to the CBlkInfo array |
Name | Description |
---|---|
getCodeBlock(int, int, int, SubbandSyn, int, int, DecLyrdCBlk) | Returns the specified coded code-block, for the specified component, in the current tile. The first layer to return is indicated by 'fl'. The number of layers that is returned depends on 'nl' and the amount of available data.
|
getNumTileParts(int) | Returns the number of tile-part found for a given tile |
nextTile() | Advances to the next tile, in standard scan-line order (by rows then columns). A NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile). |
setTile(int, int) | Changes the current tile, given the new indexes. An IllegalArgumentException is thrown if the indexes do not correspond to a valid tile. |