Grok  7.6.6
Public Attributes | List of all members
grk::PacketIter Struct Reference

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...
 
IncludeTrackerincludeTracker
 
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_compcomps
 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
 

Detailed Description

Packet iterator.

Constructor & Destructor Documentation

◆ PacketIter()

grk::PacketIter::PacketIter ( )

References prog.

◆ ~PacketIter()

grk::PacketIter::~PacketIter ( )

References compno, comps, grk::grk_free(), and numcomps.

Member Function Documentation

◆ destroy_include()

void grk::PacketIter::destroy_include ( void  )

◆ generate_precinct_index()

bool grk::PacketIter::generate_precinct_index ( void  )

◆ get_include()

uint8_t * grk::PacketIter::get_include ( uint16_t  layerIndex)

◆ next()

bool grk::PacketIter::next ( void  )

Modify the packet iterator to point to the next packet.

Returns
false if pi pointed to the last packet or else returns true

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.

◆ next_cprl()

bool grk::PacketIter::next_cprl ( void  )

◆ next_lrcp()

bool grk::PacketIter::next_lrcp ( void  )

◆ next_pcrl()

bool grk::PacketIter::next_pcrl ( void  )

◆ next_rlcp()

bool grk::PacketIter::next_rlcp ( void  )

◆ next_rpcl()

bool grk::PacketIter::next_rpcl ( void  )

Get next packet in resolution-precinct-component-layer order.

Returns
returns false if pi pointed to the last packet or else returns true

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().

◆ update_dxy()

void grk::PacketIter::update_dxy ( void  )

References compno, comps, dx, dy, numcomps, and update_dxy_for_comp().

Referenced by next_pcrl(), and next_rpcl().

◆ update_dxy_for_comp()

void grk::PacketIter::update_dxy_for_comp ( grk_pi_comp comp)

◆ update_include()

bool grk::PacketIter::update_include ( void  )

Member Data Documentation

◆ compno

uint16_t grk::PacketIter::compno

◆ comps

grk_pi_comp* grk::PacketIter::comps

◆ dx

uint32_t grk::PacketIter::dx

packet sub-sampling factors

Referenced by next_cprl(), next_pcrl(), next_rpcl(), update_dxy(), and update_dxy_for_comp().

◆ dy

uint32_t grk::PacketIter::dy

◆ first

bool grk::PacketIter::first

true if the first packet

Referenced by next_lrcp(), next_rlcp(), and next_rpcl().

◆ includeTracker

IncludeTracker* grk::PacketIter::includeTracker

◆ layno

uint16_t grk::PacketIter::layno

◆ numcomps

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().

◆ numpocs

uint32_t grk::PacketIter::numpocs

Referenced by next_lrcp(), next_rlcp(), and next_rpcl().

◆ precinctIndex

uint64_t grk::PacketIter::precinctIndex

◆ prog

grk_progression grk::PacketIter::prog

◆ resno

uint8_t grk::PacketIter::resno

◆ step_c

uint64_t grk::PacketIter::step_c

component step used to localize the packet in the include vector

◆ step_l

uint64_t grk::PacketIter::step_l

layer step used to localize the packet in the include vector

◆ step_p

uint32_t grk::PacketIter::step_p

precinct step used to localize the packet in the include vector

◆ step_r

uint64_t grk::PacketIter::step_r

resolution step used to localize the packet in the include vector

◆ tp_on

bool grk::PacketIter::tp_on

Enabling Tile part generation.

Referenced by next_cprl(), next_lrcp(), next_pcrl(), next_rlcp(), and next_rpcl().

◆ tx0

uint32_t grk::PacketIter::tx0

tile coordinates

Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().

◆ tx1

uint32_t grk::PacketIter::tx1

◆ ty0

uint32_t grk::PacketIter::ty0

◆ ty1

uint32_t grk::PacketIter::ty1

◆ x

uint32_t grk::PacketIter::x

packet coordinates

Referenced by generate_precinct_index(), next_cprl(), next_pcrl(), and next_rpcl().

◆ y

uint32_t grk::PacketIter::y

The documentation for this struct was generated from the following files: