OpenJPEG  1.5.1
Data Fields

JPEG-2000 codestream reader/writer. More...

#include <j2k.h>

Data Fields

opj_common_ptr cinfo
 codec context More...
 
int state
 locate in which part of the codestream the decoder is (main header, tile header, end) More...
 
int curtileno
 number of the tile curently concern by coding/decoding More...
 
int tp_num
 Tile part number. More...
 
int cur_tp_num
 Tilepart number currently coding. More...
 
int * cur_totnum_tp
 Total number of tileparts of the current tile. More...
 
int tlm_start
 locate the start position of the TLM marker after encoding the tilepart, a jump (in j2k_write_sod) is done to the TLM marker to store the value of its length. More...
 
int totnum_tp
 Total num of tile parts in whole image = num tiles* num tileparts in each tile. More...
 
unsigned char * eot
 locate the position of the end of the tile in the codestream, used to detect a truncated codestream (in j2k_read_sod) More...
 
int sot_start
 locate the start position of the SOT marker of the current coded tile: after encoding the tile, a jump (in j2k_write_sod) is done to the SOT marker to store the value of its length. More...
 
int sod_start
 
int pos_correction
 as the J2K-file is written in several parts during encoding, it enables to make the right correction in position return by cio_tell More...
 
unsigned char ** tile_data
 array used to store the data of each tile More...
 
int * tile_len
 array used to store the length of each tile More...
 
opj_tcp_tdefault_tcp
 decompression only : store decoding parameters common to all tiles (information like COD, COC in main header) More...
 
opj_image_timage
 pointer to the encoded / decoded image More...
 
opj_cp_tcp
 pointer to the coding parameters More...
 
opj_codestream_info_tcstr_info
 helper used to write the index file More...
 
opj_cio_tcio
 pointer to the byte i/o stream More...
 

Detailed Description

JPEG-2000 codestream reader/writer.

Field Documentation

opj_common_ptr opj_j2k::cinfo
opj_cio_t* opj_j2k::cio
opj_cp_t* opj_j2k::cp
opj_codestream_info_t* opj_j2k::cstr_info
int* opj_j2k::cur_totnum_tp

Total number of tileparts of the current tile.

Referenced by j2k_calculate_tp(), j2k_encode(), and j2k_write_sot().

int opj_j2k::cur_tp_num

Tilepart number currently coding.

Referenced by j2k_encode(), j2k_read_sod(), j2k_read_sot(), j2k_write_sod(), and j2k_write_sot().

int opj_j2k::curtileno
opj_tcp_t* opj_j2k::default_tcp

decompression only : store decoding parameters common to all tiles (information like COD, COC in main header)

Referenced by j2k_create_decompress(), j2k_destroy_decompress(), j2k_read_coc(), j2k_read_cod(), j2k_read_cox(), j2k_read_poc(), j2k_read_qcx(), j2k_read_rgn(), j2k_read_siz(), and j2k_read_sot().

unsigned char* opj_j2k::eot

locate the position of the end of the tile in the codestream, used to detect a truncated codestream (in j2k_read_sod)

Referenced by j2k_read_sod(), and j2k_read_sot().

opj_image_t* opj_j2k::image
int opj_j2k::pos_correction

as the J2K-file is written in several parts during encoding, it enables to make the right correction in position return by cio_tell

Referenced by j2k_encode(), j2k_read_sod(), j2k_write_sod(), and jpwl_encode().

int opj_j2k::sod_start

Referenced by j2k_write_sod().

int opj_j2k::sot_start

locate the start position of the SOT marker of the current coded tile: after encoding the tile, a jump (in j2k_write_sod) is done to the SOT marker to store the value of its length.

Referenced by j2k_write_sod(), and j2k_write_sot().

int opj_j2k::state
unsigned char** opj_j2k::tile_data

array used to store the data of each tile

Referenced by j2k_create_decompress(), j2k_destroy_decompress(), j2k_read_eoc(), j2k_read_siz(), and j2k_read_sod().

int* opj_j2k::tile_len

array used to store the length of each tile

Referenced by j2k_destroy_decompress(), j2k_read_eoc(), j2k_read_siz(), and j2k_read_sod().

int opj_j2k::tlm_start

locate the start position of the TLM marker after encoding the tilepart, a jump (in j2k_write_sod) is done to the TLM marker to store the value of its length.

Referenced by j2k_write_sod(), and j2k_write_tlm().

int opj_j2k::totnum_tp

Total num of tile parts in whole image = num tiles* num tileparts in each tile.

used in TLMmarker

Referenced by j2k_encode(), and j2k_write_tlm().

int opj_j2k::tp_num

Tile part number.

Referenced by j2k_encode(), and j2k_write_sod().


The documentation for this struct was generated from the following file: