|
Grok
7.6.0
|
Copyright (C) 2016-2020 Grok Image Compression Inc. More...
Namespaces | |
| t1_ht | |
| t1_part1 | |
Typedefs | |
| typedef bool(* | j2k_procedure) (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| typedef bool(* | jp2_procedure) (FileFormat *fileFormat, BufferedStream *) |
| typedef std::vector< grk_tl_info > | TL_INFO_VEC |
| typedef std::map< uint8_t, TL_INFO_VEC * > | TL_MAP |
| typedef std::vector< uint32_t > | PL_INFO_VEC |
| typedef std::map< uint8_t, PL_INFO_VEC * > | PL_MAP |
| typedef void(* | j2k_mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| typedef struct grk::minpf_object_params | minpf_object_params |
| typedef struct 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::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::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::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 uint32_t | grk_flag |
| Flags for 4 consecutive rows of a column. More... | |
| typedef int32_t | grk_handle |
| using | grk_pt = grk_point< int64_t > |
| using | grk_rect = grk_rectangle< int64_t > |
| using | grk_rect_u32 = grk_rectangle< uint32_t > |
| using | grk_buf = grk_buffer< uint8_t > |
Functions | |
| void | j2k_dump (CodeStream *codeStream, int32_t flag, FILE *out_stream) |
| Dump some elements from the J2K decompression structure . More... | |
| void | j2k_dump_image_header (grk_image *image, bool dev_dump_flag, FILE *out_stream) |
| Dump an image header structure. More... | |
| void | j2k_dump_image_comp_header (grk_image_comp *comp, bool dev_dump_flag, FILE *out_stream) |
| Dump a component image header structure. More... | |
| grk_codestream_info_v2 * | j2k_get_cstr_info (CodeStream *codeStream) |
| Get the code stream info from a JPEG2000 codec. More... | |
| grk_codestream_index * | j2k_get_cstr_index (CodeStream *codeStream) |
| Get the code stream index from a JPEG2000 codec. More... | |
| grk_codestream_index * | j2k_create_cstr_index (void) |
| bool | j2k_allocate_tile_element_cstr_index (CodeStream *codeStream) |
| void | j2k_destroy_cstr_index (grk_codestream_index *p_cstr_ind) |
| Destroys a code stream index structure. More... | |
| void | jp2_dump (FileFormat *fileFormat, int32_t flag, FILE *out_stream) |
| Dump some elements from the JP2 decompression structure . More... | |
| grk_codestream_info_v2 * | jp2_get_cstr_info (FileFormat *fileFormat) |
| Get the code stream info from a JPEG2000 codec. More... | |
| grk_codestream_index * | jp2_get_cstr_index (FileFormat *fileFormat) |
| Get the code stream index from a JPEG2000 codec. More... | |
| void | j2k_read_int16_to_float (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_int32_to_float (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_float32_to_float (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_float64_to_float (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_int16_to_int32 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_int32_to_int32 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_float32_to_int32 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_read_float64_to_int32 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_write_float_to_int16 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_write_float_to_int32 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_write_float_to_float (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| void | j2k_write_float_to_float64 (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| bool | j2k_add_mhmarker (grk_codestream_index *cstr_index, uint32_t type, uint64_t pos, uint32_t len) |
| Add main header marker information. More... | |
| bool | j2k_write_soc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the SOC marker (Start Of Codestream) More... | |
| bool | j2k_read_soc (CodeStream *codeStream, BufferedStream *stream) |
| Reads a SOC marker (Start of Codestream) More... | |
| bool | j2k_write_siz (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the SIZ marker (image and tile size) More... | |
| bool | j2k_read_siz (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a SIZ marker (image and tile size) More... | |
| bool | j2k_read_cap (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a CAP marker. More... | |
| bool | j2k_write_cap (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the CAP marker. More... | |
| bool | j2k_write_com (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the COM marker (comment) More... | |
| bool | j2k_read_com (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a COM marker (comments) More... | |
| bool | j2k_write_cod (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the COD marker (Coding style default) More... | |
| bool | j2k_read_cod (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a COD marker (Coding Style defaults) More... | |
| bool | j2k_compare_coc (CodeStream *codeStream, uint32_t first_comp_no, uint32_t second_comp_no) |
| Compares 2 COC markers (Coding style component) More... | |
| bool | j2k_write_coc (CodeStream *codeStream, uint32_t comp_no, BufferedStream *stream) |
| Writes the COC marker (Coding style component) More... | |
| bool | j2k_read_coc (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a COC marker (Coding Style Component) More... | |
| bool | j2k_write_qcd (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the QCD marker (quantization default) More... | |
| bool | j2k_read_qcd (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a QCD marker (Quantization defaults) More... | |
| bool | j2k_compare_qcc (CodeStream *codeStream, uint32_t first_comp_no, uint32_t second_comp_no) |
| Compare QCC markers (quantization component) More... | |
| bool | j2k_write_qcc (CodeStream *codeStream, uint16_t tile_index, uint32_t comp_no, BufferedStream *stream) |
| Writes the QCC marker (quantization component) More... | |
| bool | j2k_read_qcc (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a QCC marker (Quantization component) More... | |
| uint16_t | getPocSize (uint32_t l_nb_comp, uint32_t l_nb_poc) |
| bool | j2k_write_poc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the POC marker (Progression Order Change) More... | |
| bool | j2k_read_poc (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a POC marker (Progression Order Change) More... | |
| bool | j2k_read_crg (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a CRG marker (Component registration) More... | |
| bool | j2k_read_tlm (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a TLM marker (Tile Length Marker) More... | |
| bool | j2k_write_tlm_end (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| End writing the updated tlm. More... | |
| bool | j2k_write_tlm_begin (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Begin writing the TLM marker (Tile Length Marker) More... | |
| bool | j2k_read_plm (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a PLM marker (Packet length, main header marker) More... | |
| bool | j2k_read_plt (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a PLT marker (Packet length, tile-part header) More... | |
| bool | j2k_read_ppm (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a PPM marker (Packed headers, main header) More... | |
| bool | j2k_merge_ppm (CodingParams *p_cp) |
| Merges all PPM markers read (Packed headers, main header) More... | |
| bool | j2k_read_ppt (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a PPT marker (Packed packet headers, tile-part header) More... | |
| bool | j2k_merge_ppt (TileCodingParams *p_tcp) |
| Merges all PPT markers read (Packed headers, tile-part header) More... | |
| bool | j2k_read_sot (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Read SOT (Start of tile part) marker. More... | |
| bool | j2k_compare_SPCod_SPCoc (CodeStream *codeStream, uint32_t first_comp_no, uint32_t second_comp_no) |
| Compare 2 a SPCod/ SPCoc elements, i.e. More... | |
| bool | j2k_write_SPCod_SPCoc (CodeStream *codeStream, uint32_t comp_no, BufferedStream *stream) |
| Writes a SPCod or SPCoc element, i.e. More... | |
| uint32_t | j2k_get_SPCod_SPCoc_size (CodeStream *codeStream, uint32_t comp_no) |
| Gets the size taken by writing a SPCod or SPCoc for the given tile and component. More... | |
| bool | j2k_read_SPCod_SPCoc (CodeStream *codeStream, TileProcessor *tileProcessor, uint32_t compno, uint8_t *p_header_data, uint16_t *header_size) |
| Reads a SPCod or SPCoc element, i.e. More... | |
| uint32_t | j2k_get_SQcd_SQcc_size (CodeStream *codeStream, uint32_t comp_no) |
| Gets the size taken by writing SQcd or SQcc element, i.e. More... | |
| bool | j2k_compare_SQcd_SQcc (CodeStream *codeStream, uint32_t first_comp_no, uint32_t second_comp_no) |
| Compares 2 SQcd or SQcc element, i.e. More... | |
| bool | j2k_write_SQcd_SQcc (CodeStream *codeStream, uint32_t comp_no, BufferedStream *stream) |
| Writes a SQcd or SQcc element, i.e. More... | |
| void | j2k_update_tlm (CodeStream *codeStream, uint16_t tile_index, uint32_t tile_part_size) |
| Updates the Tile Length Marker. More... | |
| bool | j2k_read_SQcd_SQcc (CodeStream *codeStream, TileProcessor *tileProcessor, bool fromQCC, uint32_t compno, uint8_t *p_header_data, uint16_t *header_size) |
| Reads a SQcd or SQcc element, i.e. More... | |
| bool | j2k_write_mct_record (grk_mct_data *p_mct_record, BufferedStream *stream) |
| Writes the MCT marker (Multiple Component Transform) More... | |
| bool | j2k_read_mct (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a MCT marker (Multiple Component Transform) More... | |
| bool | j2k_write_mcc_record (grk_simple_mcc_decorrelation_data *p_mcc_record, BufferedStream *stream) |
| Writes the MCC marker (Multiple Component Collection) More... | |
| bool | j2k_read_mcc (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a MCC marker (Multiple Component Collection) More... | |
| bool | j2k_write_mco (CodeStream *codeStream, BufferedStream *stream) |
| Writes the MCO marker (Multiple component transformation ordering) More... | |
| bool | j2k_read_mco (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a MCO marker (Multiple Component Transform Ordering) More... | |
| bool | j2k_add_mct (TileCodingParams *p_tcp, grk_image *p_image, uint32_t index) |
| bool | j2k_write_cbd (CodeStream *codeStream, BufferedStream *stream) |
| Writes the CBD marker (Component bit depth definition) More... | |
| bool | j2k_read_cbd (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a CBD marker (Component bit depth definition) More... | |
| bool | j2k_write_all_coc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes COC marker for each component. More... | |
| bool | j2k_write_all_qcc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes QCC marker for each component. More... | |
| bool | j2k_write_regions (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes regions of interests. More... | |
| bool | j2k_write_epc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes EPC ???? More... | |
| bool | j2k_read_sod (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Reads a SOD marker (Start Of Data) More... | |
| bool | j2k_write_rgn (CodeStream *codeStream, uint16_t tile_no, uint32_t comp_no, uint32_t nb_comps, BufferedStream *stream) |
| Writes the RGN marker (Region Of Interest) More... | |
| bool | j2k_read_rgn (CodeStream *codeStream, TileProcessor *tileProcessor, uint8_t *p_header_data, uint16_t header_size) |
| Reads a RGN marker (Region Of Interest) More... | |
| bool | j2k_write_eoc (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the EOC marker (End of Codestream) More... | |
| bool | j2k_write_mct_data_group (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| Writes the CBD-MCT-MCC-MCO markers (Multi components transform) More... | |
| grk_image * | grk_image_create0 (void) |
| Create an empty image. More... | |
| void | grk_image_comp_header_update (grk_image *image, const CodingParams *p_cp) |
| Update image components with coding parameters. More... | |
| void | grk_copy_image_header (const grk_image *p_image_src, grk_image *p_image_dest) |
| bool | update_image_dimensions (grk_image *p_image, uint32_t reduce) |
| void | transfer_image_data (grk_image *src, grk_image *dest) |
| Transfer data from src to dest for each component, and null out src data. More... | |
| 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) |
| PLUGIN_API minpf_exit_func | minpf_init_plugin (const char *pluginPath, const minpf_platform_services *params) |
| 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 | decode_synch_plugin_with_host (TileProcessor *tcd) |
| void | encode_synch_with_plugin (TileProcessor *tcd, uint32_t compno, uint32_t resno, uint32_t bandno, uint64_t precno, uint64_t cblkno, grk_band *band, grk_cblk_enc *cblk, uint32_t *numPix) |
| bool | tile_equals (grk_plugin_tile *plugin_tile, grk_tile *p_tile) |
| 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) |
| 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. More... | |
| void | mqc_raw_init_dec (mqcoder *mqc, uint8_t *bp, uint32_t len) |
| Initialize the decoder for RAW decoding. More... | |
| void | mqc_finish_dec (mqcoder *mqc) |
| Terminate RAW/MQC decoding. More... | |
| bool | t1_decode_cblk (t1_info *t1, cblk_dec *cblk, uint32_t orient, uint32_t roishift, uint32_t cblksty) |
| void | t1_code_block_enc_deallocate (cblk_enc *p_code_block) |
| bool | t1_allocate_buffers (t1_info *t1, uint32_t w, uint32_t h) |
| double | t1_encode_cblk (t1_info *t1, cblk_enc *cblk, uint32_t max, uint8_t orient, uint32_t compno, uint32_t level, uint32_t qmfbid, double stepsize, uint32_t cblksty, const double *mct_norms, uint32_t mct_numcomps, bool doRateControl) |
| t1_info * | t1_create (bool isEncoder) |
| void | t1_destroy (t1_info *p_t1) |
| bool | decode_53 (TileProcessor *p_tcd, TileComponent *GRK_RESTRICT tilec, uint32_t numres) |
| Inverse 5-3 wavelet transform in 2-D. More... | |
| bool | decode_97 (TileProcessor *p_tcd, TileComponent *GRK_RESTRICT tilec, uint32_t numres) |
| Inverse 9-7 wavelet transform in 2-D. More... | |
| template<typename TYPE > | |
| void | grk_write (uint8_t *p_buffer, TYPE value, uint32_t nb_bytes) |
| template<typename TYPE > | |
| void | grk_write (uint8_t *p_buffer, TYPE value) |
| template<typename TYPE > | |
| void | grk_read (const uint8_t *p_buffer, TYPE *value, uint32_t nb_bytes) |
| template<typename TYPE > | |
| void | grk_read (const uint8_t *p_buffer, TYPE *value) |
| static uint32_t | uint_subs (uint32_t a, uint32_t b) |
| Get the saturated difference of two unsigned integers. More... | |
| static uint32_t | uint_adds (uint32_t a, uint32_t b) |
| Get the saturated sum of two unsigned integers. More... | |
| template<typename T > | |
| uint32_t | ceildiv (T a, T b) |
| Divide an integer by another integer and round upwards. More... | |
| template<typename T > | |
| T | ceildivpow2 (T a, uint32_t b) |
| static uint32_t | uint64_ceildivpow2 (uint64_t a, uint32_t b) |
| Divide a 64-bit integer by a power of 2 and round upwards. More... | |
| static uint32_t | uint_floordivpow2 (uint32_t a, uint32_t b) |
| Divide an unsigned integer by a power of 2 and round downwards. More... | |
| template<typename T > | |
| T | floorlog2 (uint32_t a) |
| Get logarithm of an integer and round downwards. More... | |
| static int32_t | int_fix_mul (int32_t a, int32_t b) |
| Multiply two fixed-point numbers. More... | |
| void | GROK_INFO (const char *fmt,...) |
| void | GROK_WARN (const char *fmt,...) |
| void | GROK_ERROR (const char *fmt,...) |
| grk_stream * | create_mem_stream (uint8_t *buf, size_t len, bool ownsBuffer, bool is_read_stream) |
| size_t | get_mem_stream_offset (grk_stream *stream) |
| grk_stream * | create_mapped_file_read_stream (const char *fname) |
| uint32_t | grk_make_aligned_width (uint32_t width) |
| void * | grk_malloc (size_t size) |
| Allocate an uninitialized memory block. More... | |
| void * | grk_calloc (size_t numOfElements, size_t sizeOfElements) |
| Allocate a memory block with elements initialized to 0. More... | |
| void * | grk_aligned_malloc (size_t size) |
| Allocate memory aligned to a 16 byte boundary. More... | |
| void | grk_aligned_free (void *ptr) |
| void * | grk_realloc (void *m, size_t s) |
| Reallocate memory blocks. More... | |
| void | grk_free (void *m) |
| Deallocates or frees a memory block. More... | |
| bool | mult_will_overflow (uint32_t a, uint32_t b) |
| bool | mult64_will_overflow (uint64_t a, uint64_t b) |
Exported functions | |
| void | j2k_init_decompressor (void *j2k, grk_dparameters *parameters) |
| Setup the decoder decoding parameters using user parameters. More... | |
| bool | j2k_init_compress (CodeStream *codeStream, grk_cparameters *parameters, grk_image *image) |
| char * | j2k_convert_progression_order (GRK_PROG_ORDER prg_order) |
| Converts an enum type progression order to string type. More... | |
| bool | j2k_end_decompress (CodeStream *j2k, BufferedStream *stream) |
| Ends the decompression procedures and possibiliy add data to be read after the code stream. More... | |
| bool | j2k_read_header (BufferedStream *stream, CodeStream *codeStream, grk_header_info *header_info, grk_image **image) |
| Read a JPEG 2000 code stream header. More... | |
| void | j2k_destroy (CodeStream *codeStream) |
| Destroys a JPEG 2000 code stream. More... | |
| bool | j2k_read_tile_header (CodeStream *codeStream, TileProcessor *tileProcessor, bool *can_decode_tile_data, BufferedStream *stream) |
| Reads a tile header. More... | |
| bool | j2k_set_decompress_area (CodeStream *codeStream, grk_image *image, uint32_t start_x, uint32_t start_y, uint32_t end_x, uint32_t end_y) |
| Set the given area to be decoded. More... | |
| bool | j2k_decompress (CodeStream *codeStream, grk_plugin_tile *tile, BufferedStream *stream, grk_image *image) |
| Decode an image from a JPEG 2000 code stream. More... | |
| bool | j2k_decompress_tile (CodeStream *codeStream, BufferedStream *stream, grk_image *p_image, uint16_t tile_index) |
| bool | j2k_compress_tile (CodeStream *codeStream, TileProcessor *tileProcessor, uint16_t tile_index, uint8_t *p_data, uint64_t uncompressed_data_size, BufferedStream *stream) |
| Writes a tile. More... | |
| bool | j2k_compress (CodeStream *codeStream, grk_plugin_tile *tile, BufferedStream *stream) |
| Encodes an image into a JPEG 2000 code stream. More... | |
| bool | j2k_start_compress (CodeStream *codeStream, BufferedStream *stream) |
| Starts a compression scheme, i.e. More... | |
| bool | j2k_end_compress (CodeStream *codeStream, BufferedStream *stream) |
| Ends the compression procedures and possibility add data to be read after the code stream. More... | |
| bool | j2k_init_mct_encoding (TileCodingParams *p_tcp, grk_image *p_image) |
| void | jp2_destroy (FileFormat *fileFormat) |
| Destroy a JP2 decompressor handle. More... | |
| bool | jp2_init_compress (FileFormat *fileFormat, grk_cparameters *parameters, grk_image *image) |
| Set up compress parameters using the current image and using user parameters. More... | |
| bool | jp2_start_compress (FileFormat *fileFormat, BufferedStream *stream) |
| Starts a compression scheme, i.e. More... | |
| bool | jp2_compress (FileFormat *fileFormat, grk_plugin_tile *tile, BufferedStream *stream) |
| Encode an image into a JPEG 2000 file stream. More... | |
| bool | jp2_compress_tile (FileFormat *fileFormat, TileProcessor *tileProcessor, uint16_t tile_index, uint8_t *p_data, uint64_t uncompressed_data_size, BufferedStream *stream) |
| Compress tile. More... | |
| bool | jp2_end_compress (FileFormat *fileFormat, BufferedStream *stream) |
| Ends the compression procedures and possibly add data to be read after the code stream. More... | |
| void | jp2_init_decompress (void *fileFormat, grk_dparameters *parameters) |
| Set up the decompress parameters using user parameters. More... | |
| bool | jp2_decompress (FileFormat *fileFormat, grk_plugin_tile *tile, BufferedStream *stream, grk_image *p_image) |
| Decompress an image from a JPEG 2000 file stream. More... | |
| bool | jp2_end_decompress (FileFormat *fileFormat, BufferedStream *stream) |
| Ends the decompression procedures and possibly add data to be read after the code stream. More... | |
| bool | jp2_read_header (BufferedStream *stream, FileFormat *fileFormat, grk_header_info *header_info, grk_image **p_image) |
| Read a JPEG 2000 file header. More... | |
| bool | jp2_read_tile_header (FileFormat *fileFormat, uint16_t *tile_index, bool *can_decode_tile_data, BufferedStream *stream) |
| Reads a tile header. More... | |
| bool | jp2_set_decompress_area (FileFormat *fileFormat, grk_image *image, uint32_t start_x, uint32_t start_y, uint32_t end_x, uint32_t end_y) |
| Sets the given area to be decompressed. More... | |
| bool | jp2_decompress_tile (FileFormat *fileFormat, BufferedStream *stream, grk_image *p_image, uint16_t tile_index) |
| PacketIter * | pi_initialise_encode (const grk_image *image, CodingParams *cp, uint16_t tileno, J2K_T2_MODE t2_mode) |
| Creates a packet iterator for encoding. More... | |
| void | pi_update_encoding_parameters (const grk_image *p_image, CodingParams *p_cp, uint16_t tile_no) |
| Updates the encoding parameters of the codec. More... | |
| void | pi_init_encode (PacketIter *pi, CodingParams *cp, uint16_t tileno, uint32_t pino, uint32_t tpnum, uint32_t tppos, J2K_T2_MODE t2_mode) |
| Modify the packet iterator for enabling tile part generation. More... | |
| PacketIter * | pi_create_decode (grk_image *image, CodingParams *cp, uint16_t tileno) |
| Create a packet iterator for Decoder. More... | |
| void | pi_destroy (PacketIter *p_pi, uint32_t nb_elements) |
| Destroys a packet iterator array. More... | |
| bool | pi_next (PacketIter *pi) |
| Modify the packet iterator to point to the next packet. More... | |
| bool | matrix_inversion_f (float *pSrcMatrix, float *pDestMatrix, uint32_t n) |
| Calculate a n x n double matrix inversion with a LUP method. More... | |
Copyright (C) 2016-2020 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/.
| using grk::grk_buf = typedef grk_buffer<uint8_t> |
| typedef uint32_t grk::grk_flag |
Flags for 4 consecutive rows of a column.
| typedef int32_t grk::grk_handle |
| using grk::grk_pt = typedef grk_point<int64_t> |
| typedef grk_rectangle< int64_t > grk::grk_rect |
| typedef grk_rectangle< uint32_t > grk::grk_rect_u32 |
| typedef void(* grk::j2k_mct_function) (const void *p_src_data, void *p_dest_data, uint64_t nb_elem) |
| typedef bool(* grk::j2k_procedure) (CodeStream *codeStream, TileProcessor *tileProcessor, BufferedStream *stream) |
| typedef bool(* grk::jp2_procedure) (FileFormat *fileFormat, BufferedStream *) |
| typedef void*(* grk::minpf_create_func) (minpf_object_params *) |
| typedef int32_t(* grk::minpf_destroy_func) (void *) |
| typedef int32_t(* grk::minpf_exit_func) () |
| typedef int32_t(* grk::minpf_invoke_service_func) (const char *serviceName, void *serviceParams) |
| typedef struct grk::minpf_object_params grk::minpf_object_params |
| typedef struct grk::minpf_platform_services grk::minpf_platform_services |
| typedef struct grk::minpf_plugin_api_version grk::minpf_plugin_api_version |
| typedef struct grk::minpf_plugin_manager grk::minpf_plugin_manager |
| typedef minpf_exit_func(* grk::minpf_post_load_func) (const char *pluginPath, const minpf_platform_services *) |
| typedef int32_t(* grk::minpf_register_func) (const char *nodeType, const minpf_register_params *params) |
| typedef struct grk::minpf_register_params grk::minpf_register_params |
| typedef std::vector<uint32_t> grk::PL_INFO_VEC |
| typedef std::map<uint8_t, PL_INFO_VEC*> grk::PL_MAP |
| typedef int32_t(* grk::PLUGIN_BATCH_DECODE) (void) |
| typedef int32_t(* grk::PLUGIN_BATCH_ENCODE) (const char *input_dir, const char *output_dir, grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK userCallback) |
| typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_CXD) (grk_plugin_debug_mqc *mqc, uint32_t d) |
| typedef void(* grk::PLUGIN_DEBUG_MQC_NEXT_PLANE) (grk_plugin_debug_mqc *mqc) |
| typedef int32_t(* grk::PLUGIN_DECODE) (grk_decompress_parameters *decoding_parameters, PLUGIN_DECODE_USER_CALLBACK userCallback) |
| typedef int32_t(* grk::PLUGIN_DECODE_USER_CALLBACK) (PluginDecodeCallbackInfo *info) |
| typedef int32_t(* grk::PLUGIN_ENCODE) (grk_cparameters *encoding_parameters, PLUGIN_ENCODE_USER_CALLBACK callback) |
| typedef void(* grk::PLUGIN_ENCODE_USER_CALLBACK) (plugin_encode_user_callback_info *info) |
| typedef uint32_t(* grk::PLUGIN_GET_DEBUG_STATE) (void) |
| typedef bool(* grk::PLUGIN_INIT) (grk_plugin_init_info initInfo) |
| typedef int32_t(* 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::PLUGIN_IS_BATCH_COMPLETE) (void) |
| typedef void(* grk::PLUGIN_STOP_BATCH_DECODE) (void) |
| typedef void(* grk::PLUGIN_STOP_BATCH_ENCODE) (void) |
| typedef std::vector<grk_tl_info> grk::TL_INFO_VEC |
| typedef std::map<uint8_t, TL_INFO_VEC*> grk::TL_MAP |
| enum grk::J2K_STATUS |
Values that specify the status of the decoding process when decoding the main header.
These values may be combined with a | operator.
| enum grk::J2K_T2_MODE |
T2 encoding mode.
| Enumerator | |
|---|---|
| THRESH_CALC | |
| FINAL_PASS | Function called in Rate allocation process. |
| enum grk::JP2_IMG_STATE |
| enum grk::JP2_STATE |
| uint32_t 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 |
Referenced by grk::grk_rectangle< uint32_t >::subsample().
| T grk::ceildivpow2 | ( | T | a, |
| uint32_t | b | ||
| ) |
Referenced by grk::grk_rectangle< uint32_t >::rectceildivpow2().
| grk_stream* grk::create_mapped_file_read_stream | ( | const char * | fname | ) |
| grk_stream* grk::create_mem_stream | ( | uint8_t * | buf, |
| size_t | len, | ||
| bool | ownsBuffer, | ||
| bool | is_read_stream | ||
| ) |
| bool grk::decode_53 | ( | TileProcessor * | p_tcd, |
| TileComponent *GRK_RESTRICT | tilec, | ||
| uint32_t | numres | ||
| ) |
Inverse 5-3 wavelet transform in 2-D.
Apply a reversible inverse DWT transform to a component of an image.
| p_tcd | TCD handle |
| tilec | Tile component information (current tile) |
| numres | Number of resolution levels to decompress |
| bool grk::decode_97 | ( | TileProcessor * | p_tcd, |
| TileComponent *GRK_RESTRICT | tilec, | ||
| uint32_t | numres | ||
| ) |
Inverse 9-7 wavelet transform in 2-D.
Apply an irreversible inverse DWT transform to a component of an image.
| p_tcd | TCD handle |
| tilec | Tile component information (current tile) |
| numres | Number of resolution levels to decompress |
| void grk::decode_synch_plugin_with_host | ( | TileProcessor * | tcd | ) |
| void grk::encode_synch_with_plugin | ( | TileProcessor * | tcd, |
| uint32_t | compno, | ||
| uint32_t | resno, | ||
| uint32_t | bandno, | ||
| uint64_t | precno, | ||
| uint64_t | cblkno, | ||
| grk_band * | band, | ||
| grk_cblk_enc * | cblk, | ||
| uint32_t * | numPix | ||
| ) |
| T grk::floorlog2 | ( | uint32_t | a | ) |
Get logarithm of an integer and round downwards.
| a | 32 bit integer |
| size_t grk::get_mem_stream_offset | ( | grk_stream * | stream | ) |
| uint16_t grk::getPocSize | ( | uint32_t | l_nb_comp, |
| uint32_t | l_nb_poc | ||
| ) |
| void grk::grk_aligned_free | ( | void * | ptr | ) |
| void* grk::grk_aligned_malloc | ( | size_t | size | ) |
Allocate memory aligned to a 16 byte boundary.
| size | Bytes to allocate |
Referenced by grk::grk_buffer_2d< T >::alloc(), and grk::WaveletForward< DWT >::run().
| void* 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 |
| void grk::grk_free | ( | void * | m | ) |
Deallocates or frees a memory block.
| m | Previously allocated memory block to be freed |
| void grk::grk_image_comp_header_update | ( | grk_image * | image, |
| const CodingParams * | p_cp | ||
| ) |
Update image components with coding parameters.
| image | image to update. |
| p_cp | coding parameters from which to update the image. |
| grk_image* grk::grk_image_create0 | ( | void | ) |
Create an empty image.
| uint32_t grk::grk_make_aligned_width | ( | uint32_t | width | ) |
Referenced by grk::grk_buffer_2d< T >::alloc().
| void* grk::grk_malloc | ( | size_t | size | ) |
Allocate an uninitialized memory block.
| size | Bytes to allocate |
| void grk::grk_read | ( | const uint8_t * | p_buffer, |
| TYPE * | value | ||
| ) |
| void grk::grk_read | ( | const uint8_t * | p_buffer, |
| TYPE * | value, | ||
| uint32_t | nb_bytes | ||
| ) |
| void* 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_write | ( | uint8_t * | p_buffer, |
| TYPE | value | ||
| ) |
| void grk::grk_write | ( | uint8_t * | p_buffer, |
| TYPE | value, | ||
| uint32_t | nb_bytes | ||
| ) |
| void grk::GROK_ERROR | ( | const char * | fmt, |
| ... | |||
| ) |
Referenced by grk::WaveletForward< DWT >::run().
| void grk::GROK_INFO | ( | const char * | fmt, |
| ... | |||
| ) |
| void grk::GROK_WARN | ( | const char * | fmt, |
| ... | |||
| ) |
Referenced by grk::grk_buffer< T >::incr_offset().
|
inlinestatic |
Multiply two fixed-point numbers.
| a | N-bit precision fixed point number |
| b | 13-bit precision fixed point number |
| bool grk::j2k_add_mct | ( | TileCodingParams * | p_tcp, |
| grk_image * | p_image, | ||
| uint32_t | index | ||
| ) |
| bool grk::j2k_add_mhmarker | ( | grk_codestream_index * | cstr_index, |
| uint32_t | type, | ||
| uint64_t | pos, | ||
| uint32_t | len | ||
| ) |
Add main header marker information.
| cstr_index | Codestream information structure |
| type | marker type |
| pos | byte offset of marker segment |
| len | length of marker segment |
| bool grk::j2k_allocate_tile_element_cstr_index | ( | CodeStream * | codeStream | ) |
| bool grk::j2k_compare_coc | ( | CodeStream * | codeStream, |
| uint32_t | first_comp_no, | ||
| uint32_t | second_comp_no | ||
| ) |
Compares 2 COC markers (Coding style component)
| codeStream | JPEG 2000 code stream |
| first_comp_no | the index of the first component to compare. |
| second_comp_no | the index of the second component to compare. |
| bool grk::j2k_compare_qcc | ( | CodeStream * | codeStream, |
| uint32_t | first_comp_no, | ||
| uint32_t | second_comp_no | ||
| ) |
Compare QCC markers (quantization component)
| codeStream | JPEG 2000 code stream |
| first_comp_no | the index of the first component to compare. |
| second_comp_no | the index of the second component to compare. |
| bool grk::j2k_compare_SPCod_SPCoc | ( | CodeStream * | codeStream, |
| uint32_t | first_comp_no, | ||
| uint32_t | second_comp_no | ||
| ) |
Compare 2 a SPCod/ SPCoc elements, i.e.
the coding style of a given component of a tile.
| codeStream | JPEG 2000 code stream |
| first_comp_no | The 1st component number to compare. |
| second_comp_no | The 1st component number to compare. |
| bool grk::j2k_compare_SQcd_SQcc | ( | CodeStream * | codeStream, |
| uint32_t | first_comp_no, | ||
| uint32_t | second_comp_no | ||
| ) |
Compares 2 SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
| codeStream | JPEG 2000 code stream |
| first_comp_no | the first component number to compare. |
| second_comp_no | the second component number to compare. |
| bool grk::j2k_compress | ( | CodeStream * | codeStream, |
| grk_plugin_tile * | tile, | ||
| BufferedStream * | stream | ||
| ) |
Encodes an image into a JPEG 2000 code stream.
| bool grk::j2k_compress_tile | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint16_t | tile_index, | ||
| uint8_t * | p_data, | ||
| uint64_t | uncompressed_data_size, | ||
| BufferedStream * | stream | ||
| ) |
Writes a tile.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| tile_index | tile index |
| data | uncompressed data |
| uncompressed_data_size | uncompressed data size |
| stream | buffered stream. |
| char* grk::j2k_convert_progression_order | ( | GRK_PROG_ORDER | prg_order | ) |
Converts an enum type progression order to string type.
| grk_codestream_index* grk::j2k_create_cstr_index | ( | void | ) |
| bool grk::j2k_decompress | ( | CodeStream * | codeStream, |
| grk_plugin_tile * | tile, | ||
| BufferedStream * | stream, | ||
| grk_image * | image | ||
| ) |
Decode an image from a JPEG 2000 code stream.
| codeStream | code stream |
| tile | plugin tile |
| stream | stream |
| image | image |
| bool grk::j2k_decompress_tile | ( | CodeStream * | codeStream, |
| BufferedStream * | stream, | ||
| grk_image * | p_image, | ||
| uint16_t | tile_index | ||
| ) |
| void grk::j2k_destroy | ( | CodeStream * | codeStream | ) |
Destroys a JPEG 2000 code stream.
| codeStream | the jpeg20000 structure to destroy. |
| void grk::j2k_destroy_cstr_index | ( | grk_codestream_index * | p_cstr_ind | ) |
Destroys a code stream index structure.
| p_cstr_ind | the code stream index parameter to destroy. |
| void grk::j2k_dump | ( | CodeStream * | codeStream, |
| int32_t | flag, | ||
| FILE * | out_stream | ||
| ) |
Dump some elements from the J2K decompression structure .
| codeStream | JPEG 2000 code stream |
| flag | flag to describe what elements are dumped. |
| out_stream | output stream where dump the elements. |
| void grk::j2k_dump_image_comp_header | ( | grk_image_comp * | comp, |
| bool | dev_dump_flag, | ||
| FILE * | out_stream | ||
| ) |
Dump a component image header structure.
| comp | the component image header to dump. |
| dev_dump_flag | flag to describe if we are in the case of this function is use outside j2k_dump function |
| out_stream | output stream where dump the elements. |
| void grk::j2k_dump_image_header | ( | grk_image * | image, |
| bool | dev_dump_flag, | ||
| FILE * | out_stream | ||
| ) |
Dump an image header structure.
| image | the image header to dump. |
| dev_dump_flag | flag to describe if we are in the case of this function is use outside j2k_dump function |
| out_stream | output stream where dump the elements. |
| bool grk::j2k_end_compress | ( | CodeStream * | codeStream, |
| BufferedStream * | stream | ||
| ) |
Ends the compression procedures and possibility add data to be read after the code stream.
| bool grk::j2k_end_decompress | ( | CodeStream * | j2k, |
| BufferedStream * | stream | ||
| ) |
Ends the decompression procedures and possibiliy add data to be read after the code stream.
| grk_codestream_index* grk::j2k_get_cstr_index | ( | CodeStream * | codeStream | ) |
Get the code stream index from a JPEG2000 codec.
| codeStream | the component image header to dump. |
| grk_codestream_info_v2* grk::j2k_get_cstr_info | ( | CodeStream * | codeStream | ) |
Get the code stream info from a JPEG2000 codec.
| codeStream | the component image header to dump. |
| uint32_t grk::j2k_get_SPCod_SPCoc_size | ( | CodeStream * | codeStream, |
| uint32_t | comp_no | ||
| ) |
Gets the size taken by writing a SPCod or SPCoc for the given tile and component.
| codeStream | the JPEG 2000 code stream |
| comp_no | the component being outputted. |
| uint32_t grk::j2k_get_SQcd_SQcc_size | ( | CodeStream * | codeStream, |
| uint32_t | comp_no | ||
| ) |
Gets the size taken by writing SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
| codeStream | the JPEG 2000 code stream |
| comp_no | the component being output. |
| bool grk::j2k_init_compress | ( | CodeStream * | codeStream, |
| grk_cparameters * | parameters, | ||
| grk_image * | image | ||
| ) |
| void grk::j2k_init_decompressor | ( | void * | j2k, |
| grk_dparameters * | parameters | ||
| ) |
Setup the decoder decoding parameters using user parameters.
Decoding parameters are returned in j2k->cp.
| j2k | J2K decompressor handle |
| parameters | decompression parameters |
| bool grk::j2k_init_mct_encoding | ( | TileCodingParams * | p_tcp, |
| grk_image * | p_image | ||
| ) |
| bool grk::j2k_merge_ppm | ( | CodingParams * | p_cp | ) |
Merges all PPM markers read (Packed headers, main header)
| p_cp | main coding parameters. |
| bool grk::j2k_merge_ppt | ( | TileCodingParams * | p_tcp | ) |
Merges all PPT markers read (Packed headers, tile-part header)
| p_tcp | the tile. |
| bool grk::j2k_read_cap | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a CAP marker.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_cbd | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a CBD marker (Component bit depth definition)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_coc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a COC marker (Coding Style Component)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_cod | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a COD marker (Coding Style defaults)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_com | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a COM marker (comments)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_crg | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a CRG marker (Component registration)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| void grk::j2k_read_float32_to_float | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_float32_to_int32 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_float64_to_float | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_float64_to_int32 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| bool grk::j2k_read_header | ( | BufferedStream * | stream, |
| CodeStream * | codeStream, | ||
| grk_header_info * | header_info, | ||
| grk_image ** | image | ||
| ) |
Read a JPEG 2000 code stream header.
| stream | stream to read data from. |
| codeStream | JPEG 2000 code stream. |
| header_info | header info struct to store header info |
| image | pointer to image |
| void grk::j2k_read_int16_to_float | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_int16_to_int32 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_int32_to_float | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_read_int32_to_int32 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| bool grk::j2k_read_mcc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a MCC marker (Multiple Component Collection)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_mco | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a MCO marker (Multiple Component Transform Ordering)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data. |
| header_size | size of header data |
| bool grk::j2k_read_mct | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a MCT marker (Multiple Component Transform)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_plm | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a PLM marker (Packet length, main header marker)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_plt | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a PLT marker (Packet length, tile-part header)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_poc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a POC marker (Progression Order Change)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_ppm | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a PPM marker (Packed headers, main header)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_ppt | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a PPT marker (Packed packet headers, tile-part header)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_qcc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a QCC marker (Quantization component)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_qcd | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a QCD marker (Quantization defaults)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_rgn | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a RGN marker (Region Of Interest)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_siz | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a SIZ marker (image and tile size)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_read_soc | ( | CodeStream * | codeStream, |
| BufferedStream * | stream | ||
| ) |
Reads a SOC marker (Start of Codestream)
| codeStream | JPEG 2000 code stream. |
| stream | XXX needs data |
| bool grk::j2k_read_sod | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Reads a SOD marker (Start Of Data)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | stream to read from |
| bool grk::j2k_read_sot | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Read SOT (Start of tile part) marker.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data. |
| header_size | size of header data |
| bool grk::j2k_read_SPCod_SPCoc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint32_t | compno, | ||
| uint8_t * | p_header_data, | ||
| uint16_t * | header_size | ||
| ) |
Reads a SPCod or SPCoc element, i.e.
the coding style of a given component of a tile.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| compno | component number |
| p_header_data | the data contained in the COM box. |
| header_size | the size of the data contained in the COM marker. |
| bool grk::j2k_read_SQcd_SQcc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| bool | fromQCC, | ||
| uint32_t | compno, | ||
| uint8_t * | p_header_data, | ||
| uint16_t * | header_size | ||
| ) |
Reads a SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| fromQCC | true if reading QCC, otherwise false (reading QCD) |
| compno | the component number to output. |
| p_header_data | the data buffer. |
| header_size | pointer to the size of the data buffer, it is changed by the function. |
| bool grk::j2k_read_tile_header | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| bool * | can_decode_tile_data, | ||
| BufferedStream * | stream | ||
| ) |
Reads a tile header.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| can_decode_tile_data | set to true if tile data is ready to be decoded |
| stream | buffered stream. |
| bool grk::j2k_read_tlm | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| uint8_t * | p_header_data, | ||
| uint16_t | header_size | ||
| ) |
Reads a TLM marker (Tile Length Marker)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| p_header_data | header data |
| header_size | size of header data |
| bool grk::j2k_set_decompress_area | ( | CodeStream * | codeStream, |
| grk_image * | image, | ||
| uint32_t | start_x, | ||
| uint32_t | start_y, | ||
| uint32_t | end_x, | ||
| uint32_t | end_y | ||
| ) |
Set the given area to be decoded.
This function should be called right after grk_read_header and before any tile header reading.
| codeStream | JPEG 2000 code stream |
| image | image |
| start_x | left position of the rectangle to decompress (in image coordinates). |
| start_y | top position of the rectangle to decompress (in image coordinates). |
| end_x | right position of the rectangle to decompress (in image coordinates). |
| end_y | bottom position of the rectangle to decompress (in image coordinates). |
| bool grk::j2k_start_compress | ( | CodeStream * | codeStream, |
| BufferedStream * | stream | ||
| ) |
Starts a compression scheme, i.e.
validates the codec parameters, writes the header.
| codeStream | JPEG 2000 code stream |
| stream | the stream object. |
| void grk::j2k_update_tlm | ( | CodeStream * | codeStream, |
| uint16_t | tile_index, | ||
| uint32_t | tile_part_size | ||
| ) |
Updates the Tile Length Marker.
| bool grk::j2k_write_all_coc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes COC marker for each component.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_all_qcc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes QCC marker for each component.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_cap | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the CAP marker.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_cbd | ( | CodeStream * | codeStream, |
| BufferedStream * | stream | ||
| ) |
Writes the CBD marker (Component bit depth definition)
| codeStream | JPEG 2000 code stream |
| stream | buffered stream. |
| bool grk::j2k_write_coc | ( | CodeStream * | codeStream, |
| uint32_t | comp_no, | ||
| BufferedStream * | stream | ||
| ) |
Writes the COC marker (Coding style component)
| codeStream | JPEG 2000 code stream |
| comp_no | the index of the component to output. |
| stream | buffered stream. |
| bool grk::j2k_write_cod | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the COD marker (Coding style default)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_com | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the COM marker (comment)
| codeStream | JPEG 2000 code stream |
| stream | buffered stream. |
| bool grk::j2k_write_eoc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the EOC marker (End of Codestream)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_epc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes EPC ????
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| void grk::j2k_write_float_to_float | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_write_float_to_float64 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_write_float_to_int16 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| void grk::j2k_write_float_to_int32 | ( | const void * | p_src_data, |
| void * | p_dest_data, | ||
| uint64_t | nb_elem | ||
| ) |
| bool grk::j2k_write_mcc_record | ( | grk_simple_mcc_decorrelation_data * | p_mcc_record, |
| BufferedStream * | stream | ||
| ) |
Writes the MCC marker (Multiple Component Collection)
| p_mcc_record | MCC record |
| stream | buffered stream. |
| bool grk::j2k_write_mco | ( | CodeStream * | codeStream, |
| BufferedStream * | stream | ||
| ) |
Writes the MCO marker (Multiple component transformation ordering)
| codeStream | JPEG 2000 code stream |
| stream | buffered stream. |
| bool grk::j2k_write_mct_data_group | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the CBD-MCT-MCC-MCO markers (Multi components transform)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_mct_record | ( | grk_mct_data * | p_mct_record, |
| BufferedStream * | stream | ||
| ) |
Writes the MCT marker (Multiple Component Transform)
| p_mct_record | MCT record |
| stream | buffered stream. |
| bool grk::j2k_write_poc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the POC marker (Progression Order Change)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_qcc | ( | CodeStream * | codeStream, |
| uint16_t | tile_index, | ||
| uint32_t | comp_no, | ||
| BufferedStream * | stream | ||
| ) |
Writes the QCC marker (quantization component)
| codeStream | JPEG 2000 code stream |
| tile_index | current tile index |
| comp_no | the index of the component to output. |
| stream | buffered stream. |
| bool grk::j2k_write_qcd | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the QCD marker (quantization default)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_regions | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes regions of interests.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_rgn | ( | CodeStream * | codeStream, |
| uint16_t | tile_no, | ||
| uint32_t | comp_no, | ||
| uint32_t | nb_comps, | ||
| BufferedStream * | stream | ||
| ) |
Writes the RGN marker (Region Of Interest)
| tile_no | the tile to output |
| comp_no | the component to output |
| nb_comps | the number of components |
| stream | buffered stream. |
| codeStream | JPEG 2000 code stream |
| bool grk::j2k_write_siz | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the SIZ marker (image and tile size)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_soc | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Writes the SOC marker (Start Of Codestream)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_SPCod_SPCoc | ( | CodeStream * | codeStream, |
| uint32_t | comp_no, | ||
| BufferedStream * | stream | ||
| ) |
Writes a SPCod or SPCoc element, i.e.
the coding style of a given component of a tile.
| codeStream | JPEG 2000 code stream |
| comp_no | the component number to output. |
| stream | buffered stream. |
| bool grk::j2k_write_SQcd_SQcc | ( | CodeStream * | codeStream, |
| uint32_t | comp_no, | ||
| BufferedStream * | stream | ||
| ) |
Writes a SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
| codeStream | JPEG 2000 code stream |
| comp_no | the component number to output. |
| stream | buffered stream. |
| bool grk::j2k_write_tlm_begin | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
Begin writing the TLM marker (Tile Length Marker)
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::j2k_write_tlm_end | ( | CodeStream * | codeStream, |
| TileProcessor * | tileProcessor, | ||
| BufferedStream * | stream | ||
| ) |
End writing the updated tlm.
| codeStream | JPEG 2000 code stream |
| tileProcessor | tile processor |
| stream | buffered stream. |
| bool grk::jp2_compress | ( | FileFormat * | fileFormat, |
| grk_plugin_tile * | tile, | ||
| BufferedStream * | stream | ||
| ) |
Encode an image into a JPEG 2000 file stream.
| fileFormat | JP2 compressor handle |
| tile | plugin tile |
| stream | Output buffer stream |
| bool grk::jp2_compress_tile | ( | FileFormat * | fileFormat, |
| TileProcessor * | tileProcessor, | ||
| uint16_t | tile_index, | ||
| uint8_t * | p_data, | ||
| uint64_t | uncompressed_data_size, | ||
| BufferedStream * | stream | ||
| ) |
Compress tile.
| fileFormat | JPEG 2000 file format |
| tileProcessor | tile processor |
| tile_index | tile index |
| p_data | uncompressed data |
| uncompressed_data_size | uncompressed data size |
| stream | buffered stream. |
| bool grk::jp2_decompress | ( | FileFormat * | fileFormat, |
| grk_plugin_tile * | tile, | ||
| BufferedStream * | stream, | ||
| grk_image * | p_image | ||
| ) |
Decompress an image from a JPEG 2000 file stream.
| fileFormat | JP2 decompressor handle |
| tile | plugin tile |
| stream | stream |
| p_image | image |
| bool grk::jp2_decompress_tile | ( | FileFormat * | fileFormat, |
| BufferedStream * | stream, | ||
| grk_image * | p_image, | ||
| uint16_t | tile_index | ||
| ) |
| void grk::jp2_destroy | ( | FileFormat * | fileFormat | ) |
Destroy a JP2 decompressor handle.
| fileFormat | JP2 decompressor handle to destroy |
| void grk::jp2_dump | ( | FileFormat * | fileFormat, |
| int32_t | flag, | ||
| FILE * | out_stream | ||
| ) |
Dump some elements from the JP2 decompression structure .
| fileFormat | the jp2 codec. |
| flag | flag to describe what elements are dump. |
| out_stream | output stream where dump the elements. |
| bool grk::jp2_end_compress | ( | FileFormat * | fileFormat, |
| BufferedStream * | stream | ||
| ) |
Ends the compression procedures and possibly add data to be read after the code stream.
| bool grk::jp2_end_decompress | ( | FileFormat * | fileFormat, |
| BufferedStream * | stream | ||
| ) |
Ends the decompression procedures and possibly add data to be read after the code stream.
| grk_codestream_index* grk::jp2_get_cstr_index | ( | FileFormat * | fileFormat | ) |
Get the code stream index from a JPEG2000 codec.
| fileFormat | jp2 codec. |
| grk_codestream_info_v2* grk::jp2_get_cstr_info | ( | FileFormat * | fileFormat | ) |
Get the code stream info from a JPEG2000 codec.
| fileFormat | jp2 codec. |
| bool grk::jp2_init_compress | ( | FileFormat * | fileFormat, |
| grk_cparameters * | parameters, | ||
| grk_image * | image | ||
| ) |
Set up compress parameters using the current image and using user parameters.
Coding parameters are returned in fileFormat->j2k->cp.
| fileFormat | JP2 compressor handle |
| parameters | compression parameters |
| image | input filled image |
| void grk::jp2_init_decompress | ( | void * | fileFormat, |
| grk_dparameters * | parameters | ||
| ) |
Set up the decompress parameters using user parameters.
Decoding parameters are returned in fileFormat->j2k->cp.
| fileFormat | JP2 decompressor handle |
| parameters | decompression parameters |
| bool grk::jp2_read_header | ( | BufferedStream * | stream, |
| FileFormat * | fileFormat, | ||
| grk_header_info * | header_info, | ||
| grk_image ** | p_image | ||
| ) |
Read a JPEG 2000 file header.
| stream | stream to read data from. |
| fileFormat | JPEG 2000 file format |
| header_info | header structure to store header info |
| p_image | input image |
| bool grk::jp2_read_tile_header | ( | FileFormat * | fileFormat, |
| uint16_t * | tile_index, | ||
| bool * | can_decode_tile_data, | ||
| BufferedStream * | stream | ||
| ) |
Reads a tile header.
| fileFormat | JPEG 2000 file format |
| tile_index | tile index |
| can_decode_tile_data | set to true if ready to decode tile data |
| stream | buffered stream. |
| bool grk::jp2_set_decompress_area | ( | FileFormat * | fileFormat, |
| grk_image * | image, | ||
| uint32_t | start_x, | ||
| uint32_t | start_y, | ||
| uint32_t | end_x, | ||
| uint32_t | end_y | ||
| ) |
Sets the given area to be decompressed.
This function should be called right after grk_read_header and before any tile header reading.
| fileFormat | JPEG 2000 code stream |
| image | output image |
| start_x | the left position of the rectangle to decompress (in image coordinates). |
| start_y | the up position of the rectangle to decompress (in image coordinates). |
| end_x | the right position of the rectangle to decompress (in image coordinates). |
| end_y | the bottom position of the rectangle to decompress (in image coordinates). |
| bool grk::jp2_start_compress | ( | FileFormat * | fileFormat, |
| BufferedStream * | stream | ||
| ) |
Starts a compression scheme, i.e.
validates the codec parameters, writes the header.
| fileFormat | JPEG 2000 file codec. |
| stream | the stream object. |
| bool grk::matrix_inversion_f | ( | float * | pSrcMatrix, |
| float * | pDestMatrix, | ||
| uint32_t | n | ||
| ) |
Calculate a n x n double matrix inversion with a LUP method.
Data is aligned, rows after rows (or columns after columns). The function does not take ownership of any memory block, data must be freed by the user.
| pSrcMatrix | the matrix to invert. |
| pDestMatrix | data to store the inverted matrix. |
| n | size of the matrix |
| void grk::minpf_cleanup_plugin_manager | ( | void | ) |
| const char* grk::minpf_get_dynamic_library_extension | ( | void | ) |
| bool grk::minpf_get_full_path | ( | const char * | path, |
| void * | addr, | ||
| dynamic_handle_t | handle, | ||
| char * | fullPath, | ||
| size_t | fullPathLen | ||
| ) |
| minpf_plugin_manager* grk::minpf_get_plugin_manager | ( | void | ) |
| void* grk::minpf_get_symbol | ( | minpf_dynamic_library * | library, |
| const char * | symbol | ||
| ) |
| PLUGIN_API minpf_exit_func grk::minpf_init_plugin | ( | const char * | pluginPath, |
| const minpf_platform_services * | params | ||
| ) |
| minpf_dynamic_library* grk::minpf_load_dynamic_library | ( | const char * | path, |
| char * | error | ||
| ) |
| int32_t grk::minpf_load_from_dir | ( | const char * | dir, |
| minpf_invoke_service_func | func | ||
| ) |
| int32_t grk::minpf_load_from_path | ( | const char * | path, |
| minpf_invoke_service_func | func | ||
| ) |
| bool grk::minpf_unload_dynamic_library | ( | minpf_dynamic_library * | library | ) |
| void grk::mqc_bypass_enc | ( | mqcoder * | mqc, |
| uint32_t | d | ||
| ) |
| void grk::mqc_bypass_flush_enc | ( | mqcoder * | mqc, |
| bool | erterm | ||
| ) |
| uint32_t grk::mqc_bypass_get_extra_bytes_enc | ( | mqcoder * | mqc, |
| bool | erterm | ||
| ) |
| void grk::mqc_bypass_init_enc | ( | mqcoder * | mqc | ) |
| void grk::mqc_encode | ( | mqcoder * | mqc, |
| uint32_t | d | ||
| ) |
| void grk::mqc_erterm_enc | ( | mqcoder * | mqc | ) |
| void 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::mqc_flush_enc | ( | mqcoder * | mqc | ) |
| void 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::mqc_init_enc | ( | mqcoder * | mqc, |
| uint8_t * | bp | ||
| ) |
| void grk::mqc_next_plane | ( | grk_plugin_debug_mqc * | mqc | ) |
| uint32_t grk::mqc_numbytes_enc | ( | mqcoder * | mqc | ) |
| void 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::mqc_resetstates | ( | mqcoder * | mqc | ) |
| void grk::mqc_restart_init_enc | ( | mqcoder * | mqc | ) |
| void grk::mqc_segmark_enc | ( | mqcoder * | mqc | ) |
|
inline |
|
inline |
| void grk::nextCXD | ( | grk_plugin_debug_mqc * | mqc, |
| uint32_t | d | ||
| ) |
| PacketIter* grk::pi_create_decode | ( | grk_image * | image, |
| CodingParams * | cp, | ||
| uint16_t | tileno | ||
| ) |
Create a packet iterator for Decoder.
| image | Raw image for which the packets will be listed |
| cp | Coding parameters |
| tileno | Number that identifies the tile for which to list the packets |
| void grk::pi_destroy | ( | PacketIter * | p_pi, |
| uint32_t | nb_elements | ||
| ) |
Destroys a packet iterator array.
| p_pi | the packet iterator array to destroy. |
| nb_elements | the number of elements in the array. |
| void grk::pi_init_encode | ( | PacketIter * | pi, |
| CodingParams * | cp, | ||
| uint16_t | tileno, | ||
| uint32_t | pino, | ||
| uint32_t | tpnum, | ||
| uint32_t | tppos, | ||
| J2K_T2_MODE | t2_mode | ||
| ) |
Modify the packet iterator for enabling tile part generation.
| pi | Handle to the packet iterator generated in pi_initialise_encode |
| cp | Coding parameters |
| tileno | Number that identifies the tile for which to list the packets |
| pino | packet iterator number |
| tpnum | Tile part number of the current tile |
| tppos | The position of the tile part flag in the progression order |
| t2_mode | T2 mode |
| PacketIter* grk::pi_initialise_encode | ( | const grk_image * | image, |
| CodingParams * | cp, | ||
| uint16_t | tileno, | ||
| J2K_T2_MODE | t2_mode | ||
| ) |
Creates a packet iterator for encoding.
| image | the image being encoded. |
| cp | the coding parameters. |
| tileno | index of the tile being encoded. |
| t2_mode | the type of pass for generating the packet iterator |
| bool grk::pi_next | ( | PacketIter * | pi | ) |
Modify the packet iterator to point to the next packet.
| pi | Packet iterator to modify |
| void grk::pi_update_encoding_parameters | ( | const grk_image * | p_image, |
| CodingParams * | p_cp, | ||
| uint16_t | tile_no | ||
| ) |
Updates the encoding parameters of the codec.
| p_image | the image being encoded. |
| p_cp | the coding parameters. |
| tile_no | index of the tile being encoded. |
| void grk::set_context_stream | ( | TileProcessor * | p_tileProcessor | ) |
| bool grk::t1_allocate_buffers | ( | t1_info * | t1, |
| uint32_t | w, | ||
| uint32_t | h | ||
| ) |
| void grk::t1_code_block_enc_deallocate | ( | cblk_enc * | p_code_block | ) |
| t1_info* grk::t1_create | ( | bool | isEncoder | ) |
| bool grk::t1_decode_cblk | ( | t1_info * | t1, |
| cblk_dec * | cblk, | ||
| uint32_t | orient, | ||
| uint32_t | roishift, | ||
| uint32_t | cblksty | ||
| ) |
| void grk::t1_destroy | ( | t1_info * | p_t1 | ) |
| double grk::t1_encode_cblk | ( | t1_info * | t1, |
| cblk_enc * | cblk, | ||
| uint32_t | max, | ||
| uint8_t | orient, | ||
| uint32_t | compno, | ||
| uint32_t | level, | ||
| uint32_t | qmfbid, | ||
| double | stepsize, | ||
| uint32_t | cblksty, | ||
| const double * | mct_norms, | ||
| uint32_t | mct_numcomps, | ||
| bool | doRateControl | ||
| ) |
| bool grk::tile_equals | ( | grk_plugin_tile * | plugin_tile, |
| grk_tile * | p_tile | ||
| ) |
Transfer data from src to dest for each component, and null out src data.
Assumption: src and dest have the same number of components
|
inlinestatic |
Divide a 64-bit integer by a power of 2 and round upwards.
| a | 64-bit integer |
| b | power of two |
|
inlinestatic |
Get the saturated sum of two unsigned integers.
| a | integer |
| b | integer |
|
inlinestatic |
Divide an unsigned integer by a power of 2 and round downwards.
|
inlinestatic |
Get the saturated difference of two unsigned integers.
| bool grk::update_image_dimensions | ( | grk_image * | p_image, |
| uint32_t | reduce | ||
| ) |
| const uint32_t grk::A_MIN = 0x8000 |
| const uint32_t grk::available_packet_len_bytes_per_plt = USHRT_MAX - 1 - 4 |
| const uint32_t grk::cod_coc_len = 5U |
| const uint32_t grk::default_header_size = 1000 |
| const uint32_t grk::default_number_mcc_records = 10 |
| const uint32_t grk::default_number_mct_records = 10 |
| const uint32_t grk::default_numbers_segments = 10 |
| const uint32_t grk::GRK_COMP_PARAM_DEFAULT_CBLOCKH = 64 |
| const uint32_t grk::GRK_COMP_PARAM_DEFAULT_CBLOCKW = 64 |
| const uint32_t grk::GRK_COMP_PARAM_DEFAULT_NUMRESOLUTION = 6 |
| const GRK_PROG_ORDER grk::GRK_COMP_PARAM_DEFAULT_PROG_ORDER = GRK_LRCP |
| const uint8_t grk::IPTC_UUID[16] |
| const uint32_t grk::k_max_bit_planes = 31-T1_NMSEDEC_FRACBITS |
| const uint32_t grk::max_num_components = 16384 |
| const uint32_t grk::max_num_tile_parts = 65535 |
| const uint32_t grk::max_num_tile_parts_per_tile = 255 |
| const uint32_t grk::max_num_tiles = 65535 |
| const uint32_t grk::max_passes_per_segment = (max_precision_jpeg_2000-1) * 3 +1 |
| const uint32_t grk::max_precision_jpeg_2000 = 38 |
| const uint32_t grk::max_supported_precision = 16 |
| const uint64_t grk::max_tile_area = 67108864000 |
| const uint32_t grk::max_tile_part_size = UINT_MAX |
| const uint32_t grk::MCT_ELEMENT_SIZE[] = { 2, 4, 4, 8 } |
| const uint32_t grk::min_packets_per_full_plt = available_packet_len_bytes_per_plt / 5 |
| const uint32_t grk::sot_marker_segment_len = 12U |
| const uint32_t grk::SPCod_SPCoc_len = 5U |
| const uint32_t grk::tag_tree_uninitialized_node_value = 999 |
| const uint32_t grk::tlm_len_per_tile_part = 5 |
| const uint8_t grk::XMP_UUID[16] |
1.8.18