Grok 20.3.2
_grk_decompress_core_params Struct Reference

#include <grok.h>

Public Attributes

uint8_t reduce
 Set the number of highest resolution levels to be discarded.
uint16_t layers_to_decompress
 Set the maximum number of quality layers to decompress.
uint32_t tile_cache_strategy
uint16_t max_active_tiles
uint32_t disable_random_access_flags
bool skip_allocate_composite
grk_io_pixels_callback io_buffer_callback
void * io_user_data
grk_io_register_reclaim_callback io_register_client_callback
grk_io_band_callback io_band_callback
void * io_band_user_data
uint16_t * comps_to_decode
 Array of 0-based component indices to decode.
uint16_t num_comps_to_decode
bool fast_16bit_mct

Member Data Documentation

◆ comps_to_decode

uint16_t* _grk_decompress_core_params::comps_to_decode

Array of 0-based component indices to decode.

Only these components will be fully decoded (T1, DWT, etc.). When MCT is active, components 0-2 will always be decoded if any of them is requested. If num_comps_to_decode is 0 or comps_to_decode is nullptr, all components are decoded. Memory is owned by the caller.

◆ disable_random_access_flags

uint32_t _grk_decompress_core_params::disable_random_access_flags

◆ fast_16bit_mct

bool _grk_decompress_core_params::fast_16bit_mct

◆ io_band_callback

grk_io_band_callback _grk_decompress_core_params::io_band_callback

◆ io_band_user_data

void* _grk_decompress_core_params::io_band_user_data

◆ io_buffer_callback

grk_io_pixels_callback _grk_decompress_core_params::io_buffer_callback

◆ io_register_client_callback

grk_io_register_reclaim_callback _grk_decompress_core_params::io_register_client_callback

◆ io_user_data

void* _grk_decompress_core_params::io_user_data

◆ layers_to_decompress

uint16_t _grk_decompress_core_params::layers_to_decompress

Set the maximum number of quality layers to decompress.

If there are fewer quality layers than the specified number, all quality layers will be decompressed. If value is non-zero, then only these specified layers are decompressed. If value is zero or not set, then all the quality layers are decompressed

◆ max_active_tiles

uint16_t _grk_decompress_core_params::max_active_tiles

◆ num_comps_to_decode

uint16_t _grk_decompress_core_params::num_comps_to_decode

◆ reduce

uint8_t _grk_decompress_core_params::reduce

Set the number of highest resolution levels to be discarded.

The image resolution is effectively divided by 2 to the power of the number of discarded levels. The reduce factor is limited by the smallest total number of decomposition levels across tiles. If value is greater than zero, then the image is decoded to original dimension divided by 2^(reduce). If the value is equal to zero or not set, then the image is decompressed at full resolution

◆ skip_allocate_composite

bool _grk_decompress_core_params::skip_allocate_composite

◆ tile_cache_strategy

uint32_t _grk_decompress_core_params::tile_cache_strategy

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