Grok 10.0.5
|
Copyright (C) 2016-2023 Grok Image Compression Inc. More...
Typedefs | |
using | grk_pt32 = grk_pt<uint32_t> |
using | grk_pt16 = grk_pt<uint16_t> |
using | grk_line32 = grk_line<uint32_t> |
using | grk_rect32 = grk_rect<uint32_t> |
using | grk_rect16 = grk_rect<uint16_t> |
using | grk_rect_single = grk_rect<float> |
using | grk_buf8 = grk_buf<uint8_t, AllocatorVanilla> |
using | grk_buf8_aligned = grk_buf<uint8_t, AllocatorAligned> |
typedef struct grk::grk::minpf_object_params | minpf_object_params |
typedef struct grk::grk::minpf_plugin_api_version | minpf_plugin_api_version |
typedef void *(* | minpf_create_func) (minpf_object_params *) |
typedef int32_t(* | minpf_destroy_func) (void *) |
typedef struct grk::grk::minpf_register_params | minpf_register_params |
typedef int32_t(* | minpf_register_func) (const char *nodeType, const minpf_register_params *params) |
typedef int32_t(* | minpf_invoke_service_func) (const char *serviceName, void *serviceParams) |
typedef struct grk::grk::minpf_platform_services | minpf_platform_services |
typedef int32_t(* | minpf_exit_func) () |
typedef minpf_exit_func(* | minpf_post_load_func) (const char *pluginPath, const minpf_platform_services *) |
typedef struct grk::grk::minpf_plugin_manager | minpf_plugin_manager |
typedef uint32_t(* | PLUGIN_GET_DEBUG_STATE) (void) |
typedef void(* | PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d) |
typedef void(* | PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc) |
typedef void(* | PLUGIN_ENCODE_USER_CALLBACK) (plugin_encode_user_callback_info *info) |
typedef bool(* | PLUGIN_INIT) (grk_plugin_init_info initInfo) |
typedef int32_t(* | PLUGIN_ENCODE) (grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK callback) |
typedef int32_t(* | PLUGIN_BATCH_ENCODE) (const char *input_dir, const char *output_dir, grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK userCallback) |
typedef void(* | PLUGIN_STOP_BATCH_ENCODE) (void) |
typedef bool(* | PLUGIN_IS_BATCH_COMPLETE) (void) |
typedef int32_t(* | PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info) |
typedef int32_t(* | PLUGIN_DECODE) (grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback) |
typedef int32_t(* | PLUGIN_INIT_BATCH_DECODE) (const char *input_dir, const char *output_dir, grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback) |
typedef int32_t(* | PLUGIN_BATCH_DECODE) (void) |
typedef void(* | PLUGIN_STOP_BATCH_DECODE) (void) |
typedef int32_t | grk_handle |
typedef size_t(* | grk_stream_zero_copy_read_fn) (uint8_t **buffer, size_t numBytes, void *user_data) |
typedef std::vector< TilePartLengthInfo > | TL_INFO_VEC |
typedef std::map< uint16_t, TL_INFO_VEC * > | TL_MAP |
typedef std::vector< grk_buf8 * > | PL_MARKER |
typedef std::map< uint32_t, PL_MARKER * > | PL_MARKERS |
typedef void(* | j2k_mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
typedef std::function< bool(void)> | PROCEDURE_FUNC |
typedef std::function< bool(uint8_t *headerData, uint16_t header_size)> | MARKER_FUNC |
typedef std::function< bool(uint8_t *headerData, uint32_t header_size)> | BOX_FUNC |
typedef TagTree< uint8_t > | TagTreeU8 |
typedef TagTree< uint16_t > | TagTreeU16 |
typedef uint32_t | grk_flag |
Flags for 4 consecutive rows of a column. | |
typedef vec< float, 4 > | vec4f |
typedef std::vector< ResDecompressBlocks > | ComponentDecompressBlocks |
typedef std::vector< ComponentDecompressBlocks > | TileDecompressBlocks |
Functions | |
void | GRK_INFO (const char *fmt,...) |
void | GRK_WARN (const char *fmt,...) |
void | GRK_ERROR (const char *fmt,...) |
template<typename T > | |
uint32_t | ceildiv (T a, T b) |
Divide an integer by another integer and round upwards. | |
template<typename T > | |
T | ceildivpow2 (T a, uint32_t b) |
static uint32_t | floordivpow2 (uint32_t a, uint32_t b) |
Divide an unsigned integer by a power of 2 and round downwards. | |
uint8_t | floorlog2 (uint32_t a) |
Get logarithm of an integer and round downwards. | |
static int32_t | fix_mul (int32_t a, int32_t b) |
Multiply two fixed-point numbers. | |
template<typename T > | |
T | clip (int64_t val) |
template<typename T > | |
T | satAdd (int64_t lhs, int64_t rhs) |
template<typename T > | |
T | satAdd (T lhs, T rhs) |
template<typename T > | |
T | satSub (T lhs, T rhs) |
template<typename T > | |
T | satSub (int64_t lhs, int64_t rhs) |
uint32_t | grk_make_aligned_width (uint32_t width) |
void * | grk_malloc (size_t size) |
Allocate an uninitialized memory block. | |
void * | grk_calloc (size_t numOfElements, size_t sizeOfElements) |
Allocate a memory block with elements initialized to 0. | |
void * | grk_aligned_malloc (size_t size) |
Allocate memory aligned to a 16 byte boundary. | |
void | grk_aligned_free (void *ptr) |
void * | grk_realloc (void *m, size_t s) |
Reallocate memory blocks. | |
void | grk_free (void *m) |
Deallocates or frees a memory block. | |
PLUGIN_API minpf_exit_func | minpf_init_plugin (const char *pluginPath, const minpf_platform_services *params) |
minpf_dynamic_library * | minpf_load_dynamic_library (const char *path, char *error) |
bool | minpf_unload_dynamic_library (minpf_dynamic_library *library) |
void * | minpf_get_symbol (minpf_dynamic_library *library, const char *symbol) |
bool | minpf_get_full_path (const char *path, void *addr, dynamic_handle_t handle, char *fullPath, size_t fullPathLen) |
minpf_plugin_manager * | minpf_get_plugin_manager (void) |
void | minpf_cleanup_plugin_manager (void) |
int32_t | minpf_load_from_dir (const char *dir, minpf_invoke_service_func func) |
int32_t | minpf_load_from_path (const char *path, minpf_invoke_service_func func) |
const char * | minpf_get_dynamic_library_extension (void) |
void | set_up_mem_stream (grk_stream *stream, size_t len, bool is_read_stream) |
grk_stream * | create_mem_stream (uint8_t *buf, size_t len, bool ownsBuffer, bool is_read_stream) |
Create stream from buffer. | |
size_t | get_mem_stream_offset (grk_stream *stream) |
grk_stream * | create_mapped_file_read_stream (const char *fname) |
grk_stream * | create_mapped_file_write_stream (const char *fname) |
template<typename TYPE > | |
void | grk_write (uint8_t *buffer, TYPE value, uint32_t numBytes) |
template<typename TYPE > | |
void | grk_write (uint8_t *buffer, TYPE value) |
template<typename TYPE > | |
void | grk_read (const uint8_t *buffer, TYPE *value, uint32_t numBytes) |
template<typename TYPE > | |
void | grk_read (const uint8_t *buffer, TYPE *value) |
template<typename S , typename D > | |
void | j2k_write (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
static INLINE uint32_t | mqc_raw_decode (mqcoder *mqc) |
Decompress a symbol using raw-decoder. | |
static INLINE void | mqc_bytein (mqcoder *const mqc) |
Input a byte. | |
void | mqc_byteout (mqcoder *mqc) |
Output a byte, doing bit-stuffing if necessary. | |
uint32_t | mqc_numbytes_enc (mqcoder *mqc) |
void | mqc_resetstates (mqcoder *mqc) |
void | mqc_init_enc (mqcoder *mqc, uint8_t *bp) |
void | mqc_encode (mqcoder *mqc, uint32_t d) |
void | mqc_flush_enc (mqcoder *mqc) |
void | mqc_bypass_init_enc (mqcoder *mqc) |
uint32_t | mqc_bypass_get_extra_bytes_enc (mqcoder *mqc, bool erterm) |
void | mqc_bypass_enc (mqcoder *mqc, uint32_t d) |
void | mqc_bypass_flush_enc (mqcoder *mqc, bool erterm) |
void | mqc_restart_init_enc (mqcoder *mqc) |
void | mqc_erterm_enc (mqcoder *mqc) |
void | mqc_segmark_enc (mqcoder *mqc) |
void | mqc_init_dec (mqcoder *mqc, uint8_t *bp, uint32_t len) |
Initialize the decoder for MQ decoding. | |
void | mqc_raw_init_dec (mqcoder *mqc, uint8_t *bp, uint32_t len) |
Initialize the decoder for RAW decoding. | |
void | mqc_finish_dec (mqcoder *mqc) |
Terminate RAW/MQC decoding. | |
template<class T > | |
constexpr T | getFilterPad (bool lossless) |
uint32_t | max_resolution (Resolution *GRK_RESTRICT r, uint32_t i) |
template<class T > | |
constexpr T | getHorizontalPassHeight (bool lossless) |
void | decompress_synch_plugin_with_host (TileProcessor *tcd) |
void | compress_synch_with_plugin (TileProcessor *tcd, uint16_t compno, uint32_t resno, uint32_t bandIndex, uint64_t precinctIndex, uint64_t cblkno, Subband *band, CompressCodeblock *cblk, uint32_t *numPix) |
bool | tile_equals (grk_plugin_tile *plugin_tile, Tile *tilePtr) |
void | set_context_stream (TileProcessor *p_tileProcessor) |
void | nextCXD (grk_plugin_debug_mqc *mqc, uint32_t d) |
void | mqc_next_plane (grk_plugin_debug_mqc *mqc) |
Variables | |
const uint16_t | maxNumComponentsJ2K = 16384 |
const uint8_t | maxPrecisionJ2K = 38 |
const uint8_t | maxPassesPerSegmentJ2K = (maxPrecisionJ2K - 1) * 3 + 1 |
const uint16_t | maxNumTilesJ2K = 65535 |
const uint8_t | maxTilePartsPerTileJ2K = 255 |
const uint16_t | maxTotalTilePartsJ2K = 65535 |
const uint32_t | maxTilePartSizeJ2K = UINT_MAX |
const uint16_t | maxNumLayersJ2K = 65535 |
const uint32_t | maxBitPlanesGRK = 31 - T1_NMSEDEC_FRACBITS |
const uint16_t | maxCompressLayersGRK = 100 |
const uint32_t | default_numbers_segments = 10 |
const uint32_t | default_header_size = 4096 |
const uint32_t | default_number_mcc_records = 10 |
const uint32_t | default_number_mct_records = 10 |
const uint32_t | sot_marker_segment_len_minus_tile_data_len = 12U |
const uint32_t | sot_marker_segment_min_len = 14U |
const uint32_t | SPCod_SPCoc_len = 5U |
const uint32_t | cod_coc_len = 5U |
const uint32_t | tlmMarkerBytesPerTilePart = 6 |
const uint32_t | GRK_COMP_PARAM_DEFAULT_CBLOCKW = 64 |
const uint32_t | GRK_COMP_PARAM_DEFAULT_CBLOCKH = 64 |
const GRK_PROG_ORDER | GRK_COMP_PARAM_DEFAULT_PROG_ORDER = GRK_LRCP |
const uint32_t | GRK_COMP_PARAM_DEFAULT_NUMRESOLUTION = 6 |
const uint16_t | J2K_MS_SOC = 0xff4f |
SOC marker value. | |
const uint16_t | J2K_MS_SOT = 0xff90 |
SOT marker value. | |
const uint16_t | J2K_MS_SOD = 0xff93 |
SOD marker value. | |
const uint16_t | J2K_MS_EOC = 0xffd9 |
EOC marker value. | |
const uint16_t | J2K_MS_CAP = 0xff50 |
CAP marker value. | |
const uint16_t | J2K_MS_SIZ = 0xff51 |
SIZ marker value. | |
const uint16_t | J2K_MS_COD = 0xff52 |
COD marker value. | |
const uint16_t | J2K_MS_COC = 0xff53 |
COC marker value. | |
const uint16_t | J2K_MS_RGN = 0xff5e |
RGN marker value. | |
const uint16_t | J2K_MS_QCD = 0xff5c |
QCD marker value. | |
const uint16_t | J2K_MS_QCC = 0xff5d |
QCC marker value. | |
const uint16_t | J2K_MS_POC = 0xff5f |
POC marker value. | |
const uint16_t | J2K_MS_TLM = 0xff55 |
TLM marker value. | |
const uint16_t | J2K_MS_PLM = 0xff57 |
PLM marker value. | |
const uint16_t | J2K_MS_PLT = 0xff58 |
PLT marker value. | |
const uint16_t | J2K_MS_PPM = 0xff60 |
PPM marker value. | |
const uint16_t | J2K_MS_PPT = 0xff61 |
PPT marker value. | |
const uint16_t | J2K_MS_SOP = 0xff91 |
SOP marker value. | |
const uint16_t | J2K_MS_EPH = 0xff92 |
EPH marker value. | |
const uint16_t | J2K_MS_CRG = 0xff63 |
CRG marker value. | |
const uint16_t | J2K_MS_COM = 0xff64 |
COM marker value. | |
const uint16_t | J2K_MS_CBD = 0xff78 |
CBD marker value. | |
const uint16_t | J2K_MS_MCC = 0xff75 |
MCC marker value. | |
const uint16_t | J2K_MS_MCT = 0xff74 |
MCT marker value. | |
const uint16_t | J2K_MS_MCO = 0xff77 |
MCO marker value. | |
const uint16_t | J2K_MS_UNK = 0 |
UNKNOWN marker value. | |
const uint8_t | MARKER_BYTES = 2 |
const uint8_t | MARKER_LENGTH_BYTES = 2 |
const uint8_t | MARKER_PLUS_MARKER_LENGTH_BYTES = MARKER_BYTES + MARKER_LENGTH_BYTES |
const uint32_t | MCT_ELEMENT_SIZE [] = {2, 4, 4, 8} |
const uint8_t | IPTC_UUID [16] |
const uint8_t | XMP_UUID [16] |
const uint32_t | A_MIN = 0x8000 |
const uint32_t | BAND_RES_ZERO_INDEX_LL = 0 |
const uint32_t | singleTileRowsPerStrip = 32 |
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 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/. 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/.
typedef std::function<bool(uint8_t* headerData, uint32_t header_size)> grk::grk::BOX_FUNC |
typedef std::vector<ResDecompressBlocks> grk::grk::ComponentDecompressBlocks |
using grk::grk::grk_buf8 = grk_buf<uint8_t, AllocatorVanilla> |
using grk::grk::grk_buf8_aligned = grk_buf<uint8_t, AllocatorAligned> |
typedef uint32_t grk::grk::grk_flag |
Flags for 4 consecutive rows of a column.
typedef int32_t grk::grk::grk_handle |
using grk::grk::grk_line32 = grk_line<uint32_t> |
using grk::grk::grk_pt16 = grk_pt<uint16_t> |
using grk::grk::grk_pt32 = grk_pt<uint32_t> |
typedef grk_rect< uint16_t > grk::grk::grk_rect16 = grk_rect<uint16_t> |
typedef grk_rect< uint32_t > grk::grk::grk_rect32 = grk_rect<uint32_t> |
using grk::grk::grk_rect_single = grk_rect<float> |
typedef size_t(* grk::grk::grk_stream_zero_copy_read_fn) (uint8_t **buffer, size_t numBytes, void *user_data) |
typedef void(* grk::grk::j2k_mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
typedef std::function<bool(uint8_t* headerData, uint16_t header_size)> grk::grk::MARKER_FUNC |
typedef void *(* grk::grk::minpf_create_func)(minpf_object_params *) |
typedef int32_t(* grk::grk::minpf_destroy_func)(void *) |
typedef int32_t(* grk::grk::minpf_exit_func)() |
typedef int32_t(* grk::grk::minpf_invoke_service_func)(const char *serviceName, void *serviceParams) |
typedef struct grk::grk::minpf_object_params grk::grk::minpf_object_params |
typedef struct grk::grk::minpf_platform_services grk::grk::minpf_platform_services |
typedef struct grk::grk::minpf_plugin_api_version grk::grk::minpf_plugin_api_version |
typedef struct grk::grk::minpf_plugin_manager grk::grk::minpf_plugin_manager |
typedef minpf_exit_func(* grk::grk::minpf_post_load_func)(const char *pluginPath, const minpf_platform_services *) |
typedef int32_t(* grk::grk::minpf_register_func)(const char *nodeType, const minpf_register_params *params) |
typedef struct grk::grk::minpf_register_params grk::grk::minpf_register_params |
typedef std::vector<grk_buf8*> grk::grk::PL_MARKER |
typedef std::map<uint32_t, PL_MARKER*> grk::grk::PL_MARKERS |
typedef int32_t(* grk::grk::PLUGIN_BATCH_DECODE) (void) |
typedef int32_t(* grk::grk::PLUGIN_BATCH_ENCODE) (const char *input_dir, const char *output_dir, grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK userCallback) |
typedef void(* grk::grk::PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d) |
typedef void(* grk::grk::PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc) |
typedef int32_t(* grk::grk::PLUGIN_DECODE) (grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback) |
typedef int32_t(* grk::grk::PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info) |
typedef int32_t(* grk::grk::PLUGIN_ENCODE) (grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK callback) |
typedef void(* grk::grk::PLUGIN_ENCODE_USER_CALLBACK) (plugin_encode_user_callback_info *info) |
typedef uint32_t(* grk::grk::PLUGIN_GET_DEBUG_STATE) (void) |
typedef bool(* grk::grk::PLUGIN_INIT) (grk_plugin_init_info initInfo) |
typedef int32_t(* grk::grk::PLUGIN_INIT_BATCH_DECODE) (const char *input_dir, const char *output_dir, grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback) |
typedef bool(* grk::grk::PLUGIN_IS_BATCH_COMPLETE) (void) |
typedef void(* grk::grk::PLUGIN_STOP_BATCH_DECODE) (void) |
typedef void(* grk::grk::PLUGIN_STOP_BATCH_ENCODE) (void) |
typedef std::function<bool(void)> grk::grk::PROCEDURE_FUNC |
typedef TagTree<uint16_t> grk::grk::TagTreeU16 |
typedef TagTree<uint8_t> grk::grk::TagTreeU8 |
typedef std::vector<ComponentDecompressBlocks> grk::grk::TileDecompressBlocks |
typedef std::vector<TilePartLengthInfo> grk::grk::TL_INFO_VEC |
typedef std::map<uint16_t, TL_INFO_VEC*> grk::grk::TL_MAP |
typedef vec<float, 4> grk::grk::vec4f |
Status of decoding process when decoding main header or tile header.
These values may be combined with the | operator.
Status of decoding process when decoding main header or tile header.
These values may be combined with the | operator.
enum grk::grk::eBandIndex |
Type of elements storing in the MCT data.
Type of elements storing in the MCT data.
enum grk::grk::JP2_STATE |
uint32_t grk::grk::ceildiv | ( | T | a, |
T | b ) |
Divide an integer by another integer and round upwards.
a | integer of type T |
b | integer of type T |
T grk::grk::ceildivpow2 | ( | T | a, |
uint32_t | b ) |
T grk::grk::clip | ( | int64_t | val | ) |
void grk::grk::compress_synch_with_plugin | ( | TileProcessor * | tcd, |
uint16_t | compno, | ||
uint32_t | resno, | ||
uint32_t | bandIndex, | ||
uint64_t | precinctIndex, | ||
uint64_t | cblkno, | ||
Subband * | band, | ||
CompressCodeblock * | cblk, | ||
uint32_t * | numPix ) |
grk_stream * grk::grk::create_mapped_file_read_stream | ( | const char * | fname | ) |
grk_stream * grk::grk::create_mapped_file_write_stream | ( | const char * | fname | ) |
grk_stream * grk::grk::create_mem_stream | ( | uint8_t * | buf, |
size_t | len, | ||
bool | ownsBuffer, | ||
bool | is_read_stream ) |
Create stream from buffer.
buf | buffer |
buffer_len | length of buffer |
ownsBuffer | if true, library will delete[] buffer. Otherwise, it is the caller's responsibility to delete the buffer |
is_read_stream | whether the stream is a read stream (true) or not (false) |
void grk::grk::decompress_synch_plugin_with_host | ( | TileProcessor * | tcd | ) |
|
inlinestatic |
Multiply two fixed-point numbers.
a | N-bit precision fixed point number |
b | 13-bit precision fixed point number |
|
inlinestatic |
Divide an unsigned integer by a power of 2 and round downwards.
uint8_t grk::grk::floorlog2 | ( | uint32_t | a | ) |
Get logarithm of an integer and round downwards.
a | 32 bit integer |
size_t grk::grk::get_mem_stream_offset | ( | grk_stream * | stream | ) |
|
constexpr |
|
constexpr |
void grk::grk::grk_aligned_free | ( | void * | ptr | ) |
Referenced by grk::grk::T1::alloc(), and grk::grk::T1::deallocUncompressedData().
void * grk::grk::grk_aligned_malloc | ( | size_t | size | ) |
Allocate memory aligned to a 16 byte boundary.
size | Bytes to allocate |
Referenced by grk::grk::T1::alloc(), and grk::grk::T1::allocUncompressedData().
void * grk::grk::grk_calloc | ( | size_t | numOfElements, |
size_t | sizeOfElements ) |
Allocate a memory block with elements initialized to 0.
numOfElements | Blocks to allocate |
sizeOfElements | Bytes per block to allocate |
Referenced by grk::grk::T1::code_block_enc_allocate().
void grk::grk::GRK_ERROR | ( | const char * | fmt, |
... ) |
void grk::grk::grk_free | ( | void * | m | ) |
Deallocates or frees a memory block.
m | Previously allocated memory block to be freed |
Referenced by grk::grk::T1::code_block_enc_deallocate().
void grk::grk::GRK_INFO | ( | const char * | fmt, |
... ) |
uint32_t grk::grk::grk_make_aligned_width | ( | uint32_t | width | ) |
void * grk::grk::grk_malloc | ( | size_t | size | ) |
Allocate an uninitialized memory block.
size | Bytes to allocate |
void grk::grk::grk_read | ( | const uint8_t * | buffer, |
TYPE * | value ) |
void grk::grk::grk_read | ( | const uint8_t * | buffer, |
TYPE * | value, | ||
uint32_t | numBytes ) |
void * grk::grk::grk_realloc | ( | void * | m, |
size_t | s ) |
Reallocate memory blocks.
m | Pointer to previously allocated memory block |
s | New size in bytes |
void grk::grk::GRK_WARN | ( | const char * | fmt, |
... ) |
Referenced by grk::grk::T1::decompress_cblk().
void grk::grk::grk_write | ( | uint8_t * | buffer, |
TYPE | value ) |
void grk::grk::grk_write | ( | uint8_t * | buffer, |
TYPE | value, | ||
uint32_t | numBytes ) |
void grk::grk::j2k_write | ( | const void * | p_src_data, |
void * | p_dest_data, | ||
uint64_t | nb_elem ) |
uint32_t grk::grk::max_resolution | ( | Resolution *GRK_RESTRICT | r, |
uint32_t | i ) |
void grk::grk::minpf_cleanup_plugin_manager | ( | void | ) |
const char * grk::grk::minpf_get_dynamic_library_extension | ( | void | ) |
bool grk::grk::minpf_get_full_path | ( | const char * | path, |
void * | addr, | ||
dynamic_handle_t | handle, | ||
char * | fullPath, | ||
size_t | fullPathLen ) |
minpf_plugin_manager * grk::grk::minpf_get_plugin_manager | ( | void | ) |
void * grk::grk::minpf_get_symbol | ( | minpf_dynamic_library * | library, |
const char * | symbol ) |
PLUGIN_API minpf_exit_func grk::grk::minpf_init_plugin | ( | const char * | pluginPath, |
const minpf_platform_services * | params ) |
minpf_dynamic_library * grk::grk::minpf_load_dynamic_library | ( | const char * | path, |
char * | error ) |
int32_t grk::grk::minpf_load_from_dir | ( | const char * | dir, |
minpf_invoke_service_func | func ) |
int32_t grk::grk::minpf_load_from_path | ( | const char * | path, |
minpf_invoke_service_func | func ) |
bool grk::grk::minpf_unload_dynamic_library | ( | minpf_dynamic_library * | library | ) |
void grk::grk::mqc_bypass_enc | ( | mqcoder * | mqc, |
uint32_t | d ) |
void grk::grk::mqc_bypass_flush_enc | ( | mqcoder * | mqc, |
bool | erterm ) |
uint32_t grk::grk::mqc_bypass_get_extra_bytes_enc | ( | mqcoder * | mqc, |
bool | erterm ) |
void grk::grk::mqc_bypass_init_enc | ( | mqcoder * | mqc | ) |
Input a byte.
mqc | MQC handle |
void grk::grk::mqc_byteout | ( | mqcoder * | mqc | ) |
Output a byte, doing bit-stuffing if necessary.
After a 0xff byte, the next byte must be smaller than 0x90.
mqc | MQC handle |
void grk::grk::mqc_encode | ( | mqcoder * | mqc, |
uint32_t | d ) |
void grk::grk::mqc_erterm_enc | ( | mqcoder * | mqc | ) |
void grk::grk::mqc_finish_dec | ( | mqcoder * | mqc | ) |
Terminate RAW/MQC decoding.
This restores the bytes temporarily overwritten by mqc_init_dec()/ mqc_raw_init_dec()
mqc | MQC handle |
void grk::grk::mqc_flush_enc | ( | mqcoder * | mqc | ) |
void grk::grk::mqc_init_dec | ( | mqcoder * | mqc, |
uint8_t * | bp, | ||
uint32_t | len ) |
Initialize the decoder for MQ decoding.
mqc_finish_dec() must be absolutely called after finishing the decoding passes, so as to restore the bytes temporarily overwritten.
mqc | MQC handle |
bp | Pointer to the start of the buffer from which the bytes will be read Note that OPJ_COMMON_CBLK_DATA_EXTRA bytes at the end of the buffer will be temporarily overwritten with an artificial 0xFF 0xFF marker. (they will be backuped in the mqc structure to be restored later) So bp must be at least len + OPJ_COMMON_CBLK_DATA_EXTRA large, and writable. |
len | Length of the input buffer |
void grk::grk::mqc_init_enc | ( | mqcoder * | mqc, |
uint8_t * | bp ) |
void grk::grk::mqc_next_plane | ( | grk_plugin_debug_mqc * | mqc | ) |
uint32_t grk::grk::mqc_numbytes_enc | ( | mqcoder * | mqc | ) |
Decompress a symbol using raw-decoder.
Cfr p.506 TAUBMAN
mqc | MQC handle |
void grk::grk::mqc_raw_init_dec | ( | mqcoder * | mqc, |
uint8_t * | bp, | ||
uint32_t | len ) |
Initialize the decoder for RAW decoding.
mqc_finish_dec() must be absolutely called after finishing the decoding passes, so as to restore the bytes temporarily overwritten.
mqc | MQC handle |
bp | Pointer to the start of the buffer from which the bytes will be read Note that OPJ_COMMON_CBLK_DATA_EXTRA bytes at the end of the buffer will be temporarily overwritten with an artificial 0xFF 0xFF marker. (they will be backuped in the mqc structure to be restored later) So bp must be at least len + OPJ_COMMON_CBLK_DATA_EXTRA large, and writable. |
len | Length of the input buffer |
void grk::grk::mqc_resetstates | ( | mqcoder * | mqc | ) |
void grk::grk::mqc_restart_init_enc | ( | mqcoder * | mqc | ) |
void grk::grk::mqc_segmark_enc | ( | mqcoder * | mqc | ) |
void grk::grk::nextCXD | ( | grk_plugin_debug_mqc * | mqc, |
uint32_t | d ) |
T grk::grk::satAdd | ( | int64_t | lhs, |
int64_t | rhs ) |
T grk::grk::satAdd | ( | T | lhs, |
T | rhs ) |
T grk::grk::satSub | ( | int64_t | lhs, |
int64_t | rhs ) |
T grk::grk::satSub | ( | T | lhs, |
T | rhs ) |
void grk::grk::set_context_stream | ( | TileProcessor * | p_tileProcessor | ) |
void grk::grk::set_up_mem_stream | ( | grk_stream * | stream, |
size_t | len, | ||
bool | is_read_stream ) |
bool grk::grk::tile_equals | ( | grk_plugin_tile * | plugin_tile, |
Tile * | tilePtr ) |
const uint32_t grk::grk::A_MIN = 0x8000 |
const uint32_t grk::grk::BAND_RES_ZERO_INDEX_LL = 0 |
const uint32_t grk::grk::cod_coc_len = 5U |
const uint32_t grk::grk::default_header_size = 4096 |
const uint32_t grk::grk::default_number_mcc_records = 10 |
const uint32_t grk::grk::default_number_mct_records = 10 |
const uint32_t grk::grk::default_numbers_segments = 10 |
const uint32_t grk::grk::GRK_COMP_PARAM_DEFAULT_CBLOCKH = 64 |
const uint32_t grk::grk::GRK_COMP_PARAM_DEFAULT_CBLOCKW = 64 |
const uint32_t grk::grk::GRK_COMP_PARAM_DEFAULT_NUMRESOLUTION = 6 |
const GRK_PROG_ORDER grk::grk::GRK_COMP_PARAM_DEFAULT_PROG_ORDER = GRK_LRCP |
const uint8_t grk::grk::IPTC_UUID[16] |
const uint16_t grk::grk::J2K_MS_CAP = 0xff50 |
CAP marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_CBD = 0xff78 |
CBD marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_COC = 0xff53 |
COC marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_COD = 0xff52 |
COD marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_COM = 0xff64 |
COM marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_CRG = 0xff63 |
CRG marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_EOC = 0xffd9 |
EOC marker value.
const uint16_t grk::grk::J2K_MS_EPH = 0xff92 |
EPH marker value.
const uint16_t grk::grk::J2K_MS_MCC = 0xff75 |
MCC marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_MCO = 0xff77 |
MCO marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_MCT = 0xff74 |
MCT marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_PLM = 0xff57 |
PLM marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_PLT = 0xff58 |
PLT marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_POC = 0xff5f |
POC marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_PPM = 0xff60 |
PPM marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_PPT = 0xff61 |
PPT marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_QCC = 0xff5d |
QCC marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_QCD = 0xff5c |
QCD marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_RGN = 0xff5e |
RGN marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_SIZ = 0xff51 |
SIZ marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_SOC = 0xff4f |
SOC marker value.
const uint16_t grk::grk::J2K_MS_SOD = 0xff93 |
SOD marker value.
const uint16_t grk::grk::J2K_MS_SOP = 0xff91 |
SOP marker value.
const uint16_t grk::grk::J2K_MS_SOT = 0xff90 |
SOT marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_TLM = 0xff55 |
TLM marker value.
Referenced by grk::grk::CodeStreamDecompress::CodeStreamDecompress().
const uint16_t grk::grk::J2K_MS_UNK = 0 |
UNKNOWN marker value.
const uint8_t grk::grk::MARKER_BYTES = 2 |
const uint8_t grk::grk::MARKER_LENGTH_BYTES = 2 |
const uint8_t grk::grk::MARKER_PLUS_MARKER_LENGTH_BYTES = MARKER_BYTES + MARKER_LENGTH_BYTES |
const uint32_t grk::grk::maxBitPlanesGRK = 31 - T1_NMSEDEC_FRACBITS |
const uint16_t grk::grk::maxCompressLayersGRK = 100 |
Referenced by grk::grk::Tile::Tile(), and grk::grk::TileCodingParams::TileCodingParams().
const uint16_t grk::grk::maxNumComponentsJ2K = 16384 |
const uint16_t grk::grk::maxNumLayersJ2K = 65535 |
const uint16_t grk::grk::maxNumTilesJ2K = 65535 |
const uint8_t grk::grk::maxPassesPerSegmentJ2K = (maxPrecisionJ2K - 1) * 3 + 1 |
const uint8_t grk::grk::maxPrecisionJ2K = 38 |
const uint32_t grk::grk::maxTilePartSizeJ2K = UINT_MAX |
const uint8_t grk::grk::maxTilePartsPerTileJ2K = 255 |
const uint16_t grk::grk::maxTotalTilePartsJ2K = 65535 |
const uint32_t grk::grk::MCT_ELEMENT_SIZE[] = {2, 4, 4, 8} |
const uint32_t grk::grk::singleTileRowsPerStrip = 32 |
const uint32_t grk::grk::sot_marker_segment_len_minus_tile_data_len = 12U |
const uint32_t grk::grk::sot_marker_segment_min_len = 14U |
const uint32_t grk::grk::SPCod_SPCoc_len = 5U |
const uint32_t grk::grk::tlmMarkerBytesPerTilePart = 6 |
const uint8_t grk::grk::XMP_UUID[16] |