Tier-2 coding.
More...
#include <T2Compress.h>
|
| T2Compress (TileProcessor *tileProc) |
|
bool | compress_packets (uint16_t tileno, uint16_t maxlayers, BufferedStream *stream, uint32_t *p_data_written, bool first_poc_tile_part, uint32_t tppos, uint32_t pino) |
|
bool | compress_packets_simulate (uint16_t tileno, uint16_t maxlayers, uint32_t *p_data_written, uint32_t max_len, uint32_t tppos, PacketLengthMarkers *markers) |
| Simulate compressing packets of a tile to a destination buffer. More...
|
|
◆ T2Compress()
◆ compress_packet()
Encode a packet of a tile to a destination buffer.
- Parameters
-
tcp | Tile coding parameters |
pi | packet iterator |
stream | stream |
p_data_written | amount of data written |
- Returns
References grk::PacketIter::compno, grk::grk_tile::comps, grk::TileCodingParams::csty, grk::GRK_ERROR(), grk::GRK_INFO(), grk::GRK_WARN(), grk::PacketTracker::is_packet_encoded(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, J2K_MS_EPH, J2K_MS_SOP, grk::PacketIter::layno, grk::Layer::len, grk::TileProcessor::m_packetTracker, grk::Layer::numpasses, grk::PacketTracker::packet_encoded(), grk::PacketIter::precinctIndex, grk::PacketIter::resno, grk::TileComponent::resolutions, grk::tag_tree_uninitialized_node_value, grk::BufferedStream::tell(), grk::TileProcessor::tile, tileProcessor, grk::BufferedStream::write_byte(), and grk::BufferedStream::write_bytes().
Referenced by compress_packets().
◆ compress_packet_simulate()
Encode a packet of a tile to a destination buffer.
- Parameters
-
tcp | Tile coding parameters |
pi | packet iterator |
p_data_written | amount of data written |
len | length of the destination buffer |
markers | packet length markers |
- Returns
References grk::PacketIter::compno, grk::grk_tile::comps, grk::TileCodingParams::csty, grk::GRK_ERROR(), grk::GRK_INFO(), grk::GRK_WARN(), grk::PacketTracker::is_packet_encoded(), J2K_CP_CSTY_EPH, J2K_CP_CSTY_SOP, grk::PacketIter::layno, grk::TileProcessor::m_packetTracker, grk::PacketTracker::packet_encoded(), grk::PacketIter::precinctIndex, grk::PacketIter::resno, grk::TileComponent::resolutions, grk::tag_tree_uninitialized_node_value, grk::TileProcessor::tile, tileProcessor, and grk::PacketLengthMarkers::writeNext().
Referenced by compress_packets_simulate().
◆ compress_packets()
bool grk::T2Compress::compress_packets |
( |
uint16_t |
tileno, |
|
|
uint16_t |
maxlayers, |
|
|
BufferedStream * |
stream, |
|
|
uint32_t * |
p_data_written, |
|
|
bool |
first_poc_tile_part, |
|
|
uint32_t |
tppos, |
|
|
uint32_t |
pino |
|
) |
| |
References compress_packet(), grk::FINAL_PASS, grk::GRK_ERROR(), GRK_PROG_UNKNOWN, grk::TileProcessor::image, grk::TileProcessor::m_cp, grk::pi_create_compress(), grk::pi_destroy(), grk::pi_enable_tile_part_generation(), grk::pi_next(), grk::TileProcessor::tile, and tileProcessor.
◆ compress_packets_simulate()
bool grk::T2Compress::compress_packets_simulate |
( |
uint16_t |
tileno, |
|
|
uint16_t |
maxlayers, |
|
|
uint32_t * |
p_data_written, |
|
|
uint32_t |
max_len, |
|
|
uint32_t |
tppos, |
|
|
PacketLengthMarkers * |
markers |
|
) |
| |
Simulate compressing packets of a tile to a destination buffer.
- Parameters
-
tileno | number of the tile encoded |
maxlayers | maximum number of layers |
p_data_written | amount of data written |
max_len | the max length of the destination buffer |
tppos | position of the tile part flag in the progression order |
markers | markers |
References grk::PacketTracker::clear(), compress_packet_simulate(), grk::GRK_ERROR(), grk::GRK_INFO(), GRK_PROFILE_CINEMA_4K, GRK_PROG_UNKNOWN, grk::TileProcessor::image, grk::TileProcessor::m_cp, grk::TileProcessor::m_packetTracker, _grk_image::numcomps, grk::pi_create_compress(), grk::pi_destroy(), grk::pi_enable_tile_part_generation(), grk::pi_next(), grk::THRESH_CALC, and tileProcessor.
◆ tileProcessor
The documentation for this struct was generated from the following files: