#include <stdbool.h>Go to the source code of this file.
Data Structures | |
| struct | opj_event_mgr |
| Message handler object used for. More... | |
| struct | opj_poc |
| Progression order changes. More... | |
| struct | opj_cparameters |
| Compression parameters. More... | |
| struct | opj_dparameters |
| Decompression parameters. More... | |
| struct | opj_common_struct |
| struct | opj_cinfo |
| Compression context info. More... | |
| struct | opj_dinfo |
| Decompression context info. More... | |
| struct | opj_cio |
| Byte input-output stream (CIO). More... | |
| struct | opj_image_comp |
| Defines a single image component. More... | |
| struct | opj_image |
| Defines image data and characteristics. More... | |
| struct | opj_image_comptparm |
| Component parameters structure used by the opj_image_create function. More... | |
| struct | opj_packet_info |
| Index structure : Information concerning a packet inside tile. More... | |
| struct | opj_tp_info |
| Index structure : Information concerning tile-parts. More... | |
| struct | opj_tile_info |
| Index structure : information regarding tiles. More... | |
| struct | opj_marker_info_t |
| Marker structure. More... | |
| struct | opj_codestream_info |
| Index structure of the codestream. More... | |
Defines | |
| #define | OPENJPEG_VERSION "1.3.0" |
| #define | OPJ_API |
| #define | OPJ_CALLCONV |
| #define | OPJ_PATH_LEN 4096 |
| Maximum allowed size for filenames. | |
| #define | J2K_MAXRLVLS 33 |
| Number of maximum resolution level authorized. | |
| #define | J2K_MAXBANDS (3*J2K_MAXRLVLS-2) |
| Number of maximum sub-band linked to number of resolution level. | |
| #define | JPWL_MAX_NO_TILESPECS 16 |
| Maximum number of tile parts expected by JPWL: increase at your will. | |
| #define | JPWL_MAX_NO_PACKSPECS 16 |
| Maximum number of packet parts expected by JPWL: increase at your will. | |
| #define | JPWL_MAX_NO_MARKERS 512 |
| Maximum number of JPWL markers: increase at your will. | |
| #define | JPWL_PRIVATEINDEX_NAME "jpwl_index_privatefilename" |
| index file name used when JPWL is on | |
| #define | JPWL_EXPECTED_COMPONENTS 3 |
| Expect this number of components, so you'll find better the first EPB. | |
| #define | JPWL_MAXIMUM_TILES 8192 |
| Expect this maximum number of tiles, to avoid some crashes. | |
| #define | JPWL_MAXIMUM_HAMMING 2 |
| Expect this maximum number of bit errors in marker id's. | |
| #define | JPWL_MAXIMUM_EPB_ROOM 65450 |
| Expect this maximum number of bytes for composition of EPBs. | |
| #define | opj_common_fields |
| Common fields between JPEG-2000 compression and decompression master structs. | |
| #define | OPJ_STREAM_READ 0x0001 |
| The stream was opened for reading. | |
| #define | OPJ_STREAM_WRITE 0x0002 |
| The stream was opened for writing. | |
Typedefs | |
| typedef enum RSIZ_CAPABILITIES | OPJ_RSIZ_CAPABILITIES |
| Rsiz Capabilities. | |
| typedef enum CINEMA_MODE | OPJ_CINEMA_MODE |
| Digital cinema operation mode. | |
| typedef enum PROG_ORDER | OPJ_PROG_ORDER |
| Progression order. | |
| typedef enum COLOR_SPACE | OPJ_COLOR_SPACE |
| Supported image color spaces. | |
| typedef enum CODEC_FORMAT | OPJ_CODEC_FORMAT |
| Supported codec. | |
| typedef enum LIMIT_DECODING | OPJ_LIMIT_DECODING |
| Limit decoding to certain portions of the codestream. | |
| typedef void(* | opj_msg_callback )(const char *msg, void *client_data) |
| Callback function prototype for events. | |
| typedef struct opj_event_mgr | opj_event_mgr_t |
| Message handler object used for. | |
| typedef struct opj_poc | opj_poc_t |
| Progression order changes. | |
| typedef struct opj_cparameters | opj_cparameters_t |
| Compression parameters. | |
| typedef struct opj_dparameters | opj_dparameters_t |
| Decompression parameters. | |
| typedef struct opj_common_struct | opj_common_struct_t |
| typedef opj_common_struct_t * | opj_common_ptr |
| typedef struct opj_cinfo | opj_cinfo_t |
| Compression context info. | |
| typedef struct opj_dinfo | opj_dinfo_t |
| Decompression context info. | |
| typedef struct opj_cio | opj_cio_t |
| Byte input-output stream (CIO). | |
| typedef struct opj_image_comp | opj_image_comp_t |
| Defines a single image component. | |
| typedef struct opj_image | opj_image_t |
| Defines image data and characteristics. | |
| typedef struct opj_image_comptparm | opj_image_cmptparm_t |
| Component parameters structure used by the opj_image_create function. | |
| typedef struct opj_packet_info | opj_packet_info_t |
| Index structure : Information concerning a packet inside tile. | |
| typedef struct opj_tp_info | opj_tp_info_t |
| Index structure : Information concerning tile-parts. | |
| typedef struct opj_tile_info | opj_tile_info_t |
| Index structure : information regarding tiles. | |
| typedef struct opj_marker_info_t | opj_marker_info_t |
| Marker structure. | |
| typedef struct opj_codestream_info | opj_codestream_info_t |
| Index structure of the codestream. | |
Enumerations | |
| enum | RSIZ_CAPABILITIES { STD_RSIZ = 0, CINEMA2K = 3, CINEMA4K = 4 } |
Rsiz Capabilities. More... | |
| enum | CINEMA_MODE { OFF = 0, CINEMA2K_24 = 1, CINEMA2K_48 = 2, CINEMA4K_24 = 3 } |
Digital cinema operation mode. More... | |
| enum | PROG_ORDER { PROG_UNKNOWN = -1, LRCP = 0, RLCP = 1, RPCL = 2, PCRL = 3, CPRL = 4 } |
Progression order. More... | |
| enum | COLOR_SPACE { CLRSPC_UNKNOWN = -1, CLRSPC_SRGB = 1, CLRSPC_GRAY = 2, CLRSPC_SYCC = 3 } |
Supported image color spaces. More... | |
| enum | CODEC_FORMAT { CODEC_UNKNOWN = -1, CODEC_J2K = 0, CODEC_JPT = 1, CODEC_JP2 = 2 } |
Supported codec. More... | |
| enum | LIMIT_DECODING { NO_LIMITATION = 0, LIMIT_TO_MAIN_HEADER = 1, DECODE_ALL_BUT_PACKETS = 2 } |
Limit decoding to certain portions of the codestream. More... | |
Functions | |
| OPJ_API const char *OPJ_CALLCONV | opj_version (void) |
| OPJ_API opj_image_t *OPJ_CALLCONV | opj_image_create (int numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc) |
| Create an image. | |
| OPJ_API void OPJ_CALLCONV | opj_image_destroy (opj_image_t *image) |
| Deallocate any resources associated with an image. | |
| OPJ_API opj_cio_t *OPJ_CALLCONV | opj_cio_open (opj_common_ptr cinfo, unsigned char *buffer, int length) |
| Open and allocate a memory stream for read / write. | |
| OPJ_API void OPJ_CALLCONV | opj_cio_close (opj_cio_t *cio) |
| Close and free a CIO handle. | |
| OPJ_API int OPJ_CALLCONV | cio_tell (opj_cio_t *cio) |
| Get position in byte stream. | |
| OPJ_API void OPJ_CALLCONV | cio_seek (opj_cio_t *cio, int pos) |
| Set position in byte stream. | |
| OPJ_API opj_event_mgr_t *OPJ_CALLCONV | opj_set_event_mgr (opj_common_ptr cinfo, opj_event_mgr_t *event_mgr, void *context) |
| OPJ_API opj_dinfo_t *OPJ_CALLCONV | opj_create_decompress (OPJ_CODEC_FORMAT format) |
| Creates a J2K/JPT/JP2 decompression structure. | |
| OPJ_API void OPJ_CALLCONV | opj_destroy_decompress (opj_dinfo_t *dinfo) |
| Destroy a decompressor handle. | |
| OPJ_API void OPJ_CALLCONV | opj_set_default_decoder_parameters (opj_dparameters_t *parameters) |
| Set decoding parameters to default values. | |
| OPJ_API void OPJ_CALLCONV | opj_setup_decoder (opj_dinfo_t *dinfo, opj_dparameters_t *parameters) |
| Setup the decoder decoding parameters using user parameters. | |
| OPJ_API opj_image_t *OPJ_CALLCONV | opj_decode (opj_dinfo_t *dinfo, opj_cio_t *cio) |
| Decode an image from a JPEG-2000 codestream. | |
| OPJ_API opj_image_t *OPJ_CALLCONV | opj_decode_with_info (opj_dinfo_t *dinfo, opj_cio_t *cio, opj_codestream_info_t *cstr_info) |
| Decode an image from a JPEG-2000 codestream and extract the codestream information. | |
| OPJ_API opj_cinfo_t *OPJ_CALLCONV | opj_create_compress (OPJ_CODEC_FORMAT format) |
| Creates a J2K/JP2 compression structure. | |
| OPJ_API void OPJ_CALLCONV | opj_destroy_compress (opj_cinfo_t *cinfo) |
| Destroy a compressor handle. | |
| OPJ_API void OPJ_CALLCONV | opj_set_default_encoder_parameters (opj_cparameters_t *parameters) |
| Set encoding parameters to default values, that means : | |
| OPJ_API void OPJ_CALLCONV | opj_setup_encoder (opj_cinfo_t *cinfo, opj_cparameters_t *parameters, opj_image_t *image) |
| Setup the encoder parameters using the current image and using user parameters. | |
| OPJ_API bool OPJ_CALLCONV | opj_encode (opj_cinfo_t *cinfo, opj_cio_t *cio, opj_image_t *image, char *index) |
| Encode an image into a JPEG-2000 codestream. | |
| OPJ_API bool OPJ_CALLCONV | opj_encode_with_info (opj_cinfo_t *cinfo, opj_cio_t *cio, opj_image_t *image, opj_codestream_info_t *cstr_info) |
| Encode an image into a JPEG-2000 codestream and extract the codestream information. | |
| OPJ_API void OPJ_CALLCONV | opj_destroy_cstr_info (opj_codestream_info_t *cstr_info) |
| Destroy Codestream information after compression or decompression. | |
| #define J2K_MAXBANDS (3*J2K_MAXRLVLS-2) |
Number of maximum sub-band linked to number of resolution level.
Referenced by j2k_read_qcx().
| #define J2K_MAXRLVLS 33 |
Number of maximum resolution level authorized.
| #define JPWL_EXPECTED_COMPONENTS 3 |
Expect this number of components, so you'll find better the first EPB.
Referenced by opj_set_default_decoder_parameters().
| #define JPWL_MAX_NO_MARKERS 512 |
Maximum number of JPWL markers: increase at your will.
Referenced by jpwl_encode(), jpwl_epbs_add(), and jpwl_prepare_marks().
| #define JPWL_MAX_NO_PACKSPECS 16 |
Maximum number of packet parts expected by JPWL: increase at your will.
Referenced by j2k_setup_encoder(), jpwl_prepare_marks(), and opj_set_default_encoder_parameters().
| #define JPWL_MAX_NO_TILESPECS 16 |
Maximum number of tile parts expected by JPWL: increase at your will.
Referenced by j2k_setup_encoder(), jpwl_prepare_marks(), and opj_set_default_encoder_parameters().
| #define JPWL_MAXIMUM_EPB_ROOM 65450 |
Expect this maximum number of bytes for composition of EPBs.
Referenced by jpwl_epbs_add().
| #define JPWL_MAXIMUM_HAMMING 2 |
Expect this maximum number of bit errors in marker id's.
Referenced by j2k_read_unk().
| #define JPWL_MAXIMUM_TILES 8192 |
Expect this maximum number of tiles, to avoid some crashes.
Referenced by opj_set_default_decoder_parameters().
| #define JPWL_PRIVATEINDEX_NAME "jpwl_index_privatefilename" |
index file name used when JPWL is on
| #define OPENJPEG_VERSION "1.3.0" |
Referenced by opj_version().
| #define OPJ_API |
| #define OPJ_CALLCONV |
| #define opj_common_fields |
opj_event_mgr_t *event_mgr; \ void * client_data; \ bool is_decompressor; \ OPJ_CODEC_FORMAT codec_format; \ void *j2k_handle; \ void *jp2_handle; \ void *mj2_handle
Common fields between JPEG-2000 compression and decompression master structs.
pointer to the event manager Available for use by application So common code can tell which is which selected codec pointer to the J2K codec pointer to the JP2 codec pointer to the MJ2 codec
| #define OPJ_PATH_LEN 4096 |
Maximum allowed size for filenames.
| #define OPJ_STREAM_READ 0x0001 |
The stream was opened for reading.
Referenced by opj_cio_open().
| #define OPJ_STREAM_WRITE 0x0002 |
The stream was opened for writing.
Referenced by opj_cio_close(), and opj_cio_open().
| typedef enum CINEMA_MODE OPJ_CINEMA_MODE |
Digital cinema operation mode.
| typedef struct opj_cinfo opj_cinfo_t |
Compression context info.
| typedef enum CODEC_FORMAT OPJ_CODEC_FORMAT |
Supported codec.
| typedef struct opj_codestream_info opj_codestream_info_t |
Index structure of the codestream.
| typedef enum COLOR_SPACE OPJ_COLOR_SPACE |
Supported image color spaces.
| typedef opj_common_struct_t* opj_common_ptr |
| typedef struct opj_common_struct opj_common_struct_t |
| typedef struct opj_cparameters opj_cparameters_t |
Compression parameters.
| typedef struct opj_dinfo opj_dinfo_t |
Decompression context info.
| typedef struct opj_dparameters opj_dparameters_t |
Decompression parameters.
| typedef struct opj_event_mgr opj_event_mgr_t |
Message handler object used for.
| typedef struct opj_image_comptparm opj_image_cmptparm_t |
Component parameters structure used by the opj_image_create function.
| typedef struct opj_image_comp opj_image_comp_t |
Defines a single image component.
| typedef struct opj_image opj_image_t |
Defines image data and characteristics.
| typedef enum LIMIT_DECODING OPJ_LIMIT_DECODING |
Limit decoding to certain portions of the codestream.
| typedef struct opj_marker_info_t opj_marker_info_t |
Marker structure.
| typedef void(* opj_msg_callback)(const char *msg, void *client_data) |
Callback function prototype for events.
| msg | Event message
|
| typedef struct opj_packet_info opj_packet_info_t |
Index structure : Information concerning a packet inside tile.
| typedef enum PROG_ORDER OPJ_PROG_ORDER |
Progression order.
| typedef enum RSIZ_CAPABILITIES OPJ_RSIZ_CAPABILITIES |
Rsiz Capabilities.
| typedef struct opj_tile_info opj_tile_info_t |
Index structure : information regarding tiles.
| typedef struct opj_tp_info opj_tp_info_t |
Index structure : Information concerning tile-parts.
| enum CINEMA_MODE |
| enum CODEC_FORMAT |
| enum COLOR_SPACE |
| enum LIMIT_DECODING |
| enum PROG_ORDER |
| enum RSIZ_CAPABILITIES |
| OPJ_API void OPJ_CALLCONV cio_seek | ( | opj_cio_t * | cio, | |
| int | pos | |||
| ) |
Set position in byte stream.
| cio | CIO handle
|
References opj_cio::bp, and opj_cio::start.
Referenced by j2k_decode(), j2k_read_cod(), j2k_read_epb(), j2k_read_epc(), j2k_read_qcd(), j2k_read_unk(), j2k_write_coc(), j2k_write_cod(), j2k_write_com(), j2k_write_epb(), j2k_write_epc(), j2k_write_qcc(), j2k_write_qcd(), j2k_write_siz(), j2k_write_sod(), j2k_write_sot(), jp2_write_bpcc(), jp2_write_colr(), jp2_write_ftyp(), jp2_write_ihdr(), jp2_write_jp(), jp2_write_jp2c(), jp2_write_jp2h(), jpwl_correct(), jpwl_dump_marks(), jpwl_epb_correct(), and jpwl_prepare_marks().
| OPJ_API int OPJ_CALLCONV cio_tell | ( | opj_cio_t * | cio | ) |
Get position in byte stream.
| cio | CIO handle
|
References opj_cio::bp, and opj_cio::start.
Referenced by j2k_decode(), j2k_decode_jpt_stream(), j2k_encode(), j2k_read_cod(), j2k_read_epb(), j2k_read_epc(), j2k_read_esd(), j2k_read_ppm(), j2k_read_qcd(), j2k_read_red(), j2k_read_soc(), j2k_read_sod(), j2k_read_sot(), j2k_read_unk(), j2k_write_coc(), j2k_write_cod(), j2k_write_com(), j2k_write_eoc(), j2k_write_epb(), j2k_write_epc(), j2k_write_qcc(), j2k_write_qcd(), j2k_write_siz(), j2k_write_soc(), j2k_write_sod(), j2k_write_sot(), j2k_write_tlm(), jp2_read_boxhdr(), jp2_read_bpcc(), jp2_read_colr(), jp2_read_ftyp(), jp2_read_ihdr(), jp2_read_jp(), jp2_read_jp2c(), jp2_read_jp2h(), jp2_write_bpcc(), jp2_write_colr(), jp2_write_ftyp(), jp2_write_ihdr(), jp2_write_jp(), jp2_write_jp2c(), jp2_write_jp2h(), jpwl_correct(), jpwl_dump_marks(), jpwl_epb_correct(), and jpwl_prepare_marks().
| OPJ_API void OPJ_CALLCONV opj_cio_close | ( | opj_cio_t * | cio | ) |
Close and free a CIO handle.
| cio | CIO handle to free |
References opj_cio::buffer, opj_cio::openmode, opj_free, and OPJ_STREAM_WRITE.
| OPJ_API opj_cio_t* OPJ_CALLCONV opj_cio_open | ( | opj_common_ptr | cinfo, | |
| unsigned char * | buffer, | |||
| int | length | |||
| ) |
Open and allocate a memory stream for read / write.
On reading, the user must provide a buffer containing encoded data. The buffer will be wrapped by the returned CIO handle. On writing, buffer parameters must be set to 0: a buffer will be allocated by the library to contain encoded data.
| cinfo | Codec context info
|
References opj_cio::bp, opj_cio::buffer, opj_cio::cinfo, CODEC_J2K, CODEC_JP2, opj_cio::end, EVT_ERROR, opj_cp::img_size, opj_cio::length, opj_cio::openmode, opj_event_msg(), opj_free, opj_malloc, OPJ_STREAM_READ, OPJ_STREAM_WRITE, and opj_cio::start.
| OPJ_API opj_cinfo_t* OPJ_CALLCONV opj_create_compress | ( | OPJ_CODEC_FORMAT | format | ) |
Creates a J2K/JP2 compression structure.
| format | Coder to select
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_create_compress(), jp2_create_compress(), opj_free, and opj_malloc.
| OPJ_API opj_dinfo_t* OPJ_CALLCONV opj_create_decompress | ( | OPJ_CODEC_FORMAT | format | ) |
Creates a J2K/JPT/JP2 decompression structure.
| format | Decoder to select
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_create_decompress(), jp2_create_decompress(), opj_free, and opj_malloc.
| OPJ_API opj_image_t* OPJ_CALLCONV opj_decode | ( | opj_dinfo_t * | dinfo, | |
| opj_cio_t * | cio | |||
| ) |
Decode an image from a JPEG-2000 codestream.
| dinfo | decompressor handle
|
References opj_decode_with_info().
| OPJ_API opj_image_t* OPJ_CALLCONV opj_decode_with_info | ( | opj_dinfo_t * | dinfo, | |
| opj_cio_t * | cio, | |||
| opj_codestream_info_t * | cstr_info | |||
| ) |
Decode an image from a JPEG-2000 codestream and extract the codestream information.
| dinfo | decompressor handle
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_decode(), j2k_decode_jpt_stream(), and jp2_decode().
Referenced by opj_decode().
| OPJ_API void OPJ_CALLCONV opj_destroy_compress | ( | opj_cinfo_t * | cinfo | ) |
Destroy a compressor handle.
| cinfo | compressor handle to destroy |
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_destroy_compress(), jp2_destroy_compress(), and opj_free.
| OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info | ( | opj_codestream_info_t * | cstr_info | ) |
Destroy Codestream information after compression or decompression.
| cstr_info | Codestream information structure |
References opj_codestream_info::marker, opj_free, opj_tile_info::packet, opj_codestream_info::th, opj_tile_info::thresh, opj_codestream_info::tile, opj_tile_info::tp, and opj_codestream_info::tw.
| OPJ_API void OPJ_CALLCONV opj_destroy_decompress | ( | opj_dinfo_t * | dinfo | ) |
Destroy a decompressor handle.
| dinfo | decompressor handle to destroy |
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_destroy_decompress(), jp2_destroy_decompress(), and opj_free.
| OPJ_API bool OPJ_CALLCONV opj_encode | ( | opj_cinfo_t * | cinfo, | |
| opj_cio_t * | cio, | |||
| opj_image_t * | image, | |||
| char * | index | |||
| ) |
Encode an image into a JPEG-2000 codestream.
| cinfo | compressor handle
|
References EVT_WARNING, opj_encode_with_info(), and opj_event_msg().
| OPJ_API bool OPJ_CALLCONV opj_encode_with_info | ( | opj_cinfo_t * | cinfo, | |
| opj_cio_t * | cio, | |||
| opj_image_t * | image, | |||
| opj_codestream_info_t * | cstr_info | |||
| ) |
Encode an image into a JPEG-2000 codestream and extract the codestream information.
| cinfo | compressor handle
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_encode(), and jp2_encode().
Referenced by opj_encode().
| OPJ_API opj_image_t* OPJ_CALLCONV opj_image_create | ( | int | numcmpts, | |
| opj_image_cmptparm_t * | cmptparms, | |||
| OPJ_COLOR_SPACE | clrspc | |||
| ) |
Create an image.
| numcmpts | number of components
|
References opj_image_comptparm::bpp, opj_image_comp::bpp, opj_image::color_space, opj_image::comps, opj_image_comp::data, opj_image_comptparm::dx, opj_image_comp::dx, opj_image_comptparm::dy, opj_image_comp::dy, opj_image_comptparm::h, opj_image_comp::h, opj_image::numcomps, opj_calloc, opj_image_destroy(), opj_malloc, opj_image_comptparm::prec, opj_image_comp::prec, opj_image_comptparm::sgnd, opj_image_comp::sgnd, opj_image_comptparm::w, opj_image_comp::w, opj_image_comptparm::x0, opj_image_comp::x0, opj_image_comptparm::y0, and opj_image_comp::y0.
| OPJ_API void OPJ_CALLCONV opj_image_destroy | ( | opj_image_t * | image | ) |
Deallocate any resources associated with an image.
| image | image to be destroyed |
References opj_image::comps, opj_image_comp::data, opj_image::numcomps, and opj_free.
Referenced by j2k_decode(), j2k_decode_jpt_stream(), and opj_image_create().
| OPJ_API void OPJ_CALLCONV opj_set_default_decoder_parameters | ( | opj_dparameters_t * | parameters | ) |
Set decoding parameters to default values.
| parameters | Decompression parameters |
References opj_dparameters::cod_format, opj_dparameters::cp_layer, opj_dparameters::cp_limit_decoding, opj_dparameters::cp_reduce, opj_dparameters::decod_format, opj_dparameters::jpwl_correct, opj_dparameters::jpwl_exp_comps, JPWL_EXPECTED_COMPONENTS, opj_dparameters::jpwl_max_tiles, JPWL_MAXIMUM_TILES, and NO_LIMITATION.
| OPJ_API void OPJ_CALLCONV opj_set_default_encoder_parameters | ( | opj_cparameters_t * | parameters | ) |
Set encoding parameters to default values, that means :
| parameters | Compression parameters |
References opj_cparameters::cblockh_init, opj_cparameters::cblockw_init, opj_cparameters::cod_format, opj_cparameters::cp_cinema, opj_cparameters::cp_rsiz, opj_cparameters::decod_format, opj_cparameters::jpwl_epc_on, opj_cparameters::jpwl_hprot_MH, opj_cparameters::jpwl_hprot_TPH, opj_cparameters::jpwl_hprot_TPH_tileno, JPWL_MAX_NO_PACKSPECS, JPWL_MAX_NO_TILESPECS, opj_cparameters::jpwl_pprot, opj_cparameters::jpwl_pprot_packno, opj_cparameters::jpwl_pprot_tileno, opj_cparameters::jpwl_sens_addr, opj_cparameters::jpwl_sens_MH, opj_cparameters::jpwl_sens_range, opj_cparameters::jpwl_sens_size, opj_cparameters::jpwl_sens_TPH, opj_cparameters::jpwl_sens_TPH_tileno, LRCP, opj_cparameters::max_comp_size, opj_cparameters::numresolution, OFF, opj_cparameters::prog_order, opj_cparameters::roi_compno, STD_RSIZ, opj_cparameters::subsampling_dx, opj_cparameters::subsampling_dy, and opj_cparameters::tp_on.
| OPJ_API opj_event_mgr_t* OPJ_CALLCONV opj_set_event_mgr | ( | opj_common_ptr | cinfo, | |
| opj_event_mgr_t * | event_mgr, | |||
| void * | context | |||
| ) |
| OPJ_API void OPJ_CALLCONV opj_setup_decoder | ( | opj_dinfo_t * | dinfo, | |
| opj_dparameters_t * | parameters | |||
| ) |
Setup the decoder decoding parameters using user parameters.
Decoding parameters are returned in j2k->cp.
| dinfo | decompressor handle
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_setup_decoder(), and jp2_setup_decoder().
| OPJ_API void OPJ_CALLCONV opj_setup_encoder | ( | opj_cinfo_t * | cinfo, | |
| opj_cparameters_t * | parameters, | |||
| opj_image_t * | image | |||
| ) |
Setup the encoder parameters using the current image and using user parameters.
| cinfo | Compressor handle
|
References CODEC_J2K, CODEC_JP2, CODEC_JPT, CODEC_UNKNOWN, j2k_setup_encoder(), and jp2_setup_encoder().
| OPJ_API const char* OPJ_CALLCONV opj_version | ( | void | ) |
References OPENJPEG_VERSION.
1.6.3