Grok 12.0.1
|
Packet iterator. More...
#include <PacketIter.h>
Public Member Functions | |
PacketIter () | |
~PacketIter () | |
void | init (PacketManager *packetMan, uint32_t pino, TileCodingParams *tcp, grk_rect32 tileBounds, bool compression, uint8_t max_res, uint64_t max_precincts, uint32_t *resolutionPrecinctGrid, uint32_t **precinctByComponent) |
void | printStaticState (void) |
void | printDynamicState (void) |
void | enableTilePartGeneration (uint32_t pino, bool first_poc_tile_part, uint32_t tppos) |
Modify the packet iterator for enabling tile part generation. | |
void | genPrecinctInfo () |
void | genPrecinctInfo (PiComp *comp, PiResolution *res, uint8_t resNumber) |
uint8_t * | get_include (uint16_t layerIndex) |
bool | update_include (void) |
void | destroy_include (void) |
bool | next (SparseBuffer *src) |
Modify the packet iterator to point to the next packet. | |
GRK_PROG_ORDER | getProgression (void) const |
uint16_t | getCompno (void) const |
uint8_t | getResno (void) const |
uint64_t | getPrecinctIndex (void) const |
uint16_t | getLayno (void) const |
Private Attributes | |
uint16_t | compno |
uint8_t | resno |
uint64_t | precinctIndex |
uint16_t | layno |
grk_progression | prog |
uint16_t | numcomps |
PiComp * | comps |
uint64_t | x |
packet coordinates | |
uint64_t | y |
uint32_t | dx |
component sub-sampling | |
uint32_t | dy |
uint32_t | dxActive |
uint32_t | dyActive |
bool | incrementInner |
PacketManager * | packetManager |
uint8_t | maxNumDecompositionResolutions |
bool | singleProgression_ |
bool | compression_ |
ResPrecinctInfo * | precinctInfoOPT_ |
uint32_t | px0grid_ |
uint32_t | py0grid_ |
bool | skippedLeft_ |
Packet iterator.
grk::PacketIter::PacketIter | ( | ) |
References grk::grk_read(), and prog.
grk::PacketIter::~PacketIter | ( | ) |
References comps, and precinctInfoOPT_.
|
private |
Check if there is a remaining valid progression order.
References checkForRemainingValidProgression(), grk::PacketManager::getCodingParams(), grk::TileProcessor::getIndex(), grk::PacketManager::getTileProcessor(), GRK_LRCP, grk::grk_read(), GRK_RLCP, packetManager, prog, and grk::CodingParams::tcps.
Referenced by checkForRemainingValidProgression(), and enableTilePartGeneration().
References grk::IncludeTracker::clear(), grk::PacketManager::getIncludeTracker(), and packetManager.
Referenced by grk::PacketManager::~PacketManager().
void grk::PacketIter::enableTilePartGeneration | ( | uint32_t | pino, |
bool | first_poc_tile_part, | ||
uint32_t | tppos ) |
Modify the packet iterator for enabling tile part generation.
pino | packet iterator number |
first_poc_tile_part | true for first POC tile part |
tppos | The position of the tile part flag in the progression order |
References checkForRemainingValidProgression(), _grk_progression::compE, _grk_progression::compS, grk::CodeStreamCompress::convertProgressionOrder(), grk::FINAL_PASS, grk::PacketManager::getCodingParams(), grk::TileProcessor::getIndex(), grk::PacketManager::getT2Mode(), grk::PacketManager::getTileProcessor(), GRK_IS_CINEMA, GRK_IS_IMF, GRK_LRCP, grk::grk_read(), GRK_RLCP, _grk_progression::layE, _grk_progression::layS, packetManager, _grk_progression::precE, _grk_progression::precS, prog, _grk_progression::progression, _grk_progression::resE, _grk_progression::resS, grk::CodingParams::tcps, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty0, and _grk_progression::ty1.
References compno, comps, grk::grk_read(), grk::PiResolution::precinctGridWidth, precinctIndex, px0grid_, py0grid_, resno, and grk::PiComp::resolutions.
Referenced by next_cprl(), next_pcrl(), and next_rpcl().
void grk::PacketIter::genPrecinctInfo | ( | ) |
References comps, genPrecinctInfo(), grk::grk_read(), numcomps, and grk::PiComp::resolutions.
Referenced by genPrecinctInfo(), and init().
void grk::PacketIter::genPrecinctInfo | ( | PiComp * | comp, |
PiResolution * | res, | ||
uint8_t | resNumber ) |
|
private |
References grk::ceildiv(), grk::floordivpow2(), grk::PacketManager::getTileBounds(), grk::grk_read(), packetManager, px0grid_, x, and grk::grk_rect< T >::x0.
Referenced by validatePrecinct().
|
private |
References grk::ceildiv(), grk::floordivpow2(), grk::PacketManager::getTileBounds(), grk::grk_read(), packetManager, py0grid_, y, and grk::grk_rect< T >::y0.
Referenced by validatePrecinct().
References precinctIndex.
GRK_PROG_ORDER grk::PacketIter::getProgression | ( | void | ) | const |
References prog, and _grk_progression::progression.
void grk::PacketIter::init | ( | PacketManager * | packetMan, |
uint32_t | pino, | ||
TileCodingParams * | tcp, | ||
grk_rect32 | tileBounds, | ||
bool | compression, | ||
uint8_t | max_res, | ||
uint64_t | max_precincts, | ||
uint32_t * | resolutionPrecinctGrid, | ||
uint32_t ** | precinctByComponent ) |
References _grk_progression::compE, compno, compression_, _grk_progression::compS, comps, genPrecinctInfo(), grk::TileProcessor::getMaxNumDecompressResolutions(), grk::PacketManager::getNumProgressions(), grk::TileProcessor::getTileCodingParams(), grk::PacketManager::getTileProcessor(), GRK_CPRL, GRK_LRCP, GRK_PCRL, grk::grk_read(), GRK_RLCP, GRK_RPCL, grk::ResPrecinctInfo::innerPrecincts_, _grk_progression::layE, _grk_progression::layS, maxNumDecompositionResolutions, numcomps, grk::TileCodingParams::numLayersToDecompress, grk::PiComp::numresolutions, packetManager, _grk_progression::precE, precinctInfoOPT_, _grk_progression::precS, grk::PiResolution::precWidthExp, prog, _grk_progression::progression, _grk_progression::resE, resno, grk::PiComp::resolutions, _grk_progression::resS, singleProgression_, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty0, _grk_progression::ty1, update_dxy(), x, and y.
Referenced by grk::PacketManager::PacketManager().
References compression_, grk::TileProcessor::cp_, grk::PacketManager::getTileProcessor(), packetManager, and grk::CodingParams::wholeTileDecompress_.
Referenced by genPrecinctInfo(), and validatePrecinct().
bool grk::PacketIter::next | ( | SparseBuffer * | src | ) |
Modify the packet iterator to point to the next packet.
References GRK_CPRL, GRK_LRCP, GRK_PCRL, grk::grk_read(), 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, dxActive, dy, dyActive, generatePrecinctIndex(), grk::grk_read(), incrementInner, _grk_progression::layE, layno, _grk_progression::layS, 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(), validatePrecinct(), x, and y.
Referenced by next().
|
private |
|
private |
Get next packet in layer-resolution-component-precinct order.
References _grk_progression::compE, compno, _grk_progression::compS, comps, grk::grk_read(), incrementInner, _grk_progression::layE, layno, grk::PiComp::numresolutions, grk::PiResolution::precinctGridWidth, precinctIndex, precinctInfoOPT_, _grk_progression::precS, prog, _grk_progression::resE, resno, grk::PiComp::resolutions, _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, dxActive, dy, dyActive, generatePrecinctIndex(), grk::PacketManager::getTileProcessor(), grk::TileProcessor::getUnreducedTileWindow(), grk::grk_read(), incrementInner, _grk_progression::layE, layno, _grk_progression::layS, packetManager, prog, _grk_progression::resE, resno, _grk_progression::resS, singleProgression_, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty1, update_include(), validatePrecinct(), 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, grk::grk_read(), incrementInner, _grk_progression::layE, layno, _grk_progression::layS, grk::PiComp::numresolutions, grk::PiResolution::precinctGridWidth, precinctIndex, precinctInfoOPT_, _grk_progression::precS, prog, _grk_progression::resE, resno, grk::PiComp::resolutions, 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, dxActive, dy, dyActive, generatePrecinctIndex(), grk::grk_read(), incrementInner, _grk_progression::layE, layno, _grk_progression::layS, prog, _grk_progression::resE, resno, grk::PiComp::resolutions, _grk_progression::tx0, _grk_progression::tx1, _grk_progression::ty0, _grk_progression::ty1, update_include(), validatePrecinct(), x, and y.
Referenced by next().
|
private |
References comps, grk::grk_read(), grk::PiComp::numresolutions, resno, and grk::PiComp::resolutions.
References compno, grk::grk_read(), grk::Logger::info(), layno, grk::Logger::logger_, precinctIndex, precinctInfoOPT_, resno, x, and y.
|
private |
References dx, dxActive, dy, dyActive, grk::grk_read(), resno, x, and y.
Referenced by next_cprl(), and update_dxy().
References compno, grk::PacketManager::getIncludeTracker(), layno, packetManager, precinctIndex, resno, singleProgression_, and grk::IncludeTracker::update().
Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().
References compno, compression_, comps, genPrecinctX0Grid(), genPrecinctY0Grid(), grk::PacketManager::getTileBounds(), grk::PacketManager::getTileProcessor(), grk::TileProcessor::getUnreducedTileWindow(), grk::grk_read(), isWholeTile(), packetManager, precinctInfoOPT_, grk::ResPrecinctInfo::precWidthExp, resno, and grk::PiComp::resolutions.
Referenced by next_cprl(), next_pcrl(), and next_rpcl().
|
private |
Referenced by generatePrecinctIndex(), getCompno(), init(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), printDynamicState(), update_dxy(), update_include(), and validatePrecinct().
|
private |
Referenced by genPrecinctInfo(), init(), isWholeTile(), and validatePrecinct().
|
private |
|
private |
component sub-sampling
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
|
private |
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
|
private |
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
|
private |
Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().
|
private |
Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().
|
private |
Referenced by getLayno(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), printDynamicState(), and update_include().
|
private |
Referenced by genPrecinctInfo(), init(), and update_dxy().
|
private |
|
private |
Referenced by generatePrecinctIndex(), getPrecinctIndex(), next_lrcp(), next_rlcp(), printDynamicState(), and update_include().
|
private |
Referenced by init(), next_lrcp(), next_rlcp(), printDynamicState(), printStaticState(), validatePrecinct(), and ~PacketIter().
|
private |
|
private |
Referenced by generatePrecinctIndex(), and genPrecinctX0Grid().
|
private |
Referenced by generatePrecinctIndex(), and genPrecinctY0Grid().
|
private |
|
private |
Referenced by init(), next_pcrl(), and update_include().
|
private |
|
private |
packet coordinates
Referenced by genPrecinctX0Grid(), init(), next_cprl(), next_pcrl(), next_rpcl(), printDynamicState(), update_dxy(), and update_dxy_for_comp().
|
private |
Referenced by genPrecinctY0Grid(), init(), next_cprl(), next_pcrl(), next_rpcl(), printDynamicState(), update_dxy(), and update_dxy_for_comp().