OpenJPEG
1.5.1
|
The JPEG-2000 Codestream Reader/Writer (J2K) More...
Go to the source code of this file.
Data Structures | |
struct | opj_stepsize |
Quantization stepsize. More... | |
struct | opj_tccp |
Tile-component coding parameters. More... | |
struct | opj_tcp |
Tile coding parameters : this structure is used to store coding/decoding parameters common to all tiles (information like COD, COC in main header) More... | |
struct | opj_cp |
Coding parameters. More... | |
struct | opj_j2k |
JPEG-2000 codestream reader/writer. More... | |
Macros | |
#define | J2K_CP_CSTY_PRT 0x01 |
#define | J2K_CP_CSTY_SOP 0x02 |
#define | J2K_CP_CSTY_EPH 0x04 |
#define | J2K_CCP_CSTY_PRT 0x01 |
#define | J2K_CCP_CBLKSTY_LAZY 0x01 |
Selective arithmetic coding bypass. More... | |
#define | J2K_CCP_CBLKSTY_RESET 0x02 |
Reset context probabilities on coding pass boundaries. More... | |
#define | J2K_CCP_CBLKSTY_TERMALL 0x04 |
Termination on each coding pass. More... | |
#define | J2K_CCP_CBLKSTY_VSC 0x08 |
Vertically stripe causal context. More... | |
#define | J2K_CCP_CBLKSTY_PTERM 0x10 |
Predictable termination. More... | |
#define | J2K_CCP_CBLKSTY_SEGSYM 0x20 |
Segmentation symbols are used. More... | |
#define | J2K_CCP_QNTSTY_NOQNT 0 |
#define | J2K_CCP_QNTSTY_SIQNT 1 |
#define | J2K_CCP_QNTSTY_SEQNT 2 |
#define | J2K_MS_SOC 0xff4f |
SOC marker value. More... | |
#define | J2K_MS_SOT 0xff90 |
SOT marker value. More... | |
#define | J2K_MS_SOD 0xff93 |
SOD marker value. More... | |
#define | J2K_MS_EOC 0xffd9 |
EOC marker value. More... | |
#define | J2K_MS_SIZ 0xff51 |
SIZ marker value. More... | |
#define | J2K_MS_COD 0xff52 |
COD marker value. More... | |
#define | J2K_MS_COC 0xff53 |
COC marker value. More... | |
#define | J2K_MS_RGN 0xff5e |
RGN marker value. More... | |
#define | J2K_MS_QCD 0xff5c |
QCD marker value. More... | |
#define | J2K_MS_QCC 0xff5d |
QCC marker value. More... | |
#define | J2K_MS_POC 0xff5f |
POC marker value. More... | |
#define | J2K_MS_TLM 0xff55 |
TLM marker value. More... | |
#define | J2K_MS_PLM 0xff57 |
PLM marker value. More... | |
#define | J2K_MS_PLT 0xff58 |
PLT marker value. More... | |
#define | J2K_MS_PPM 0xff60 |
PPM marker value. More... | |
#define | J2K_MS_PPT 0xff61 |
PPT marker value. More... | |
#define | J2K_MS_SOP 0xff91 |
SOP marker value. More... | |
#define | J2K_MS_EPH 0xff92 |
EPH marker value. More... | |
#define | J2K_MS_CRG 0xff63 |
CRG marker value. More... | |
#define | J2K_MS_COM 0xff64 |
COM marker value. More... | |
#define | J2K_MS_EPC 0xff68 |
EPC marker value (Part 11: JPEG 2000 for Wireless) More... | |
#define | J2K_MS_EPB 0xff66 |
EPB marker value (Part 11: JPEG 2000 for Wireless) More... | |
#define | J2K_MS_ESD 0xff67 |
ESD marker value (Part 11: JPEG 2000 for Wireless) More... | |
#define | J2K_MS_RED 0xff69 |
RED marker value (Part 11: JPEG 2000 for Wireless) More... | |
#define | J2K_MS_SEC 0xff65 |
SEC marker value (Part 8: Secure JPEG 2000) More... | |
#define | J2K_MS_INSEC 0xff94 |
INSEC marker value (Part 8: Secure JPEG 2000) More... | |
Typedefs | |
typedef enum J2K_STATUS | J2K_STATUS |
Values that specify the status of the decoding process when decoding the main header. More... | |
typedef enum T2_MODE | J2K_T2_MODE |
T2 encoding mode. More... | |
typedef struct opj_stepsize | opj_stepsize_t |
Quantization stepsize. More... | |
typedef struct opj_tccp | opj_tccp_t |
Tile-component coding parameters. More... | |
typedef struct opj_tcp | opj_tcp_t |
Tile coding parameters : this structure is used to store coding/decoding parameters common to all tiles (information like COD, COC in main header) More... | |
typedef struct opj_cp | opj_cp_t |
Coding parameters. More... | |
typedef struct opj_j2k | opj_j2k_t |
JPEG-2000 codestream reader/writer. More... | |
Enumerations | |
enum | J2K_STATUS { J2K_STATE_MHSOC = 0x0001, J2K_STATE_MHSIZ = 0x0002, J2K_STATE_MH = 0x0004, J2K_STATE_TPHSOT = 0x0008, J2K_STATE_TPH = 0x0010, J2K_STATE_MT = 0x0020, J2K_STATE_NEOC = 0x0040, J2K_STATE_ERR = 0x0080 } |
Values that specify the status of the decoding process when decoding the main header. More... | |
enum | T2_MODE { THRESH_CALC = 0, FINAL_PASS = 1 } |
T2 encoding mode. More... | |
Functions | |
Exported functions | |
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... | |
char * | j2k_convert_progression_order (OPJ_PROG_ORDER prg_order) |
Converts an enum type progression order to string type. 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... | |
The JPEG-2000 Codestream Reader/Writer (J2K)
The functions in J2K.C have for goal to read/write the several parts of the codestream: markers and data.