Grok
9.5.0
|
Packet iterator. More...
#include <PacketIter.h>
Public Member Functions | |
PacketIter () | |
~PacketIter () | |
void | init (PacketManager *packetMan) |
uint8_t * | get_include (uint16_t layerIndex) |
bool | update_include (void) |
void | destroy_include (void) |
bool | next (void) |
Modify the packet iterator to point to the next packet. More... | |
void | update_dxy (void) |
Public Attributes | |
bool | enableTilePartGeneration |
Enabling Tile part generation. More... | |
uint64_t | step_l |
layer step used to localize the packet in the include vector More... | |
uint64_t | step_r |
resolution step used to localize the packet in the include vector More... | |
uint64_t | step_c |
component step used to localize the packet in the include vector More... | |
uint32_t | step_p |
precinct step used to localize the packet in the include vector More... | |
uint16_t | compno |
component that identify the packet More... | |
uint8_t | resno |
resolution that identify the packet More... | |
uint64_t | precinctIndex |
precinct that identify the packet More... | |
uint16_t | layno |
layer that identify the packet More... | |
grk_progression | prog |
progression order More... | |
uint16_t | numcomps |
number of components in the image More... | |
PiComp * | comps |
Components. More... | |
uint32_t | tx0 |
tile bounds in canvas coordinates More... | |
uint32_t | ty0 |
uint32_t | tx1 |
uint32_t | ty1 |
uint32_t | x |
packet coordinates More... | |
uint32_t | y |
uint32_t | dx |
component sub-sampling More... | |
uint32_t | dy |
Private Member Functions | |
bool | isSingleProgression (void) |
bool | generatePrecinctIndex (void) |
grkRectU32 | generatePrecinct (uint64_t precinctIndex) |
void | update_dxy_for_comp (PiComp *comp) |
bool | next_cprl (void) |
Get next packet in component-precinct-resolution-layer order. More... | |
bool | next_pcrl (void) |
Get next packet in precinct-component-resolution-layer order. More... | |
bool | next_lrcp (void) |
Get next packet in layer-resolution-component-precinct order. More... | |
bool | next_rlcp (void) |
Get next packet in resolution-layer-component-precinct order. More... | |
bool | next_rpcl (void) |
Get next packet in resolution-precinct-component-layer order. More... | |
Private Attributes | |
bool | handledFirstInner |
PacketManager * | packetManager |
uint8_t | maxNumDecompositionResolutions |
Packet iterator.
grk::PacketIter::PacketIter | ( | ) |
References prog.
void grk::PacketIter::destroy_include | ( | void | ) |
References grk::IncludeTracker::clear(), grk::PacketManager::getIncludeTracker(), and packetManager.
Referenced by grk::PacketManager::~PacketManager().
|
private |
References compno, comps, grk::floordivpow2(), GRK_J2K_MAXRLVLS, precinctIndex, resno, tx0, tx1, ty0, ty1, x, grk::grkRect< T >::x0, y, and grk::grkRect< T >::y0.
|
private |
References grk::grkRect< T >::area(), compno, comps, grk::floordivpow2(), GRK_J2K_MAXRLVLS, precinctIndex, resno, tx0, tx1, ty0, ty1, x, grk::grkRect< T >::x0, y, and grk::grkRect< T >::y0.
Referenced by next_cprl(), next_pcrl(), and next_rpcl().
uint8_t * grk::PacketIter::get_include | ( | uint16_t | layerIndex | ) |
void grk::PacketIter::init | ( | PacketManager * | packetMan | ) |
|
private |
References grk::PacketManager::getNumProgressions(), and packetManager.
Referenced by next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), and update_include().
bool grk::PacketIter::next | ( | void | ) |
Modify the packet iterator to point to the next packet.
References GRK_CPRL, GRK_LRCP, GRK_PCRL, GRK_RLCP, GRK_RPCL, next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), prog, and _grk_progression::progression.
|
private |
Get next packet in component-precinct-resolution-layer order.
References _grk_progression::compE, compno, comps, dx, dy, generatePrecinctIndex(), grk::GRK_ERROR(), handledFirstInner, _grk_progression::layE, layno, _grk_progression::layS, numcomps, prog, _grk_progression::resE, resno, _grk_progression::resS, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty0, _grk_progression::ty1, update_dxy_for_comp(), update_include(), x, and y.
Referenced by next().
|
private |
Get next packet in layer-resolution-component-precinct order.
References _grk_progression::compE, compno, _grk_progression::compS, comps, enableTilePartGeneration, grk::TileProcessor::getTileCodingParams(), grk::PacketManager::getTileProcessor(), handledFirstInner, isSingleProgression(), _grk_progression::layE, layno, grk::TileCodingParams::numLayersToDecompress, packetManager, _grk_progression::precE, precinctIndex, _grk_progression::precS, prog, _grk_progression::resE, resno, _grk_progression::resS, and update_include().
Referenced by next().
|
private |
Get next packet in precinct-component-resolution-layer order.
References _grk_progression::compE, compno, _grk_progression::compS, dx, dy, generatePrecinctIndex(), grk::PacketManager::getTileProcessor(), grk::TileProcessor::getUnreducedTileWindow(), grk::GRK_ERROR(), handledFirstInner, isSingleProgression(), _grk_progression::layE, layno, _grk_progression::layS, numcomps, packetManager, prog, _grk_progression::resE, resno, _grk_progression::resS, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty1, update_include(), x, and y.
Referenced by next().
|
private |
Get next packet in resolution-layer-component-precinct order.
References _grk_progression::compE, compno, _grk_progression::compS, comps, enableTilePartGeneration, grk::GRK_ERROR(), handledFirstInner, isSingleProgression(), _grk_progression::layE, layno, _grk_progression::layS, maxNumDecompositionResolutions, numcomps, _grk_progression::precE, precinctIndex, _grk_progression::precS, prog, _grk_progression::resE, resno, and update_include().
Referenced by next().
|
private |
Get next packet in resolution-precinct-component-layer order.
References _grk_progression::compE, compno, _grk_progression::compS, comps, dx, dy, generatePrecinctIndex(), handledFirstInner, isSingleProgression(), _grk_progression::layE, layno, _grk_progression::layS, maxNumDecompositionResolutions, prog, _grk_progression::resE, resno, grk::PiComp::resolutions, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty0, _grk_progression::ty1, update_include(), x, and y.
Referenced by next().
void grk::PacketIter::update_dxy | ( | void | ) |
|
private |
References grk::PiComp::dx, dx, grk::PiComp::dy, dy, grk::PiComp::numresolutions, resno, and grk::PiComp::resolutions.
Referenced by next_cprl(), and update_dxy().
bool grk::PacketIter::update_include | ( | void | ) |
References compno, grk::PacketManager::getIncludeTracker(), isSingleProgression(), layno, packetManager, precinctIndex, resno, and grk::IncludeTracker::update().
Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().
uint16_t grk::PacketIter::compno |
component that identify the packet
Referenced by grk::T2Compress::compressPacket(), grk::T2Compress::compressPacketSimulate(), grk::T2Decompress::decompressPacket(), generatePrecinct(), generatePrecinctIndex(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::processPacket(), grk::T2Decompress::readPacketHeader(), update_dxy(), update_include(), and ~PacketIter().
PiComp* grk::PacketIter::comps |
Components.
Referenced by generatePrecinct(), generatePrecinctIndex(), next_cprl(), next_lrcp(), next_rlcp(), next_rpcl(), grk::PacketManager::PacketManager(), update_dxy(), and ~PacketIter().
uint32_t grk::PacketIter::dx |
component sub-sampling
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
uint32_t grk::PacketIter::dy |
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
bool grk::PacketIter::enableTilePartGeneration |
Enabling Tile part generation.
Referenced by next_lrcp(), next_rlcp(), and grk::PacketManager::PacketManager().
|
private |
Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().
uint16_t grk::PacketIter::layno |
layer that identify the packet
Referenced by grk::T2Compress::compressPacket(), grk::T2Compress::compressPacketSimulate(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::processPacket(), grk::T2Decompress::readPacketHeader(), and update_include().
|
private |
Referenced by init(), next_rlcp(), and next_rpcl().
uint16_t grk::PacketIter::numcomps |
number of components in the image
Referenced by next_cprl(), next_pcrl(), next_rlcp(), update_dxy(), and ~PacketIter().
|
private |
Referenced by destroy_include(), get_include(), init(), isSingleProgression(), next_lrcp(), next_pcrl(), and update_include().
uint64_t grk::PacketIter::precinctIndex |
precinct that identify the packet
Referenced by grk::T2Compress::compressPacket(), grk::T2Compress::compressPacketSimulate(), generatePrecinct(), generatePrecinctIndex(), next_lrcp(), next_rlcp(), grk::T2Decompress::processPacket(), grk::T2Decompress::readPacketData(), grk::T2Decompress::readPacketHeader(), and update_include().
grk_progression grk::PacketIter::prog |
progression order
Referenced by grk::PacketManager::enableTilePartGeneration(), next(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), and PacketIter().
uint8_t grk::PacketIter::resno |
resolution that identify the packet
Referenced by grk::T2Compress::compressPacket(), grk::T2Compress::compressPacketSimulate(), grk::T2Decompress::decompressPacket(), generatePrecinct(), generatePrecinctIndex(), get_include(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::processPacket(), grk::T2Decompress::readPacketHeader(), update_dxy_for_comp(), and update_include().
uint64_t grk::PacketIter::step_c |
component step used to localize the packet in the include vector
uint64_t grk::PacketIter::step_l |
layer step used to localize the packet in the include vector
uint32_t grk::PacketIter::step_p |
precinct step used to localize the packet in the include vector
uint64_t grk::PacketIter::step_r |
resolution step used to localize the packet in the include vector
uint32_t grk::PacketIter::tx0 |
tile bounds in canvas coordinates
Referenced by generatePrecinct(), generatePrecinctIndex(), and grk::PacketManager::PacketManager().
uint32_t grk::PacketIter::tx1 |
Referenced by generatePrecinct(), and generatePrecinctIndex().
uint32_t grk::PacketIter::ty0 |
Referenced by generatePrecinct(), and generatePrecinctIndex().
uint32_t grk::PacketIter::ty1 |
Referenced by generatePrecinct(), and generatePrecinctIndex().
uint32_t grk::PacketIter::x |
packet coordinates
Referenced by generatePrecinct(), generatePrecinctIndex(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::y |
Referenced by generatePrecinct(), generatePrecinctIndex(), next_cprl(), next_pcrl(), and next_rpcl().