|
Grok 20.3.2
|
T2 parsing of packets. More...
#include <T2Decompress.h>
Public Member Functions | |
| T2Decompress (ITileProcessor *tileProc) | |
| Constructs a T2Decompress object. | |
| virtual | ~T2Decompress (void)=default |
| Destroys a T2Decompress object. | |
| bool | parsePackets (uint16_t tileno, PacketCache *compressedPackets) |
| Parses tile packets. | |
Private Member Functions | |
| bool | parsePacket (uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno, PacketCache *compressedPackets) |
| Parses packet. | |
| void | parsePacketData (Resolution *res, PacketParser *parser, uint64_t precinctIndex, bool enqueue) |
| Parses packet data. | |
Private Attributes | |
| ITileProcessor * | tileProcessor |
| ITileProcessor for this tile | |
T2 parsing of packets.
|
explicit |
|
virtualdefault |
Destroys a T2Decompress object.
|
private |
Parses packet.
| compno | component number |
| resno | resolution number |
| precinctIndex | precinct index |
| layno | layer number |
| compressedPackets | PacketCache of buffers containing packets |
References grk::PacketCache::gen(), grk::PacketParser::getHeaderLength(), grk::PacketCache::next(), parsePacketData(), grk::PacketParser::readHeader(), and tileProcessor.
Referenced by parsePackets().
|
private |
Parses packet data.
| res | Resolution |
| parser | PacketParser |
| precinctIndex | precinct index |
| enqueue | if true, enqueue packet data for concurrent parsing. NOTE: this is only possible if packet length is known before any parsing is done, for example if there is a PLT/PLM marker, or packet header was previously read |
References grk::ResolutionPacketParser::enqueue(), grk::Resolution::packetParser_, and grk::PacketParser::parsePacketData().
Referenced by parsePacket().
| bool grk::T2Decompress::parsePackets | ( | uint16_t | tileno, |
| PacketCache * | compressedPackets ) |
Parses tile packets.
| tileno | index of tile |
| compressedPackets | PacketCache of buffers containing packets |
References grk::FINAL_PASS, grk::PacketManager::getPacketIter(), grk::grklog, parsePacket(), and tileProcessor.
|
private |
ITileProcessor for this tile
Referenced by parsePacket(), parsePackets(), and T2Decompress().