OpenJPEG
1.5.2
|
Data Structures | |
struct | j2k_prog_order |
struct | opj_dec_mstabent |
Typedefs | |
typedef struct j2k_prog_order | j2k_prog_order_t |
typedef struct opj_dec_mstabent | opj_dec_mstabent_t |
Functions | |
char * | j2k_convert_progression_order (OPJ_PROG_ORDER prg_order) |
Converts an enum type progression order to string type More... | |
static int | j2k_get_num_tp (opj_cp_t *cp, int pino, int tileno) |
int | j2k_calculate_tp (opj_cp_t *cp, int img_numcomp, opj_image_t *image, opj_j2k_t *j2k) |
mem allocation for TLM marker More... | |
static opj_dec_mstabent_t * | j2k_dec_mstab_lookup (int id) |
Read the lookup table containing all the marker, status and action More... | |
opj_j2k_t * | j2k_create_decompress (opj_common_ptr cinfo) |
Creates a J2K decompression structure More... | |
void | j2k_destroy_decompress (opj_j2k_t *j2k) |
Destroy a J2K decompressor handle More... | |
void | j2k_setup_decoder (opj_j2k_t *j2k, opj_dparameters_t *parameters) |
Setup the decoder decoding parameters using user parameters. More... | |
opj_image_t * | j2k_decode (opj_j2k_t *j2k, opj_cio_t *cio, opj_codestream_info_t *cstr_info) |
Decode an image from a JPEG-2000 codestream More... | |
opj_image_t * | j2k_decode_jpt_stream (opj_j2k_t *j2k, opj_cio_t *cio, opj_codestream_info_t *cstr_info) |
Decode an image form a JPT-stream (JPEG 2000, JPIP) More... | |
opj_j2k_t * | j2k_create_compress (opj_common_ptr cinfo) |
Creates a J2K compression structure More... | |
void | j2k_destroy_compress (opj_j2k_t *j2k) |
Destroy a J2K compressor handle More... | |
void | j2k_setup_encoder (opj_j2k_t *j2k, opj_cparameters_t *parameters, opj_image_t *image) |
Setup the encoder parameters using the current image and using user parameters. More... | |
opj_bool | j2k_encode (opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, opj_codestream_info_t *cstr_info) |
Encode an image into a JPEG-2000 codestream More... | |
Local static functions | |
static void | j2k_write_soc (opj_j2k_t *j2k) |
Write the SOC marker (Start Of Codestream) More... | |
static void | j2k_read_soc (opj_j2k_t *j2k) |
Read the SOC marker (Start of Codestream) More... | |
static void | j2k_write_siz (opj_j2k_t *j2k) |
Write the SIZ marker (image and tile size) More... | |
static void | j2k_read_siz (opj_j2k_t *j2k) |
Read the SIZ marker (image and tile size) More... | |
static void | j2k_write_com (opj_j2k_t *j2k) |
Write the COM marker (comment) More... | |
static void | j2k_read_com (opj_j2k_t *j2k) |
Read the COM marker (comment) More... | |
static void | j2k_write_cox (opj_j2k_t *j2k, int compno) |
Write the value concerning the specified component in the marker COD and COC More... | |
static void | j2k_read_cox (opj_j2k_t *j2k, int compno) |
Read the value concerning the specified component in the marker COD and COC More... | |
static void | j2k_write_cod (opj_j2k_t *j2k) |
Write the COD marker (coding style default) More... | |
static void | j2k_read_cod (opj_j2k_t *j2k) |
Read the COD marker (coding style default) More... | |
static void | j2k_write_coc (opj_j2k_t *j2k, int compno) |
Write the COC marker (coding style component) More... | |
static void | j2k_read_coc (opj_j2k_t *j2k) |
Read the COC marker (coding style component) More... | |
static void | j2k_write_qcx (opj_j2k_t *j2k, int compno) |
Write the value concerning the specified component in the marker QCD and QCC More... | |
static void | j2k_read_qcx (opj_j2k_t *j2k, int compno, int len) |
Read the value concerning the specified component in the marker QCD and QCC More... | |
static void | j2k_write_qcd (opj_j2k_t *j2k) |
Write the QCD marker (quantization default) More... | |
static void | j2k_read_qcd (opj_j2k_t *j2k) |
Read the QCD marker (quantization default) More... | |
static void | j2k_write_qcc (opj_j2k_t *j2k, int compno) |
Write the QCC marker (quantization component) More... | |
static void | j2k_read_qcc (opj_j2k_t *j2k) |
Read the QCC marker (quantization component) More... | |
static void | j2k_write_poc (opj_j2k_t *j2k) |
Write the POC marker (progression order change) More... | |
static void | j2k_read_poc (opj_j2k_t *j2k) |
Read the POC marker (progression order change) More... | |
static void | j2k_read_crg (opj_j2k_t *j2k) |
Read the CRG marker (component registration) More... | |
static void | j2k_read_tlm (opj_j2k_t *j2k) |
Read the TLM marker (tile-part lengths) More... | |
static void | j2k_read_plm (opj_j2k_t *j2k) |
Read the PLM marker (packet length, main header) More... | |
static void | j2k_read_plt (opj_j2k_t *j2k) |
Read the PLT marker (packet length, tile-part header) More... | |
static void | j2k_read_ppm (opj_j2k_t *j2k) |
Read the PPM marker (packet packet headers, main header) More... | |
static void | j2k_read_ppt (opj_j2k_t *j2k) |
Read the PPT marker (packet packet headers, tile-part header) More... | |
static void | j2k_write_tlm (opj_j2k_t *j2k) |
Write the TLM marker (Mainheader) More... | |
static void | j2k_write_sot (opj_j2k_t *j2k) |
Write the SOT marker (start of tile-part) More... | |
static void | j2k_read_sot (opj_j2k_t *j2k) |
Read the SOT marker (start of tile-part) More... | |
static void | j2k_write_sod (opj_j2k_t *j2k, void *tile_coder) |
Write the SOD marker (start of data) More... | |
static void | j2k_read_sod (opj_j2k_t *j2k) |
Read the SOD marker (start of data) More... | |
static void | j2k_write_rgn (opj_j2k_t *j2k, int compno, int tileno) |
Write the RGN marker (region-of-interest) More... | |
static void | j2k_read_rgn (opj_j2k_t *j2k) |
Read the RGN marker (region-of-interest) More... | |
static void | j2k_write_eoc (opj_j2k_t *j2k) |
Write the EOC marker (end of codestream) More... | |
static void | j2k_read_eoc (opj_j2k_t *j2k) |
Read the EOC marker (end of codestream) More... | |
static void | j2k_read_unk (opj_j2k_t *j2k) |
Read an unknown marker More... | |
static void | j2k_add_mhmarker (opj_codestream_info_t *cstr_info, unsigned short int type, int pos, int len) |
Add main header marker information More... | |
static void | j2k_add_tlmarker (int tileno, opj_codestream_info_t *cstr_info, unsigned short int type, int pos, int len) |
Add tile header marker information More... | |
Variables | |
j2k_prog_order_t | j2k_prog_order_list [] |
opj_dec_mstabent_t | j2k_dec_mstab [] |
typedef struct j2k_prog_order j2k_prog_order_t |
typedef struct opj_dec_mstabent opj_dec_mstabent_t |
int j2k_calculate_tp | ( | opj_cp_t * | cp, |
int | img_numcomp, | ||
opj_image_t * | image, | ||
opj_j2k_t * | j2k | ||
) |
mem allocation for TLM marker
References opj_j2k::cstr_info, opj_j2k::cur_totnum_tp, FINAL_PASS, j2k_get_num_tp(), opj_tile_info::num_tps, opj_tcp::numpocs, OPJ_ARG_NOT_USED, opj_malloc, pi_destroy(), pi_initialise_encode(), opj_cp::tcps, opj_cp::th, opj_codestream_info::tile, opj_tile_info::tp, and opj_cp::tw.
Referenced by j2k_encode().
|
static |
Read the lookup table containing all the marker, status and action
id | Marker value |
References opj_dec_mstabent::id, and j2k_dec_mstab.
Referenced by j2k_decode(), and j2k_decode_jpt_stream().
|
static |
References opj_poc::compE, j2k_convert_progression_order(), opj_poc::layE, opj_tcp::pocs, opj_poc::prcE, opj_tcp::prg, opj_poc::resE, opj_cp::tcps, opj_cp::tp_flag, opj_cp::tp_on, and opj_cp::tp_pos.
Referenced by j2k_calculate_tp(), and j2k_encode().
opj_dec_mstabent_t j2k_dec_mstab[] |
Referenced by j2k_dec_mstab_lookup(), and j2k_read_unk().
j2k_prog_order_t j2k_prog_order_list[] |
Referenced by j2k_convert_progression_order().