bool write_byte(uint8_t value)
Definition: BufferedStream.cpp:182
bool write_int(uint32_t value)
Definition: BufferedStream.cpp:191
const uint32_t default_number_mct_records
Definition: CodeStream.h:60
Definition: SIZMarker.h:26
uint32_t t_width
XTsiz.
Definition: CodingParams.h:247
DecoderState m_decompressor
Definition: CodeStream.h:299
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: CodingParams.h:121
MCT data.
Definition: CodingParams.h:96
TileComponentCodingParams * tccps
tile-component coding parameters
Definition: CodingParams.h:163
uint32_t tx0
XTOsiz.
Definition: CodingParams.h:243
uint32_t t_grid_width
number of tiles in width
Definition: CodingParams.h:256
Byte input-output stream.
Definition: BufferedStream.h:38
grk_image_comp * comps
image components
Definition: grok.h:895
Tile-component coding parameters.
Definition: CodingParams.h:49
bool write_short(uint16_t value)
Definition: BufferedStream.cpp:185
bool read(CodeStream *codeStream, uint8_t *p_header_data, uint16_t header_size)
Decompress a SIZ marker (image and tile size)
Definition: SIZMarker.cpp:66
void GRK_WARN(const char *fmt,...)
Definition: logger.cpp:49
void * grk_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: MemManager.cpp:111
union grk::CodingParams::@0 m_coding_params
uint32_t t_grid_height
number of tiles in height
Definition: CodingParams.h:258
grk_image * m_input_image
internal/private encoded / decompressed image
Definition: CodeStream.h:303
uint16_t numcomps
number of components in the image
Definition: grok.h:891
#define GRK_IS_BROADCAST(v)
Definition: grok.h:214
uint32_t t_height
YTsiz.
Definition: CodingParams.h:249
bool wholeTileDecompress
Definition: CodeStream.h:361
const uint32_t default_number_mcc_records
Definition: CodeStream.h:59
#define GRK_IS_IMF(v)
Definition: grok.h:245
Coding parameters.
Definition: CodingParams.h:235
uint8_t m_reduce
if != 0, then original dimension divided by 2^(reduce); if == 0 or not used, image is decompressed to...
Definition: CodingParams.h:227
const uint32_t max_num_components
Definition: CodeStream.h:47
Definition: CodeStream.h:164
CodingParams m_cp
Coding parameters.
Definition: CodeStream.h:309
Image component.
Definition: grok.h:848
uint32_t y0
YOsiz: vertical offset from the origin of the reference grid to the top side of the image area.
Definition: grok.h:885
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition: BitIO.cpp:23
MCC decorrelation data.
Definition: CodingParams.h:107
#define J2K_MS_SIZ
SIZ marker value.
Definition: CodeStream.h:77
const uint32_t max_supported_precision
Definition: CodeStream.h:56
const uint32_t max_num_tiles
Definition: CodeStream.h:49
#define GRK_PROFILE_PART2
Definition: grok.h:142
#define GRK_PROFILE_MASK
Definition: grok.h:141
bool write(CodeStream *codeStream, BufferedStream *stream)
Write the SIZ marker (image and tile size)
Definition: SIZMarker.cpp:310
#define GRK_PROFILE_CINEMA_LTS
Definition: grok.h:130
uint32_t x1
Xsiz: width of the reference grid.
Definition: grok.h:887
@ J2K_DEC_STATE_MH
the decoding process is in the main header
Definition: CodingParams.h:286
DecodingParams m_dec
Definition: CodingParams.h:266
Image.
Definition: grok.h:879
uint32_t y1
Ysiz: height of the reference grid.
Definition: grok.h:889
void GRK_ERROR(const char *fmt,...)
Definition: logger.cpp:57
static void grk_update_image_comp_header_from_coding_params(grk_image *image_header, const CodingParams *p_cp)
Updates the components characteristics of the image from the coding parameters.
Definition: SIZMarker.cpp:32
uint32_t ty0
YTOsiz.
Definition: CodingParams.h:245
uint32_t x0
XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area.
Definition: grok.h:882