Packet iterator.
More...
#include <PacketIter.h>
|
| | 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 | enable_tile_part_generation (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) |
| 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 |
◆ PacketIter()
| grk::PacketIter::PacketIter |
( |
| ) |
|
References compno, compression_, comps, dx, dxActive, dy, dyActive, incrementInner, layno, maxNumDecompositionResolutions, numcomps, packetManager, precinctIndex, precinctInfoOPT_, prog, px0grid_, py0grid_, resno, singleProgression_, skippedLeft_, x, and y.
◆ ~PacketIter()
| grk::PacketIter::~PacketIter |
( |
| ) |
|
◆ checkForRemainingValidProgression()
| bool grk::PacketIter::checkForRemainingValidProgression |
( |
int32_t | prog, |
|
|
uint32_t | pino, |
|
|
const char * | progString ) |
|
private |
◆ destroy_include()
| void grk::PacketIter::destroy_include |
( |
void | | ) |
|
◆ enable_tile_part_generation()
| void grk::PacketIter::enable_tile_part_generation |
( |
uint32_t | pino, |
|
|
bool | first_poc_tile_part, |
|
|
uint32_t | tppos ) |
◆ generatePrecinctIndex()
| void grk::PacketIter::generatePrecinctIndex |
( |
void | | ) |
|
|
private |
◆ genPrecinctInfo() [1/2]
| void grk::PacketIter::genPrecinctInfo |
( |
| ) |
|
◆ genPrecinctInfo() [2/2]
| void grk::PacketIter::genPrecinctInfo |
( |
PiComp * | comp, |
|
|
PiResolution * | res, |
|
|
uint8_t | resNumber ) |
References compression_, grk::PiComp::dx, grk::PiComp::dy, grk::ResPrecinctInfo::init(), isWholeTile(), grk::PiComp::numresolutions, packetManager, grk::PiResolution::precHeightExp, grk::ResPrecinctInfo::precHeightExp, grk::PiResolution::precinctGridHeight, grk::PiResolution::precinctGridWidth, grk::PiResolution::precinctInfo, grk::PiResolution::precWidthExp, and grk::ResPrecinctInfo::precWidthExp.
◆ genPrecinctX0Grid()
◆ genPrecinctY0Grid()
◆ getCompno()
| uint16_t grk::PacketIter::getCompno |
( |
void | | ) |
const |
◆ getLayno()
| uint16_t grk::PacketIter::getLayno |
( |
void | | ) |
const |
◆ getPrecinctIndex()
| uint64_t grk::PacketIter::getPrecinctIndex |
( |
void | | ) |
const |
◆ getProgression()
◆ getResno()
| uint8_t grk::PacketIter::getResno |
( |
void | | ) |
const |
◆ init()
| 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 compno, compression_, comps, genPrecinctInfo(), grk::PacketManager::getImage(), GRK_CPRL, GRK_LRCP, GRK_PCRL, GRK_RLCP, GRK_RPCL, grk::TileCodingParams::hasPoc(), maxNumDecompositionResolutions, grk::TileCodingParams::num_layers_, numcomps, packetManager, precinctInfoOPT_, grk::TileCodingParams::prg, prog, grk::TileCodingParams::progressionOrderChange, resno, singleProgression_, grk::TileCodingParams::tccps, update_dxy(), x, grk::grk_rect< T >::x0, grk::grk_rect< T >::x1, y, grk::grk_rect< T >::y0, and grk::grk_rect< T >::y1.
◆ isWholeTile()
| bool grk::PacketIter::isWholeTile |
( |
void | | ) |
|
|
private |
◆ next()
Modify the packet iterator to point to the next packet.
- Returns
- false if pi pointed to the final packet, otherwise true
References GRK_CPRL, GRK_LRCP, GRK_PCRL, GRK_RLCP, GRK_RPCL, next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), and prog.
◆ next_cprl()
Get next packet in component-precinct-resolution-layer order.
- Returns
- returns false if pi pointed to the final packet, otherwise true
References compno, comps, dx, dxActive, dy, dyActive, generatePrecinctIndex(), incrementInner, layno, prog, resno, update_dxy_for_comp(), update_include(), validatePrecinct(), x, and y.
Referenced by next().
◆ next_cprlOPT()
◆ next_lrcp()
◆ next_pcrl()
Get next packet in precinct-component-resolution-layer order.
- Returns
- returns false if pi pointed to the final packet, otherwise true
References compno, dx, dxActive, dy, dyActive, generatePrecinctIndex(), incrementInner, layno, packetManager, prog, resno, singleProgression_, update_include(), validatePrecinct(), x, and y.
Referenced by next().
◆ next_rlcp()
◆ next_rpcl()
Get next packet in resolution-precinct-component-layer order.
- Returns
- returns false if pi pointed to the final packet, otherwise true
References compno, comps, dx, dxActive, dy, dyActive, generatePrecinctIndex(), incrementInner, layno, prog, resno, update_include(), validatePrecinct(), x, and y.
Referenced by next().
◆ precInfoCheck()
◆ printDynamicState()
| void grk::PacketIter::printDynamicState |
( |
void | | ) |
|
◆ printStaticState()
| void grk::PacketIter::printStaticState |
( |
void | | ) |
|
◆ skipPackets()
| bool grk::PacketIter::skipPackets |
( |
SparseBuffer * | src, |
|
|
uint64_t | numPackets ) |
|
private |
◆ update_dxy()
| void grk::PacketIter::update_dxy |
( |
void | | ) |
|
|
private |
◆ update_dxy_for_comp()
| void grk::PacketIter::update_dxy_for_comp |
( |
PiComp * | comp, |
|
|
bool | updateActive ) |
|
private |
References dx, grk::PiComp::dx, dxActive, dy, grk::PiComp::dy, dyActive, grk::PiComp::numresolutions, resno, grk::PiComp::resolutions, x, and y.
Referenced by next_cprl(), and update_dxy().
◆ update_include()
| bool grk::PacketIter::update_include |
( |
void | | ) |
|
◆ validatePrecinct()
| bool grk::PacketIter::validatePrecinct |
( |
void | | ) |
|
|
private |
References compno, compression_, comps, genPrecinctX0Grid(), genPrecinctY0Grid(), grk::ResPrecinctInfo::init(), isWholeTile(), packetManager, grk::ResPrecinctInfo::precHeightExp, precinctInfoOPT_, grk::ResPrecinctInfo::precWidthExp, and resno.
Referenced by next_cprl(), next_pcrl(), and next_rpcl().
◆ compno
| uint16_t grk::PacketIter::compno |
|
private |
Referenced by generatePrecinctIndex(), getCompno(), init(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), PacketIter(), printDynamicState(), update_dxy(), update_include(), and validatePrecinct().
◆ compression_
| bool grk::PacketIter::compression_ |
|
private |
◆ comps
| PiComp* grk::PacketIter::comps |
|
private |
Referenced by generatePrecinctIndex(), genPrecinctInfo(), init(), next_cprl(), next_lrcp(), next_rlcp(), next_rpcl(), PacketIter(), precInfoCheck(), printStaticState(), update_dxy(), validatePrecinct(), and ~PacketIter().
◆ dx
| uint32_t grk::PacketIter::dx |
|
private |
◆ dxActive
| uint32_t grk::PacketIter::dxActive |
|
private |
◆ dy
| uint32_t grk::PacketIter::dy |
|
private |
◆ dyActive
| uint32_t grk::PacketIter::dyActive |
|
private |
◆ incrementInner
| bool grk::PacketIter::incrementInner |
|
private |
◆ layno
| uint16_t grk::PacketIter::layno |
|
private |
◆ maxNumDecompositionResolutions
| uint8_t grk::PacketIter::maxNumDecompositionResolutions |
|
private |
◆ numcomps
| uint16_t grk::PacketIter::numcomps |
|
private |
◆ packetManager
Referenced by checkForRemainingValidProgression(), destroy_include(), enable_tile_part_generation(), genPrecinctInfo(), genPrecinctX0Grid(), genPrecinctY0Grid(), init(), isWholeTile(), next_pcrl(), PacketIter(), skipPackets(), update_include(), and validatePrecinct().
◆ precinctIndex
| uint64_t grk::PacketIter::precinctIndex |
|
private |
◆ precinctInfoOPT_
◆ prog
Referenced by checkForRemainingValidProgression(), enable_tile_part_generation(), getProgression(), init(), next(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), PacketIter(), and printStaticState().
◆ px0grid_
| uint32_t grk::PacketIter::px0grid_ |
|
private |
◆ py0grid_
| uint32_t grk::PacketIter::py0grid_ |
|
private |
◆ resno
| uint8_t grk::PacketIter::resno |
|
private |
Referenced by generatePrecinctIndex(), getResno(), init(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), PacketIter(), precInfoCheck(), printDynamicState(), printStaticState(), update_dxy_for_comp(), update_include(), and validatePrecinct().
◆ singleProgression_
| bool grk::PacketIter::singleProgression_ |
|
private |
◆ skippedLeft_
| bool grk::PacketIter::skippedLeft_ |
|
private |
| uint64_t grk::PacketIter::x |
|
private |
| uint64_t grk::PacketIter::y |
|
private |
The documentation for this struct was generated from the following files: