[]
This class is used to read packet's head and body. All the members must be re-initialized at the beginning of each tile thanks to the restart() method.
public class PktDecoder
| Name | Description |
|---|---|
| PktDecoder(DecoderSpecs, HeaderDecoder, RandomAccessIO, BitstreamReaderAgent, bool, int) | Creates an empty PktDecoder object associated with given decoder specifications and HeaderDecoder. This object must be initialized thanks to the restart method before being used. |
| Name | Description |
|---|---|
| getNumPrecinct(int, int) | Gets the number of precincts in a given component and resolution level. |
| getPPX(int, int, int) | Returns the precinct partition width for the specified component, resolution level and tile. |
| getPPY(int, int, int) | Returns the precinct partition height for the specified component, resolution level and tile. |
| getPrecInfo(int, int, int) | Get PrecInfo instance of the specified resolution level, component and precinct. |
| readEPHMarker(PktHeaderBitReader) | Try to read an EPH marker. If it is not possible then an Error is thrown. |
| readPktBody(int, int, int, int, CBlkInfo[][][], int[]) | Reads specificied packet body in order to find offset of each code-block's piece of codeword. This use the list of found code-blocks in previous red packet head. |
| readPktHead(int, int, int, int, CBlkInfo[][][], int[]) | Read specified packet head and found length of each code-block's piece of codewords as well as number of skipped most significant bit-planes. |
| readSOPMarker(int[], int, int, int) | Try to read a SOP marker and check that its sequence number if not out of sequence. If so, an error is thrown. |
| restart(int, int[], int, CBlkInfo[][][][][], bool, MemoryStream) | Re-initialize the PktDecoder instance at the beginning of a new tile. |