Grok  7.6.0
Public Member Functions | Private Member Functions | Private Attributes
grk::T2Decode Struct Reference

Tier-2 coding. More...

#include <T2Decode.h>

Inheritance diagram for grk::T2Decode:
grk::T2

Public Member Functions

 T2Decode (TileProcessor *tileProc)
 
bool decode_packets (uint16_t tileno, ChunkBuffer *src_buf, uint64_t *data_read)
 Decode the packets of a tile from a source buffer. More...
 

Private Member Functions

bool decode_packet (TileCodingParams *tcp, PacketIter *pi, ChunkBuffer *src_buf, uint64_t *data_read)
 Decode a packet of a tile from a source buffer. More...
 
bool skip_packet (TileCodingParams *p_tcp, PacketIter *p_pi, ChunkBuffer *src_buf, uint64_t *p_data_read)
 
bool read_packet_header (TileCodingParams *p_tcp, PacketIter *p_pi, bool *p_is_data_present, ChunkBuffer *src_buf, uint64_t *p_data_read)
 
bool read_packet_data (grk_resolution *l_res, PacketIter *p_pi, ChunkBuffer *src_buf, uint64_t *p_data_read)
 
bool skip_packet_data (grk_resolution *l_res, PacketIter *p_pi, uint64_t *p_data_read, uint64_t max_length)
 

Private Attributes

TileProcessortileProcessor
 

Additional Inherited Members

- Protected Member Functions inherited from grk::T2
bool init_seg (grk_cblk_dec *cblk, uint32_t index, uint8_t cblk_sty, bool first)
 

Detailed Description

Tier-2 coding.

Constructor & Destructor Documentation

◆ T2Decode()

grk::T2Decode::T2Decode ( TileProcessor tileProc)

Member Function Documentation

◆ decode_packet()

bool grk::T2Decode::decode_packet ( TileCodingParams tcp,
PacketIter pi,
ChunkBuffer src_buf,
uint64_t *  data_read 
)
private

Decode a packet of a tile from a source buffer.

Parameters
tcpTile coding parameters
piPacket iterator
src_bufsource buffer
data_readamount of data read
Returns
true if packet was successfully decoded

◆ decode_packets()

bool grk::T2Decode::decode_packets ( uint16_t  tileno,
ChunkBuffer src_buf,
uint64_t *  data_read 
)

Decode the packets of a tile from a source buffer.

Parameters
tilenonumber that identifies the tile for which to decompress the packets
src_bufsource buffer
data_readamount of data read
Returns
true if successful

◆ read_packet_data()

bool grk::T2Decode::read_packet_data ( grk_resolution l_res,
PacketIter p_pi,
ChunkBuffer src_buf,
uint64_t *  p_data_read 
)
private

◆ read_packet_header()

bool grk::T2Decode::read_packet_header ( TileCodingParams p_tcp,
PacketIter p_pi,
bool *  p_is_data_present,
ChunkBuffer src_buf,
uint64_t *  p_data_read 
)
private

◆ skip_packet()

bool grk::T2Decode::skip_packet ( TileCodingParams p_tcp,
PacketIter p_pi,
ChunkBuffer src_buf,
uint64_t *  p_data_read 
)
private

◆ skip_packet_data()

bool grk::T2Decode::skip_packet_data ( grk_resolution l_res,
PacketIter p_pi,
uint64_t *  p_data_read,
uint64_t  max_length 
)
private

Field Documentation

◆ tileProcessor

TileProcessor* grk::T2Decode::tileProcessor
private

The documentation for this struct was generated from the following file: