Grok
7.6.6
|
Packet iterator. More...
#include <PacketIter.h>
Public Member Functions | |
Local static functions | |
PacketIter () | |
~PacketIter () | |
uint8_t * | get_include (uint16_t layerIndex) |
bool | update_include (void) |
void | destroy_include (void) |
bool | next_cprl (void) |
Get next packet in component-precinct-resolution-layer order. More... | |
bool | generate_precinct_index (void) |
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... | |
bool | next (void) |
Modify the packet iterator to point to the next packet. More... | |
void | update_dxy (void) |
void | update_dxy_for_comp (grk_pi_comp *comp) |
Public Attributes | |
bool | tp_on |
Enabling Tile part generation. More... | |
IncludeTracker * | includeTracker |
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... | |
bool | first |
true if the first packet More... | |
grk_progression | prog |
progression order change information More... | |
uint32_t | numpocs |
uint16_t | numcomps |
number of components in the image More... | |
grk_pi_comp * | comps |
Components. More... | |
uint32_t | tx0 |
tile coordinates More... | |
uint32_t | ty0 |
uint32_t | tx1 |
uint32_t | ty1 |
uint32_t | x |
packet coordinates More... | |
uint32_t | y |
uint32_t | dx |
packet sub-sampling factors More... | |
uint32_t | dy |
Packet iterator.
grk::PacketIter::PacketIter | ( | ) |
References prog.
grk::PacketIter::~PacketIter | ( | ) |
References compno, comps, grk::grk_free(), and numcomps.
void grk::PacketIter::destroy_include | ( | void | ) |
References grk::IncludeTracker::clear(), and includeTracker.
Referenced by grk::pi_destroy().
bool grk::PacketIter::generate_precinct_index | ( | void | ) |
References compno, comps, grk::GRK_ERROR(), GRK_J2K_MAXRLVLS, numcomps, precinctIndex, resno, tx0, tx1, ty0, ty1, grk::uint_floordivpow2(), x, and y.
Referenced by next_cprl(), next_pcrl(), and next_rpcl().
uint8_t * grk::PacketIter::get_include | ( | uint16_t | layerIndex | ) |
References grk::IncludeTracker::get_include(), includeTracker, and resno.
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(), _grk_progression::prg, and prog.
bool grk::PacketIter::next_cprl | ( | void | ) |
Get next packet in component-precinct-resolution-layer order.
References _grk_progression::compE, compno, comps, dx, dy, generate_precinct_index(), grk::GRK_ERROR(), _grk_progression::layE, layno, _grk_progression::layS, numcomps, grk::grk_pi_comp::numresolutions, prog, _grk_progression::resE, resno, _grk_progression::resS, tp_on, tx0, _grk_progression::tx0, tx1, _grk_progression::tx1, ty0, _grk_progression::ty0, ty1, _grk_progression::ty1, update_dxy_for_comp(), update_include(), x, and y.
Referenced by next().
bool grk::PacketIter::next_lrcp | ( | void | ) |
Get next packet in layer-resolution-component-precinct order.
References _grk_progression::compE, compno, comps, _grk_progression::compS, first, _grk_progression::layE, layno, numpocs, grk::grk_pi_comp::numresolutions, grk::grk_pi_resolution::ph, _grk_progression::precE, precinctIndex, _grk_progression::precS, prog, grk::grk_pi_resolution::pw, _grk_progression::resE, resno, grk::grk_pi_comp::resolutions, _grk_progression::resS, tp_on, and update_include().
Referenced by next().
bool grk::PacketIter::next_pcrl | ( | void | ) |
Get next packet in precinct-component-resolution-layer order.
References _grk_progression::compE, compno, comps, _grk_progression::compS, dx, dy, generate_precinct_index(), grk::GRK_ERROR(), _grk_progression::layE, layno, _grk_progression::layS, numcomps, grk::grk_pi_comp::numresolutions, prog, _grk_progression::resE, resno, _grk_progression::resS, tp_on, tx0, _grk_progression::tx0, tx1, _grk_progression::tx1, ty0, _grk_progression::ty0, ty1, _grk_progression::ty1, update_dxy(), update_include(), x, and y.
Referenced by next().
bool grk::PacketIter::next_rlcp | ( | void | ) |
Get next packet in resolution-layer-component-precinct order.
References _grk_progression::compE, compno, comps, _grk_progression::compS, first, grk::GRK_ERROR(), _grk_progression::layE, layno, _grk_progression::layS, numcomps, numpocs, grk::grk_pi_comp::numresolutions, grk::grk_pi_resolution::ph, _grk_progression::precE, precinctIndex, _grk_progression::precS, prog, grk::grk_pi_resolution::pw, _grk_progression::resE, resno, grk::grk_pi_comp::resolutions, tp_on, and update_include().
Referenced by next().
bool grk::PacketIter::next_rpcl | ( | void | ) |
Get next packet in resolution-precinct-component-layer order.
References _grk_progression::compE, compno, _grk_progression::compS, dx, dy, first, generate_precinct_index(), _grk_progression::layE, layno, _grk_progression::layS, numpocs, prog, _grk_progression::resE, resno, tp_on, tx0, _grk_progression::tx0, tx1, _grk_progression::tx1, ty0, _grk_progression::ty0, ty1, _grk_progression::ty1, update_dxy(), update_include(), x, and y.
Referenced by next().
void grk::PacketIter::update_dxy | ( | void | ) |
References compno, comps, dx, dy, numcomps, and update_dxy_for_comp().
Referenced by next_pcrl(), and next_rpcl().
void grk::PacketIter::update_dxy_for_comp | ( | grk_pi_comp * | comp | ) |
References grk::grk_pi_comp::dx, dx, grk::grk_pi_comp::dy, dy, grk::grk_pi_comp::numresolutions, resno, and grk::grk_pi_comp::resolutions.
Referenced by next_cprl(), and update_dxy().
bool grk::PacketIter::update_include | ( | void | ) |
References compno, includeTracker, layno, 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::compress_packet(), grk::T2Compress::compress_packet_simulate(), grk::T2Decompress::decompress_packet(), generate_precinct_index(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::read_packet_header(), grk::T2Decompress::skip_packet(), grk::T2Decompress::skip_packet_data(), update_dxy(), update_include(), and ~PacketIter().
grk_pi_comp* grk::PacketIter::comps |
Components.
Referenced by generate_precinct_index(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), update_dxy(), and ~PacketIter().
uint32_t grk::PacketIter::dx |
packet sub-sampling factors
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::first |
true if the first packet
Referenced by next_lrcp(), next_rlcp(), and next_rpcl().
IncludeTracker* grk::PacketIter::includeTracker |
Referenced by destroy_include(), get_include(), grk::pi_create(), and update_include().
uint16_t grk::PacketIter::layno |
layer that identify the packet
Referenced by grk::T2Compress::compress_packet(), grk::T2Compress::compress_packet_simulate(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::read_packet_header(), and update_include().
uint16_t grk::PacketIter::numcomps |
number of components in the image
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), next_rlcp(), update_dxy(), and ~PacketIter().
uint32_t grk::PacketIter::numpocs |
Referenced by next_lrcp(), next_rlcp(), and next_rpcl().
uint64_t grk::PacketIter::precinctIndex |
precinct that identify the packet
Referenced by grk::T2Compress::compress_packet(), grk::T2Compress::compress_packet_simulate(), generate_precinct_index(), next_lrcp(), next_rlcp(), grk::T2Decompress::read_packet_data(), grk::T2Decompress::read_packet_header(), grk::T2Decompress::skip_packet_data(), and update_include().
grk_progression grk::PacketIter::prog |
progression order change information
Referenced by next(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), PacketIter(), and grk::pi_enable_tile_part_generation().
uint8_t grk::PacketIter::resno |
resolution that identify the packet
Referenced by grk::T2Compress::compress_packet(), grk::T2Compress::compress_packet_simulate(), grk::T2Decompress::decompress_packet(), generate_precinct_index(), get_include(), next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), next_rpcl(), grk::T2Decompress::read_packet_header(), grk::T2Decompress::skip_packet(), grk::T2Decompress::skip_packet_data(), 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
bool grk::PacketIter::tp_on |
Enabling Tile part generation.
Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().
uint32_t grk::PacketIter::tx0 |
tile coordinates
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::tx1 |
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::ty0 |
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::ty1 |
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::x |
packet coordinates
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().
uint32_t grk::PacketIter::y |
Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().