Grok  7.6.2
Namespaces
PacketIter.cpp File Reference
#include "grk_includes.h"

Namespaces

 grk
 Copyright (C) 2016-2020 Grok Image Compression Inc.
 

Functions

Local static functions
static bool grk::pi_next_lrcp (PacketIter *pi)
 Get next packet in layer-resolution-component-precinct order. More...
 
static bool grk::pi_next_rlcp (PacketIter *pi)
 Get next packet in resolution-layer-component-precinct order. More...
 
static bool grk::pi_next_rpcl (PacketIter *pi)
 Get next packet in resolution-precinct-component-layer order. More...
 
static bool grk::pi_next_pcrl (PacketIter *pi)
 Get next packet in precinct-component-resolution-layer order. More...
 
static bool grk::pi_next_cprl (PacketIter *pi)
 Get next packet in component-precinct-resolution-layer order. More...
 
static void grk::pi_update_encode_poc_and_final (CodingParams *p_cp, uint16_t tileno, uint32_t tx0, uint32_t tx1, uint32_t ty0, uint32_t ty1, uint64_t max_precincts, uint32_t dx_min, uint32_t dy_min)
 Updates the coding parameters if the compressing is used with Progression order changes and final (or cinema parameters are used). More...
 
static void grk::pi_update_encode_no_poc (CodingParams *p_cp, uint16_t num_comps, uint16_t tileno, uint32_t tx0, uint32_t tx1, uint32_t ty0, uint32_t ty1, uint64_t max_precincts, uint8_t max_res, uint32_t dx_min, uint32_t dy_min)
 Updates the coding parameters if the compressing is not used with Progression order changes and final (and cinema parameters are used). More...
 
static void grk::grk_get_encoding_parameters (const grk_image *p_image, const CodingParams *p_cp, uint16_t tileno, uint32_t *tx0, uint32_t *tx1, uint32_t *ty0, uint32_t *ty1, uint32_t *dx_min, uint32_t *dy_min, uint64_t *max_precincts, uint8_t *max_res)
 Gets the compressing parameters needed to update the coding parameters and all the pocs. More...
 
static void grk::grk_get_all_encoding_parameters (const grk_image *p_image, const CodingParams *p_cp, uint16_t tileno, uint32_t *tx0, uint32_t *tx1, uint32_t *ty0, uint32_t *ty1, uint32_t *dx_min, uint32_t *dy_min, uint64_t *max_precincts, uint8_t *max_res, uint32_t **p_resolutions)
 Gets the compressing parameters needed to update the coding parameters and all the pocs. More...
 
static PacketIter * grk::pi_create (const grk_image *p_image, const CodingParams *p_cp, uint16_t tileno, std::vector< uint8_t * > *include)
 Allocates memory for a packet iterator. More...
 
static void grk::pi_update_decode_no_poc (PacketIter *p_pi, TileCodingParams *p_tcp, uint64_t max_precincts, uint8_t max_res)
 Update decompress packet iterator with no POC. More...
 
static void grk::pi_update_decode_poc (PacketIter *p_pi, TileCodingParams *p_tcp, uint64_t max_precincts)
 Upgrade decompress packet iterator with POC. More...
 
static bool grk::pi_check_next_level (int32_t pos, CodingParams *cp, uint16_t tileno, uint32_t pino, const char *prog)
 Check packet iterator's nexxt level. More...
 
static void grk::update_pi_dxy (PacketIter *pi)
 
static void grk::update_pi_dxy_for_comp (PacketIter *pi, grk_pi_comp *comp)
 
static uint8_t grk::pi_next_l (PacketIter *pi)
 
PacketIter * grk::pi_create_decompress (grk_image *image, CodingParams *cp, uint16_t tileno, std::vector< uint8_t * > *include)
 Create a packet iterator for Decoder. More...
 
PacketIter * grk::pi_create_compress (const grk_image *image, CodingParams *cp, uint16_t tileno, J2K_T2_MODE t2_mode, std::vector< uint8_t * > *include)
 Creates a packet iterator for compressing. More...
 
void grk::pi_enable_tile_part_generation (PacketIter *pi, CodingParams *cp, uint16_t tileno, uint32_t pino, bool first_poc_tile_part, uint32_t tppos, J2K_T2_MODE t2_mode)
 Modify the packet iterator for enabling tile part generation. More...
 
void grk::pi_destroy (PacketIter *p_pi)
 Destroys a packet iterator array. More...
 
void grk::pi_update_encoding_parameters (const grk_image *p_image, CodingParams *p_cp, uint16_t tile_no)
 Updates the compressing parameters of the codec. More...
 
bool grk::pi_next (PacketIter *pi)
 Modify the packet iterator to point to the next packet. More...