[]
Returns the specified code-block in the current tile for the specified component (as a reference or copy).
<p>The returned code-block may be progressive, which is indicated by
the 'progressive' variable of the returned 'DataBlk' object. If a
code-block is progressive it means that in a later request to this
method for the same code-block it is possible to retrieve data which is
a better approximation, since meanwhile more data to decode for the
code-block could have been received. If the code-block is not
progressive then later calls to this method for the same code-block
will return the exact same data values.</p><p>The data returned by this method can be the data in the internal
buffer of this object, if any, and thus can not be modified by the
caller. The 'offset' and 'scanw' of the returned data can be
arbitrary. See the 'DataBlk' class.</p><p>The 'ulx' and 'uly' members of the returned 'DataBlk' object contain
the coordinates of the top-left corner of the block, with respect to
the tile, not the subband.</p>
DataBlk getInternCodeBlock(int c, int m, int n, SubbandSyn sb, DataBlk cblk)
Type | Name | Description |
---|---|---|
int | c | The component for which to return the next code-block. |
int | m | The vertical index of the code-block to return, in the specified subband. |
int | n | The horizontal index of the code-block to return, in the specified subband. |
SubbandSyn | sb | The subband in which the code-block to return is. |
DataBlk | cblk | If non-null this object will be used to return the new code-block. If null a new one will be allocated and returned. If the "data" array of the object is non-null it will be reused, if possible, to return the data. |
Type | Description |
---|---|
DataBlk | The next code-block in the current tile for component 'n', or null if all code-blocks for the current tile have been returned. |