CodingParams.h
Go to the documentation of this file.
/*
* Copyright (C) 2016-2023 Grok Image Compression Inc.
*
* This source code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* This source code incorporates work covered by the BSD 2-clause license.
* Please see the LICENSE file in the root directory for details.
*
*/
#pragma once
#include "Quantizer.h"
namespace grk
{
enum J2K_MCT_ELEMENT_TYPE
{
MCT_TYPE_INT16 = 0,
MCT_TYPE_INT32 = 1,
MCT_TYPE_FLOAT = 2,
MCT_TYPE_DOUBLE = 3
};
enum J2K_MCT_ARRAY_TYPE
{
MCT_TYPE_DEPENDENCY = 0,
MCT_TYPE_DECORRELATION = 1,
MCT_TYPE_OFFSET = 2
};
struct TileComponentCodingParams
{
TileComponentCodingParams();
uint8_t csty;
uint8_t numresolutions;
uint8_t cblkw;
uint8_t cblkh;
uint8_t cblk_sty;
uint8_t qmfbid;
// true if quantization marker has been read for this component,
// false otherwise
bool quantizationMarkerSet;
// true if quantization marker was read from QCC otherwise false
bool fromQCC;
// true if quantization marker was read from tile header
bool fromTileHeader;
uint8_t qntsty;
grk_stepsize stepsizes[GRK_J2K_MAXBANDS];
// number of step sizes read from QCC marker
uint8_t numStepSizes;
uint8_t numgbits;
uint8_t roishift;
uint32_t precWidthExp[GRK_J2K_MAXRLVLS];
uint32_t precHeightExp[GRK_J2K_MAXRLVLS];
int32_t dc_level_shift_;
};
struct grk_mct_data
{
J2K_MCT_ELEMENT_TYPE element_type_;
J2K_MCT_ARRAY_TYPE array_type_;
uint32_t index_;
uint8_t* data_;
uint32_t data_size_;
};
struct grk_simple_mcc_decorrelation_data
{
uint32_t index_;
uint32_t nb_comps_;
grk_mct_data* decorrelation_array_;
grk_mct_data* offset_array_;
uint32_t is_irreversible_ : 1;
};
struct TileCodingParams
{
TileCodingParams();
~TileCodingParams();
bool advanceTilePartCounter(uint16_t tileIndex, uint8_t tilePartIndex);
bool copy(const TileCodingParams* rhs, const GrkImage* image);
void setIsHT(bool ht, bool reversible, uint8_t guardBits);
bool isHT(void);
uint32_t getNumProgressions(void);
bool hasPoc(void);
uint8_t csty;
GRK_PROG_ORDER prg;
uint16_t numlayers;
uint16_t numLayersToDecompress;
uint8_t mct;
double rates[maxCompressLayersGRK];
uint32_t numpocs;
grk_progression progressionOrderChange[GRK_J2K_MAXRLVLS];
uint32_t ppt_markers_count;
grk_ppx* ppt_markers;
uint8_t* ppt_data;
uint8_t* ppt_buffer;
size_t ppt_data_size;
size_t ppt_len;
double distortion[maxCompressLayersGRK];
// quantization style as read from main QCD marker
uint32_t main_qcd_qntsty;
// number of step sizes as read from main QCD marker
uint32_t main_qcd_numStepSizes;
TileComponentCodingParams* tccps;
// current tile part index, based on count of tile parts
// (-1 if never incremented)
// NOTES:
// 1. tile parts must appear in code stream in strictly increasing
// order
// 2. tile part index must be <= 255
uint8_t tilePartCounter_;
uint8_t numTileParts_;
SparseBuffer* compressedTileData_;
double* mct_norms;
float* mct_decoding_matrix_;
float* mct_coding_matrix_;
grk_mct_data* mct_records_;
uint32_t nb_mct_records_;
uint32_t nb_max_mct_records_;
grk_simple_mcc_decorrelation_data* mcc_records_;
uint32_t nb_mcc_records_;
uint32_t nb_max_mcc_records_;
bool cod;
bool ppt;
Quantizer* qcd_;
private:
bool ht_;
};
struct EncodingParams
{
size_t max_comp_size_;
uint32_t newTilePartProgressionPosition;
uint8_t newTilePartProgressionDivider_;
bool allocationByRateDistortion_;
bool allocationByFixedQuality_;
bool enableTilePartGeneration_;
/* write plt marker */
bool writePLT;
/* write TLM marker */
bool writeTLM;
/* rate control algorithm */
uint32_t rateControlAlgorithm;
};
struct DecodingParams
{
uint8_t reduce_;
uint16_t layer_;
uint32_t randomAccessFlags_;
};
struct CodingParams
{
CodingParams();
~CodingParams();
grk_rect32 getTileBounds(const GrkImage* p_image, uint32_t tile_x, uint32_t tile_y) const;
uint16_t rsiz;
/* Pcap */
uint32_t pcap;
/* Ccap */
uint16_t ccap[32];
uint32_t tx0;
uint32_t ty0;
uint32_t t_width;
uint32_t t_height;
size_t num_comments;
char* comment[GRK_NUM_COMMENTS_SUPPORTED];
uint16_t comment_len[GRK_NUM_COMMENTS_SUPPORTED];
bool isBinaryComment[GRK_NUM_COMMENTS_SUPPORTED];
// note: maximum number of tiles is 65535
uint16_t t_grid_width;
uint16_t t_grid_height;
PPMMarker* ppm_marker;
TileCodingParams* tcps;
union
{
DecodingParams dec_;
EncodingParams enc_;
} coding_params_;
TileLengthMarkers* tlm_markers;
PLMarkerMgr* plm_markers;
bool wholeTileDecompress_;
};
enum DECOMPRESS_STATE
{
DECOMPRESS_STATE_NONE = 0x0000,
DECOMPRESS_STATE_MH_SOC = 0x0001,
DECOMPRESS_STATE_MH_SIZ = 0x0002,
DECOMPRESS_STATE_MH = 0x0004,
DECOMPRESS_STATE_TPH = 0x0008,
DECOMPRESS_STATE_TPH_SOT = 0x0010,
DECOMPRESS_STATE_DATA = 0x0020,
DECOMPRESS_STATE_EOC = 0x0040,
DECOMPRESS_STATE_NO_EOC = 0x0080,
};
class CodeStreamDecompress;
struct DecompressorState
{
DecompressorState();
bool findNextSOT(CodeStreamDecompress* codeStream);
uint16_t getState(void);
void setState(uint16_t state);
void orState(uint16_t state);
void andState(uint16_t state);
void setComplete(uint16_t tileIndex);
// store decoding parameters common to all tiles (information
// like COD, COC and RGN in main header)
TileCodingParams* default_tcp_;
TileSet tilesToDecompress_;
uint64_t lastSotReadPosition;
bool lastTilePartInCodeStream;
private:
uint16_t state_;
};
struct CompressorState
{
CompressorState() : total_tile_parts_(0) {}
uint16_t total_tile_parts_; /* numTilePartsTotal */
};
} // namespace grk
Quantizer.h
grk::CodeStreamDecompress
Definition CodeStreamDecompress.h:38
grk::GrkImage
Definition GrkImage.h:25
grk::PPMMarker
Definition PPMMarker.h:35
grk::TileSet
Definition TileSet.h:9
GRK_NUM_COMMENTS_SUPPORTED
#define GRK_NUM_COMMENTS_SUPPORTED
Definition grok.h:108
GRK_PROG_ORDER
enum _GRK_PROG_ORDER GRK_PROG_ORDER
Progression order.
GRK_J2K_MAXRLVLS
#define GRK_J2K_MAXRLVLS
Definition grok.h:232
GRK_J2K_MAXBANDS
#define GRK_J2K_MAXBANDS
Definition grok.h:234
grk
Copyright (C) 2016-2023 Grok Image Compression Inc.
Definition ICacheable.h:20
grk::grk_read
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239
grk::maxCompressLayersGRK
const uint16_t maxCompressLayersGRK
Definition CodeStreamLimits.h:43
grk::DECOMPRESS_STATE
DECOMPRESS_STATE
Status of decoding process when decoding main header or tile header.
Definition CodingParams.h:292
grk::DECOMPRESS_STATE_TPH
@ DECOMPRESS_STATE_TPH
the decoding process is in a tile part header
Definition CodingParams.h:297
grk::DECOMPRESS_STATE_MH_SIZ
@ DECOMPRESS_STATE_MH_SIZ
a SIZ marker is expected
Definition CodingParams.h:295
grk::DECOMPRESS_STATE_DATA
@ DECOMPRESS_STATE_DATA
the decoding process is expecting to read tile data from the code stream
Definition CodingParams.h:300
grk::DECOMPRESS_STATE_NONE
@ DECOMPRESS_STATE_NONE
no decompress state
Definition CodingParams.h:293
grk::DECOMPRESS_STATE_EOC
@ DECOMPRESS_STATE_EOC
the decoding process has encountered the EOC marker
Definition CodingParams.h:302
grk::DECOMPRESS_STATE_NO_EOC
@ DECOMPRESS_STATE_NO_EOC
the decoding process must not expect a EOC marker because the code stream is truncated
Definition CodingParams.h:303
grk::DECOMPRESS_STATE_MH_SOC
@ DECOMPRESS_STATE_MH_SOC
a SOC marker is expected
Definition CodingParams.h:294
grk::DECOMPRESS_STATE_TPH_SOT
@ DECOMPRESS_STATE_TPH_SOT
the decoding process is in a tile part header and expects a SOT marker
Definition CodingParams.h:298
grk::DECOMPRESS_STATE_MH
@ DECOMPRESS_STATE_MH
the decoding process is in the main header
Definition CodingParams.h:296
grk::J2K_MCT_ARRAY_TYPE
J2K_MCT_ARRAY_TYPE
Type of MCT array.
Definition CodingParams.h:43
grk::MCT_TYPE_OFFSET
@ MCT_TYPE_OFFSET
Definition CodingParams.h:46
grk::MCT_TYPE_DECORRELATION
@ MCT_TYPE_DECORRELATION
Definition CodingParams.h:45
grk::MCT_TYPE_DEPENDENCY
@ MCT_TYPE_DEPENDENCY
Definition CodingParams.h:44
grk::J2K_MCT_ELEMENT_TYPE
J2K_MCT_ELEMENT_TYPE
Type of elements storing in the MCT data.
Definition CodingParams.h:32
grk::MCT_TYPE_FLOAT
@ MCT_TYPE_FLOAT
MCT data is stored as signed integers.
Definition CodingParams.h:35
grk::MCT_TYPE_INT16
@ MCT_TYPE_INT16
Definition CodingParams.h:33
grk::MCT_TYPE_INT32
@ MCT_TYPE_INT32
MCT data is stored as signed shorts.
Definition CodingParams.h:34
grk::MCT_TYPE_DOUBLE
@ MCT_TYPE_DOUBLE
MCT data is stored as floats.
Definition CodingParams.h:36
_grk_progression
Progression order change.
Definition grok.h:135
grk::CodingParams
Coding parameters.
Definition CodingParams.h:245
grk::CodingParams::wholeTileDecompress_
bool wholeTileDecompress_
Definition CodingParams.h:284
grk::CodingParams::num_comments
size_t num_comments
comments
Definition CodingParams.h:265
grk::CodingParams::CodingParams
CodingParams()
Definition CodingParams.cpp:26
grk::CodingParams::tcps
TileCodingParams * tcps
tile coding parameters
Definition CodingParams.h:276
grk::CodingParams::ccap
uint16_t ccap[32]
Definition CodingParams.h:255
grk::CodingParams::coding_params_
union grk::CodingParams::@0 coding_params_
grk::CodingParams::t_width
uint32_t t_width
XTsiz.
Definition CodingParams.h:261
grk::CodingParams::t_grid_height
uint16_t t_grid_height
number of tiles in height
Definition CodingParams.h:273
grk::CodingParams::pcap
uint32_t pcap
Definition CodingParams.h:253
grk::CodingParams::dec_
DecodingParams dec_
Definition CodingParams.h:279
grk::CodingParams::tx0
uint32_t tx0
XTOsiz.
Definition CodingParams.h:257
grk::CodingParams::isBinaryComment
bool isBinaryComment[GRK_NUM_COMMENTS_SUPPORTED]
Definition CodingParams.h:268
grk::CodingParams::enc_
EncodingParams enc_
Definition CodingParams.h:280
grk::CodingParams::t_height
uint32_t t_height
YTsiz.
Definition CodingParams.h:263
grk::CodingParams::ty0
uint32_t ty0
YTOsiz.
Definition CodingParams.h:259
grk::CodingParams::rsiz
uint16_t rsiz
Rsiz.
Definition CodingParams.h:251
grk::CodingParams::tlm_markers
TileLengthMarkers * tlm_markers
Definition CodingParams.h:282
grk::CodingParams::t_grid_width
uint16_t t_grid_width
number of tiles in width
Definition CodingParams.h:271
grk::CodingParams::comment
char * comment[GRK_NUM_COMMENTS_SUPPORTED]
Definition CodingParams.h:266
grk::CodingParams::ppm_marker
PPMMarker * ppm_marker
Definition CodingParams.h:274
grk::CodingParams::getTileBounds
grk_rect32 getTileBounds(const GrkImage *p_image, uint32_t tile_x, uint32_t tile_y) const
Definition CodingParams.cpp:45
grk::CodingParams::plm_markers
PLMarkerMgr * plm_markers
Definition CodingParams.h:283
grk::CodingParams::~CodingParams
~CodingParams()
Definition CodingParams.cpp:33
grk::CodingParams::comment_len
uint16_t comment_len[GRK_NUM_COMMENTS_SUPPORTED]
Definition CodingParams.h:267
grk::CompressorState
Definition CodingParams.h:341
grk::CompressorState::CompressorState
CompressorState()
Definition CodingParams.h:342
grk::CompressorState::total_tile_parts_
uint16_t total_tile_parts_
Total num of tile parts in whole image = num tiles* num tileparts in each tile.
Definition CodingParams.h:345
grk::DecodingParams
Definition CodingParams.h:230
grk::DecodingParams::layer_
uint16_t layer_
if != 0, then only the first "layer" layers are decompressed; if == 0 or not used,...
Definition CodingParams.h:236
grk::DecodingParams::randomAccessFlags_
uint32_t randomAccessFlags_
Definition CodingParams.h:238
grk::DecodingParams::reduce_
uint8_t reduce_
if != 0, then original dimension divided by 2^(reduce); if == 0 or not used, image is decompressed to...
Definition CodingParams.h:233
grk::DecompressorState
Definition CodingParams.h:310
grk::DecompressorState::tilesToDecompress_
TileSet tilesToDecompress_
Definition CodingParams.h:323
grk::DecompressorState::lastTilePartInCodeStream
bool lastTilePartInCodeStream
Indicate that the current tile-part is assumed to be the last tile part of the code stream.
Definition CodingParams.h:332
grk::DecompressorState::lastSotReadPosition
uint64_t lastSotReadPosition
Position of the last SOT marker read.
Definition CodingParams.h:326
grk::DecompressorState::default_tcp_
TileCodingParams * default_tcp_
Definition CodingParams.h:321
grk::DecompressorState::andState
void andState(uint16_t state)
Definition CodingParams.cpp:263
grk::DecompressorState::orState
void orState(uint16_t state)
Definition CodingParams.cpp:259
grk::DecompressorState::DecompressorState
DecompressorState()
Definition CodingParams.cpp:246
grk::DecompressorState::state_
uint16_t state_
Decoder state: used to indicate in which part of the code stream the decompressor is (main header,...
Definition CodingParams.h:337
grk::DecompressorState::setComplete
void setComplete(uint16_t tileIndex)
Definition CodingParams.cpp:267
grk::DecompressorState::findNextSOT
bool findNextSOT(CodeStreamDecompress *codeStream)
Definition CodingParams.cpp:272
grk::DecompressorState::getState
uint16_t getState(void)
Definition CodingParams.cpp:251
grk::DecompressorState::setState
void setState(uint16_t state)
Definition CodingParams.cpp:255
grk::EncodingParams
Definition CodingParams.h:207
grk::EncodingParams::newTilePartProgressionPosition
uint32_t newTilePartProgressionPosition
Position of tile part flag in progression order.
Definition CodingParams.h:212
grk::EncodingParams::writePLT
bool writePLT
Definition CodingParams.h:222
grk::EncodingParams::allocationByRateDistortion_
bool allocationByRateDistortion_
allocation by rate/distortion
Definition CodingParams.h:216
grk::EncodingParams::writeTLM
bool writeTLM
Definition CodingParams.h:224
grk::EncodingParams::enableTilePartGeneration_
bool enableTilePartGeneration_
Enabling Tile part generation.
Definition CodingParams.h:220
grk::EncodingParams::newTilePartProgressionDivider_
uint8_t newTilePartProgressionDivider_
Flag determining tile part generation.
Definition CodingParams.h:214
grk::EncodingParams::max_comp_size_
size_t max_comp_size_
Maximum rate for each component.
Definition CodingParams.h:210
grk::EncodingParams::allocationByFixedQuality_
bool allocationByFixedQuality_
allocation by fixed_quality
Definition CodingParams.h:218
grk::EncodingParams::rateControlAlgorithm
uint32_t rateControlAlgorithm
Definition CodingParams.h:226
grk::PLMarkerMgr
Definition PLMarkerMgr.h:30
grk::Quantizer
Definition Quantizer.h:39
grk::SparseBuffer
Definition SparseBuffer.h:28
grk::TileCodingParams
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition CodingParams.h:122
grk::TileCodingParams::mct_records_
grk_mct_data * mct_records_
mct records
Definition CodingParams.h:185
grk::TileCodingParams::hasPoc
bool hasPoc(void)
Definition CodingParams.cpp:230
grk::TileCodingParams::prg
GRK_PROG_ORDER prg
progression order
Definition CodingParams.h:136
grk::TileCodingParams::tilePartCounter_
uint8_t tilePartCounter_
Definition CodingParams.h:174
grk::TileCodingParams::numTileParts_
uint8_t numTileParts_
number of tile parts for the tile.
Definition CodingParams.h:176
grk::TileCodingParams::main_qcd_qntsty
uint32_t main_qcd_qntsty
Definition CodingParams.h:163
grk::TileCodingParams::advanceTilePartCounter
bool advanceTilePartCounter(uint16_t tileIndex, uint8_t tilePartIndex)
Definition CodingParams.cpp:111
grk::TileCodingParams::main_qcd_numStepSizes
uint32_t main_qcd_numStepSizes
Definition CodingParams.h:165
grk::TileCodingParams::ppt_buffer
uint8_t * ppt_buffer
used to keep a track of the allocated memory
Definition CodingParams.h:155
grk::TileCodingParams::csty
uint8_t csty
coding style
Definition CodingParams.h:134
grk::TileCodingParams::rates
double rates[maxCompressLayersGRK]
rates of layers
Definition CodingParams.h:143
grk::TileCodingParams::mct
uint8_t mct
multi-component transform identifier
Definition CodingParams.h:141
grk::TileCodingParams::cod
bool cod
If cod == true --> there was a COD marker for the present tile.
Definition CodingParams.h:197
grk::TileCodingParams::ppt
bool ppt
If ppt == true --> there was a PPT marker for the present tile.
Definition CodingParams.h:199
grk::TileCodingParams::nb_mct_records_
uint32_t nb_mct_records_
the number of mct records.
Definition CodingParams.h:187
grk::TileCodingParams::tccps
TileComponentCodingParams * tccps
tile-component coding parameters
Definition CodingParams.h:167
grk::TileCodingParams::ppt_data
uint8_t * ppt_data
packet header store there for future use in t2_decode_packet
Definition CodingParams.h:153
grk::TileCodingParams::numLayersToDecompress
uint16_t numLayersToDecompress
Definition CodingParams.h:139
grk::TileCodingParams::ppt_data_size
size_t ppt_data_size
Number of bytes stored inside ppt_data.
Definition CodingParams.h:157
grk::TileCodingParams::isHT
bool isHT(void)
Definition CodingParams.cpp:222
grk::TileCodingParams::mct_coding_matrix_
float * mct_coding_matrix_
the mct coding matrix
Definition CodingParams.h:183
grk::TileCodingParams::mct_norms
double * mct_norms
compressing norms
Definition CodingParams.h:179
grk::TileCodingParams::numlayers
uint16_t numlayers
number of layers
Definition CodingParams.h:138
grk::TileCodingParams::setIsHT
void setIsHT(bool ht, bool reversible, uint8_t guardBits)
Definition CodingParams.cpp:215
grk::TileCodingParams::ppt_markers_count
uint32_t ppt_markers_count
number of ppt markers (reserved size)
Definition CodingParams.h:149
grk::TileCodingParams::nb_max_mcc_records_
uint32_t nb_max_mcc_records_
the max number of mct records.
Definition CodingParams.h:195
grk::TileCodingParams::copy
bool copy(const TileCodingParams *rhs, const GrkImage *image)
Definition CodingParams.cpp:129
grk::TileCodingParams::getNumProgressions
uint32_t getNumProgressions(void)
Definition CodingParams.cpp:226
grk::TileCodingParams::TileCodingParams
TileCodingParams()
Definition CodingParams.cpp:65
grk::TileCodingParams::nb_max_mct_records_
uint32_t nb_max_mct_records_
the max number of mct records.
Definition CodingParams.h:189
grk::TileCodingParams::ppt_len
size_t ppt_len
size of ppt_data
Definition CodingParams.h:159
grk::TileCodingParams::nb_mcc_records_
uint32_t nb_mcc_records_
the number of mct records.
Definition CodingParams.h:193
grk::TileCodingParams::ppt_markers
grk_ppx * ppt_markers
ppt markers data (table indexed by Zppt)
Definition CodingParams.h:151
grk::TileCodingParams::mct_decoding_matrix_
float * mct_decoding_matrix_
the mct decoding matrix
Definition CodingParams.h:181
grk::TileCodingParams::~TileCodingParams
~TileCodingParams()
Definition CodingParams.cpp:81
grk::TileCodingParams::distortion
double distortion[maxCompressLayersGRK]
fixed_quality
Definition CodingParams.h:161
grk::TileCodingParams::compressedTileData_
SparseBuffer * compressedTileData_
Definition CodingParams.h:177
grk::TileCodingParams::mcc_records_
grk_simple_mcc_decorrelation_data * mcc_records_
mcc records
Definition CodingParams.h:191
grk::TileCodingParams::numpocs
uint32_t numpocs
number of progression order changes
Definition CodingParams.h:145
grk::TileCodingParams::progressionOrderChange
grk_progression progressionOrderChange[GRK_J2K_MAXRLVLS]
progression order changes
Definition CodingParams.h:147
grk::TileCodingParams::qcd_
Quantizer * qcd_
Definition CodingParams.h:200
grk::TileCodingParams::ht_
bool ht_
Definition CodingParams.h:203
grk::TileComponentCodingParams
Tile-component coding parameters.
Definition CodingParams.h:53
grk::TileComponentCodingParams::stepsizes
grk_stepsize stepsizes[GRK_J2K_MAXBANDS]
stepsizes used for quantization
Definition CodingParams.h:77
grk::TileComponentCodingParams::csty
uint8_t csty
coding style
Definition CodingParams.h:56
grk::TileComponentCodingParams::dc_level_shift_
int32_t dc_level_shift_
the dc_level_shift
Definition CodingParams.h:89
grk::TileComponentCodingParams::cblkh
uint8_t cblkh
log2(code-blocks height)
Definition CodingParams.h:62
grk::TileComponentCodingParams::numgbits
uint8_t numgbits
number of guard bits
Definition CodingParams.h:81
grk::TileComponentCodingParams::cblk_sty
uint8_t cblk_sty
code-block mode
Definition CodingParams.h:64
grk::TileComponentCodingParams::qmfbid
uint8_t qmfbid
discrete wavelet transform identifier
Definition CodingParams.h:66
grk::TileComponentCodingParams::fromTileHeader
bool fromTileHeader
Definition CodingParams.h:73
grk::TileComponentCodingParams::fromQCC
bool fromQCC
Definition CodingParams.h:71
grk::TileComponentCodingParams::numresolutions
uint8_t numresolutions
number of resolutions
Definition CodingParams.h:58
grk::TileComponentCodingParams::TileComponentCodingParams
TileComponentCodingParams()
Definition CodingParams.cpp:234
grk::TileComponentCodingParams::precWidthExp
uint32_t precWidthExp[GRK_J2K_MAXRLVLS]
precinct width (power of 2 exponent, < 16)
Definition CodingParams.h:85
grk::TileComponentCodingParams::roishift
uint8_t roishift
Region Of Interest shift.
Definition CodingParams.h:83
grk::TileComponentCodingParams::cblkw
uint8_t cblkw
log2(code-blocks width)
Definition CodingParams.h:60
grk::TileComponentCodingParams::precHeightExp
uint32_t precHeightExp[GRK_J2K_MAXRLVLS]
precinct height (power of 2 exponent, < 16)
Definition CodingParams.h:87
grk::TileComponentCodingParams::qntsty
uint8_t qntsty
quantisation style
Definition CodingParams.h:75
grk::TileComponentCodingParams::numStepSizes
uint8_t numStepSizes
Definition CodingParams.h:79
grk::TileComponentCodingParams::quantizationMarkerSet
bool quantizationMarkerSet
Definition CodingParams.h:69
grk::TileLengthMarkers
Definition LengthCache.h:107
grk::grk_mct_data
MCT data.
Definition CodingParams.h:96
grk::grk_mct_data::array_type_
J2K_MCT_ARRAY_TYPE array_type_
Definition CodingParams.h:98
grk::grk_mct_data::data_size_
uint32_t data_size_
Definition CodingParams.h:101
grk::grk_mct_data::element_type_
J2K_MCT_ELEMENT_TYPE element_type_
Definition CodingParams.h:97
grk::grk_mct_data::index_
uint32_t index_
Definition CodingParams.h:99
grk::grk_mct_data::data_
uint8_t * data_
Definition CodingParams.h:100
grk::grk_ppx
Definition PPMMarker.h:29
grk::grk_rect< uint32_t >
grk::grk_simple_mcc_decorrelation_data
MCC decorrelation data.
Definition CodingParams.h:108
grk::grk_simple_mcc_decorrelation_data::decorrelation_array_
grk_mct_data * decorrelation_array_
Definition CodingParams.h:111
grk::grk_simple_mcc_decorrelation_data::index_
uint32_t index_
Definition CodingParams.h:109
grk::grk_simple_mcc_decorrelation_data::nb_comps_
uint32_t nb_comps_
Definition CodingParams.h:110
grk::grk_simple_mcc_decorrelation_data::is_irreversible_
uint32_t is_irreversible_
Definition CodingParams.h:113
grk::grk_simple_mcc_decorrelation_data::offset_array_
grk_mct_data * offset_array_
Definition CodingParams.h:112
grk::grk_stepsize
Quantization stepsize.
Definition Quantizer.h:30