OpenJPEG  1.5.1
Data Structures | Typedefs | Functions | Variables
j2k.c File Reference
#include "opj_includes.h"

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_tj2k_dec_mstab_lookup (int id)
 Read the lookup table containing all the marker, status and action. More...
 
opj_j2k_tj2k_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_tj2k_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_tj2k_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_tj2k_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 Documentation

Function Documentation

int j2k_calculate_tp ( opj_cp_t cp,
int  img_numcomp,
opj_image_t image,
opj_j2k_t j2k 
)
static opj_dec_mstabent_t* j2k_dec_mstab_lookup ( int  id)
static

Read the lookup table containing all the marker, status and action.

Parameters
idMarker value

References opj_dec_mstabent::id.

Referenced by j2k_decode(), and j2k_decode_jpt_stream().

static int j2k_get_num_tp ( opj_cp_t cp,
int  pino,
int  tileno 
)
static

Variable Documentation

opj_dec_mstabent_t j2k_dec_mstab[]
j2k_prog_order_t j2k_prog_order_list[]
Initial value:
= {
{CPRL, "CPRL"},
{LRCP, "LRCP"},
{PCRL, "PCRL"},
{RLCP, "RLCP"},
{RPCL, "RPCL"},
{(OPJ_PROG_ORDER)-1, ""}
}
precinct-component-resolution-layer order
Definition: openjpeg.h:123
resolution-layer-component-precinct order
Definition: openjpeg.h:121
component-precinct-resolution-layer order
Definition: openjpeg.h:124
layer-resolution-component-precinct order
Definition: openjpeg.h:120
resolution-precinct-component-layer order
Definition: openjpeg.h:122
enum PROG_ORDER OPJ_PROG_ORDER
Progression order.