Grok 10.0.5
|
Packet iterator. More...
#include <TileCache.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. | |
bool | genPrecinctInfoOPT () |
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 Member Functions | |
void | update_dxy (void) |
bool | checkForRemainingValidProgression (int32_t prog, uint32_t pino, const char *progString) |
Check if there is a remaining valid progression order. | |
bool | genPrecinctY0Grid (ResPrecinctInfo *rpInfo) |
bool | genPrecinctX0Grid (ResPrecinctInfo *rpInfo) |
void | genPrecinctY0GridRPCL_OPT (ResPrecinctInfo *rpInfo) |
void | genPrecinctX0GridRPCL_OPT (ResPrecinctInfo *rpInfo) |
bool | genPrecinctX0GridPCRL_OPT (ResPrecinctInfo *rpInfo) |
bool | genPrecinctY0GridPCRL_OPT (ResPrecinctInfo *rpInfo) |
bool | precInfoCheck (ResPrecinctInfo *rpInfo) |
void | generatePrecinctIndex (void) |
bool | validatePrecinct (void) |
void | update_dxy_for_comp (PiComp *comp, bool updateActive) |
bool | isWholeTile (void) |
bool | next_cprl (SparseBuffer *src) |
Get next packet in component-precinct-resolution-layer order. | |
bool | next_cprlOPT (SparseBuffer *src) |
bool | next_pcrl (SparseBuffer *src) |
Get next packet in precinct-component-resolution-layer order. | |
bool | next_pcrlOPT (SparseBuffer *src) |
bool | next_lrcp (SparseBuffer *src) |
Get next packet in layer-resolution-component-precinct order. | |
bool | next_lrcpOPT (SparseBuffer *src) |
bool | next_rlcp (SparseBuffer *src) |
Get next packet in resolution-layer-component-precinct order. | |
bool | next_rlcpOPT (SparseBuffer *src) |
bool | next_rpcl (SparseBuffer *src) |
Get next packet in resolution-precinct-component-layer order. | |
bool | next_rpclOPT (SparseBuffer *src) |
bool | skipPackets (SparseBuffer *src, uint64_t numPackets) |
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 prog.
grk::PacketIter::~PacketIter | ( | ) |
References comps, and precinctInfoOPT_.
|
private |
Check if there is a remaining valid progression order.
References grk::GRK_LRCP, grk::GRK_RLCP, packetManager, pino, prog, and grk::grk::TileCodingParams::progressionOrderChange.
void grk::PacketIter::destroy_include | ( | void | ) |
References 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 grk::_grk_progression::compE, grk::_grk_progression::compS, cp, grk::FINAL_PASS, GRK_IS_CINEMA, GRK_IS_IMF, grk::GRK_LRCP, grk::GRK_RLCP, grk::_grk_progression::layE, grk::_grk_progression::layS, newTilePartProgressionPosition, packetManager, pino, grk::_grk_progression::precE, grk::_grk_progression::precS, prog, grk::_grk_progression::progression, grk::_grk_progression::resE, grk::_grk_progression::resS, grk::_grk_progression::tx0, grk::_grk_progression::tx1, grk::_grk_progression::ty0, and grk::_grk_progression::ty1.
|
private |
void grk::PacketIter::genPrecinctInfo | ( | PiComp * | comp, |
PiResolution * | res, | ||
uint8_t | resNumber ) |
References compression_, grk::grk::PiComp::dx, grk::grk::PiComp::dy, grk::grk::ResPrecinctInfo::init(), grk::grk::PiComp::numresolutions, packetManager, grk::grk::PiResolution::precHeightExp, grk::grk::ResPrecinctInfo::precHeightExp, grk::grk::PiResolution::precinctGridHeight, grk::grk::PiResolution::precinctGridWidth, grk::grk::PiResolution::precinctInfo, grk::grk::PiResolution::precWidthExp, and grk::grk::ResPrecinctInfo::precWidthExp.
bool grk::PacketIter::genPrecinctInfoOPT | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
uint8_t * grk::PacketIter::get_include | ( | uint16_t | layerIndex | ) |
References packetManager, and resno.
uint16_t grk::PacketIter::getCompno | ( | void | ) | const |
References compno.
Referenced by grk::grk::T2Compress::compressPacket(), and grk::grk::T2Compress::compressPacketSimulate().
uint16_t grk::PacketIter::getLayno | ( | void | ) | const |
References layno.
Referenced by grk::grk::T2Compress::compressPacket(), and grk::grk::T2Compress::compressPacketSimulate().
uint64_t grk::PacketIter::getPrecinctIndex | ( | void | ) | const |
References precinctIndex.
Referenced by grk::grk::T2Compress::compressPacket(), and grk::grk::T2Compress::compressPacketSimulate().
GRK_PROG_ORDER grk::PacketIter::getProgression | ( | void | ) | const |
References prog, and grk::_grk_progression::progression.
uint8_t grk::PacketIter::getResno | ( | void | ) | const |
References resno.
Referenced by grk::grk::T2Compress::compressPacket(), and grk::grk::T2Compress::compressPacketSimulate().
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::_grk_progression::compE, compno, compression_, grk::_grk_progression::compS, comps, grk::_grk_image::comps, grk::grk::PacketManager::getImage(), grk::grk::TileProcessor::getMaxNumDecompressResolutions(), grk::grk::PacketManager::getTileProcessor(), grk::GRK_CPRL, grk::GRK_LRCP, grk::GRK_PCRL, grk::GRK_RLCP, grk::GRK_RPCL, grk::grk::TileCodingParams::hasPoc(), image, grk::_grk_progression::layE, grk::_grk_progression::layS, maxNumDecompositionResolutions, grk::_grk_image::numcomps, numcomps, grk::grk::TileCodingParams::numlayers, packetManager, pino, grk::_grk_progression::precE, precinctInfoOPT_, grk::_grk_progression::precS, grk::grk::TileCodingParams::prg, prog, grk::_grk_progression::progression, grk::grk::TileCodingParams::progressionOrderChange, grk::_grk_progression::resE, resno, grk::_grk_progression::resS, singleProgression_, grk::grk::TileCodingParams::tccps, grk::_grk_progression::tx0, grk::_grk_progression::tx1, grk::_grk_progression::ty0, grk::_grk_progression::ty1, x, grk::grk::grk_rect< T >::x0, grk::grk::grk_rect< T >::x1, y, grk::grk::grk_rect< T >::y0, and grk::grk::grk_rect< T >::y1.
|
private |
References compression_, and packetManager.
bool grk::PacketIter::next | ( | SparseBuffer * | src | ) |
Modify the packet iterator to point to the next packet.
References grk::GRK_CPRL, grk::GRK_LRCP, grk::GRK_PCRL, grk::GRK_RLCP, grk::GRK_RPCL, prog, and grk::_grk_progression::progression.
|
private |
Get next packet in component-precinct-resolution-layer order.
References grk::_grk_progression::compE, compno, comps, dx, dxActive, dy, dyActive, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, precinctInfoOPT_, prog, grk::_grk_progression::resE, resno, grk::_grk_progression::resS, grk::_grk_progression::tx0, grk::_grk_progression::tx1, grk::_grk_progression::ty0, grk::_grk_progression::ty1, x, and y.
|
private |
References grk::_grk_progression::compE, compno, comps, dx, dy, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, precinctIndex, precinctInfoOPT_, prog, px0grid_, py0grid_, grk::_grk_progression::resE, resno, grk::_grk_progression::resS, grk::_grk_progression::tx0, grk::_grk_progression::ty0, x, and y.
|
private |
Get next packet in layer-resolution-component-precinct order.
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, comps, incrementInner, grk::_grk_progression::layE, layno, precinctIndex, precinctInfoOPT_, grk::_grk_progression::precS, prog, grk::_grk_progression::resE, resno, and grk::_grk_progression::resS.
|
private |
|
private |
Get next packet in precinct-component-resolution-layer order.
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, dx, dxActive, dy, dyActive, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, packetManager, precinctInfoOPT_, prog, grk::_grk_progression::resE, resno, grk::_grk_progression::resS, singleProgression_, grk::_grk_progression::tx0, grk::_grk_progression::tx1, grk::_grk_progression::ty1, x, and y.
|
private |
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, comps, dx, dy, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, precinctIndex, precinctInfoOPT_, prog, px0grid_, py0grid_, grk::_grk_progression::resE, resno, grk::_grk_progression::resS, x, and y.
|
private |
Get next packet in resolution-layer-component-precinct order.
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, comps, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, precinctIndex, precinctInfoOPT_, grk::_grk_progression::precS, prog, grk::_grk_progression::resE, and resno.
|
private |
|
private |
Get next packet in resolution-precinct-component-layer order.
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, comps, dx, dxActive, dy, dyActive, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, precinctInfoOPT_, prog, grk::_grk_progression::resE, resno, grk::_grk_progression::tx0, grk::_grk_progression::tx1, grk::_grk_progression::ty0, grk::_grk_progression::ty1, x, and y.
|
private |
References grk::_grk_progression::compE, compno, grk::_grk_progression::compS, incrementInner, grk::_grk_progression::layE, layno, grk::_grk_progression::layS, maxNumDecompositionResolutions, precinctIndex, precinctInfoOPT_, prog, px0grid_, py0grid_, grk::_grk_progression::resE, resno, skippedLeft_, x, x0, y, and y0.
|
private |
References comps, resno, and grk::grk::ResPrecinctInfo::valid.
void grk::PacketIter::printDynamicState | ( | void | ) |
References compno, grk::GRK_INFO(), layno, precinctIndex, precinctInfoOPT_, resno, x, and y.
void grk::PacketIter::printStaticState | ( | void | ) |
|
private |
References grk::GRK_ERROR(), len, markers, packetManager, and grk::grk::SparseBuffer::skip().
|
private |
|
private |
References dx, grk::grk::PiComp::dx, dxActive, dy, grk::grk::PiComp::dy, dyActive, grk::grk::PiComp::numresolutions, resno, grk::grk::PiComp::resolutions, x, and y.
bool grk::PacketIter::update_include | ( | void | ) |
References compno, layno, packetManager, precinctIndex, resno, and singleProgression_.
|
private |
|
private |
|
private |
|
private |
|
private |
component sub-sampling
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
packet coordinates
|
private |