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

◆ cinfo

opj_common_ptr opj_j2k::cinfo

◆ cio

opj_cio_t* opj_j2k::cio

◆ cp

opj_cp_t* opj_j2k::cp

◆ cstr_info

opj_codestream_info_t* opj_j2k::cstr_info

◆ cur_totnum_tp

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().

◆ cur_tp_num

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().

◆ curtileno

int opj_j2k::curtileno

◆ default_tcp

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().

◆ eot

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().

◆ image

opj_image_t* opj_j2k::image

◆ pos_correction

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().

◆ sod_start

int opj_j2k::sod_start

Referenced by j2k_write_sod().

◆ sot_start

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().

◆ state

int opj_j2k::state

◆ tile_data

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().

◆ tile_len

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().

◆ tlm_start

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().

◆ totnum_tp

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().

◆ tp_num

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: