Tier-2 decoding.
More...
#include <T2Decompress.h>
|
bool | decompress_packet (TileCodingParams *tcp, PacketIter *pi, ChunkBuffer *src_buf, uint64_t *data_read) |
| Decompress 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 (Resolution *l_res, PacketIter *p_pi, ChunkBuffer *src_buf, uint64_t *p_data_read) |
|
bool | skip_packet_data (Resolution *l_res, PacketIter *p_pi, uint64_t *p_data_read, uint64_t max_length) |
|
void | init_seg (DecompressCodeblock *cblk, uint32_t index, uint8_t cblk_sty, bool first) |
|
◆ T2Decompress()
◆ decompress_packet()
◆ decompress_packets()
bool grk::T2Decompress::decompress_packets |
( |
uint16_t |
tileno, |
|
|
ChunkBuffer * |
src_buf, |
|
|
uint64_t * |
data_read |
|
) |
| |
Decompress the packets of a tile from a source buffer.
- Parameters
-
tileno | number that identifies the tile for which to decompress the packets |
src_buf | source buffer |
data_read | amount of data read |
- Returns
- true if successful
References debugDecompressPackets, decompress_packet(), grk::ChunkBuffer::get_cur_chunk_len(), grk::PacketLengthMarkers::getInit(), grk::GRK_ERROR(), grk::GRK_INFO(), GRK_PROG_UNKNOWN, grk::GRK_WARN(), grk::TileProcessor::image, grk::ChunkBuffer::incr_cur_chunk_offset(), grk::TileProcessor::m_cp, grk::pi_create_decompress(), grk::pi_destroy(), grk::pi_next(), grk::TileProcessor::plt_markers, skip_packet(), grk::TileProcessor::tile, and tileProcessor.
◆ init_seg()
void grk::T2Decompress::init_seg |
( |
DecompressCodeblock * |
cblk, |
|
|
uint32_t |
index, |
|
|
uint8_t |
cblk_sty, |
|
|
bool |
first |
|
) |
| |
|
private |
◆ read_packet_data()
References grk::Resolution::band, grk::ChunkBuffer::get_cur_chunk_len(), grk::ChunkBuffer::get_cur_chunk_ptr(), grk::Precinct::getDecompressedBlockPtr(), grk::Subband::getPrecinct(), grk::GRK_ERROR(), grk::ChunkBuffer::incr_cur_chunk_offset(), grk::seg::len, grk::Resolution::numBandWindows, grk::seg::numpasses, and grk::PacketIter::precinctIndex.
Referenced by decompress_packet().
◆ read_packet_header()
References grk::TileComponentCodingParams::cblk_sty, grk::PacketIter::compno, grk::grk_tile::comps, grk::TileCodingParams::csty, grk::TileProcessor::current_plugin_tile, grk::ChunkBuffer::get_cur_chunk_len(), grk::ChunkBuffer::get_cur_chunk_ptr(), grk::GRK_ERROR(), GRK_J2K_MAXRLVLS, grk::GRK_WARN(), init_seg(), J2K_CP_CSTY_SOP, J2K_MS_SOP, grk::PacketIter::layno, grk::TileProcessor::m_corrupt_packet, grk::TileProcessor::m_cp, grk::TileProcessor::m_tile_index, grk::max_passes_per_segment, grk::max_precision_jpeg_2000, grk::seg::numpasses, grk::TileCodingParams::ppt, grk::TileCodingParams::ppt_data, grk::TileCodingParams::ppt_len, grk::PacketIter::precinctIndex, grk::PacketIter::resno, grk::TileComponent::resolutions, grk::tag_tree_uninitialized_node_value, grk::TileCodingParams::tccps, grk::TileProcessor::tile, and tileProcessor.
Referenced by decompress_packet().
◆ skip_packet()
◆ skip_packet_data()
bool grk::T2Decompress::skip_packet_data |
( |
Resolution * |
l_res, |
|
|
PacketIter * |
p_pi, |
|
|
uint64_t * |
p_data_read, |
|
|
uint64_t |
max_length |
|
) |
| |
|
private |
◆ tileProcessor
The documentation for this struct was generated from the following files: