OpenJPEG: tcd.h File Reference

OpenJPEG 2.3.1

Data Structures | Typedefs
tcd.h File Reference

Implementation of a tile coder/decoder (TCD) More...

Go to the source code of this file.

## Data Structures
struct | opj_tcd_pass
| FIXME DOC. More...
struct | opj_tcd_layer
| FIXME DOC. More...
struct | opj_tcd_cblk_enc
| FIXME DOC. More...
struct | opj_tcd_seg_data_chunk
| Chunk of codestream data that is part of a code block. More...
struct | opj_tcd_seg
| Segment of a code-block. More...
struct | opj_tcd_cblk_dec
| Code-block for decoding. More...
struct | opj_tcd_precinct
| Precinct structure. More...
struct | opj_tcd_band
| Sub-band structure. More...
struct | opj_tcd_resolution
| Tile-component resolution structure. More...
struct | opj_tcd_tilecomp
| Tile-component structure. More...
struct | opj_tcd_tile
| FIXME DOC. More...
struct | opj_tcd_image
| FIXME DOC. More...
struct | opj_tcd
| Tile coder/decoder. More...

## Typedefs
typedef struct opj_tcd_pass | opj_tcd_pass_t
| FIXME DOC. More...
typedef struct opj_tcd_layer | opj_tcd_layer_t
| FIXME DOC. More...
typedef struct opj_tcd_cblk_enc | opj_tcd_cblk_enc_t
| FIXME DOC. More...
typedef struct opj_tcd_seg_data_chunk | opj_tcd_seg_data_chunk_t
| Chunk of codestream data that is part of a code block. More...
typedef struct opj_tcd_seg | opj_tcd_seg_t
| Segment of a code-block. More...
typedef struct opj_tcd_cblk_dec | opj_tcd_cblk_dec_t
| Code-block for decoding. More...
typedef struct opj_tcd_precinct | opj_tcd_precinct_t
| Precinct structure. More...
typedef struct opj_tcd_band | opj_tcd_band_t
| Sub-band structure. More...
typedef struct opj_tcd_resolution | opj_tcd_resolution_t
| Tile-component resolution structure. More...
typedef struct opj_tcd_tilecomp | opj_tcd_tilecomp_t
| Tile-component structure. More...
typedef struct opj_tcd_tile | opj_tcd_tile_t
| FIXME DOC. More...
typedef struct opj_tcd_image | opj_tcd_image_t
| FIXME DOC. More...
typedef struct opj_tcd | opj_tcd_t
| Tile coder/decoder. More...

## Functions
Exported functions
opj_tcd_t * | opj_tcd_create (OPJ_BOOL p_is_decoder)
| Dump the content of a tcd structure. More...
void | opj_tcd_destroy (opj_tcd_t *tcd)
| Destroy a previously created TCD handle. More...
OPJ_BOOL | opj_tcd_init (opj_tcd_t *p_tcd, opj_image_t *p_image, opj_cp_t *p_cp, opj_thread_pool_t *p_tp)
| Initialize the tile coder and may reuse some memory. More...
OPJ_BOOL | opj_tcd_init_decode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, opj_event_mgr_t *p_manager)
| Allocates memory for decoding a specific tile. More...
void | opj_tcd_makelayer_fixed (opj_tcd_t *tcd, OPJ_UINT32 layno, OPJ_UINT32 final)
void | opj_tcd_rateallocate_fixed (opj_tcd_t *tcd)
void | opj_tcd_makelayer (opj_tcd_t *tcd, OPJ_UINT32 layno, OPJ_FLOAT64 thresh, OPJ_UINT32 final)
OPJ_BOOL | opj_tcd_rateallocate (opj_tcd_t *tcd, OPJ_BYTE *dest, OPJ_UINT32 *p_data_written, OPJ_UINT32 len, opj_codestream_info_t *cstr_info, opj_event_mgr_t *p_manager)
OPJ_UINT32 | opj_tcd_get_decoded_tile_size (opj_tcd_t *p_tcd, OPJ_BOOL take_into_account_partial_decoding)
| Gets the maximum tile size that will be taken by the tile once decoded. More...
OPJ_BOOL | opj_tcd_encode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BYTE *p_dest, OPJ_UINT32 *p_data_written, OPJ_UINT32 p_len, struct opj_codestream_info *p_cstr_info, opj_event_mgr_t *p_manager)
| Encodes a tile from the raw image into the given buffer. More...
OPJ_BOOL | opj_tcd_decode_tile (opj_tcd_t *tcd, OPJ_UINT32 win_x0, OPJ_UINT32 win_y0, OPJ_UINT32 win_x1, OPJ_UINT32 win_y1, OPJ_UINT32 numcomps_to_decode, const OPJ_UINT32 *comps_indices, OPJ_BYTE *src, OPJ_UINT32 len, OPJ_UINT32 tileno, opj_codestream_index_t *cstr_info, opj_event_mgr_t *manager)
| Decode a tile from a buffer into a raw image. More...
OPJ_BOOL | opj_tcd_update_tile_data (opj_tcd_t *p_tcd, OPJ_BYTE *p_dest, OPJ_UINT32 p_dest_length)
| Copies tile data from the system onto the given memory block. More...
OPJ_SIZE_T | opj_tcd_get_encoded_tile_size (opj_tcd_t *p_tcd)
OPJ_BOOL | opj_tcd_init_encode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, opj_event_mgr_t *p_manager)
| Initialize the tile coder and may reuse some meory. More...
OPJ_BOOL | opj_tcd_copy_tile_data (opj_tcd_t *p_tcd, OPJ_BYTE *p_src, OPJ_SIZE_T p_src_length)
| Copies tile data from the given memory block onto the system. More...
OPJ_BOOL | opj_alloc_tile_component_data (opj_tcd_tilecomp_t *l_tilec)
| Allocates tile component data. More...
OPJ_BOOL | opj_tcd_is_band_empty (opj_tcd_band_t *band)
| Returns whether a sub-band is empty (i.e. More...
void | opj_tcd_reinit_segment (opj_tcd_seg_t *seg)
| Reinitialize a segment. More...
OPJ_BOOL | opj_tcd_is_subband_area_of_interest (opj_tcd_t *tcd, OPJ_UINT32 compno, OPJ_UINT32 resno, OPJ_UINT32 bandno, OPJ_UINT32 x0, OPJ_UINT32 y0, OPJ_UINT32 x1, OPJ_UINT32 y1)
| Returns whether a sub-band region contributes to the area of interest tcd->win_x0,tcd->win_y0,tcd->win_x1,tcd->win_y1. More...

## Detailed Description

Implementation of a tile coder/decoder (TCD)

The functions in TCD.C encode or decode each tile independently from each other. The functions in TCD.C are used by other functions in J2K.C.