OpenJPEG  2.1.0
Macros | Functions
tcd.c File Reference
#include "opj_includes.h"

Macros

#define OPJ_MACRO_TCD_ALLOCATE(FUNCTION, TYPE, FRACTION, ELEMENT, FUNCTION_ELEMENT)
 

Functions

static OPJ_BOOL opj_tcd_code_block_dec_allocate (opj_tcd_cblk_dec_t *p_code_block)
 Allocates memory for a decoding code block. More...
 
static void opj_tcd_code_block_dec_deallocate (opj_tcd_precinct_t *p_precinct)
 Deallocates the decoding data of the given precinct. More...
 
static OPJ_BOOL opj_tcd_code_block_enc_allocate (opj_tcd_cblk_enc_t *p_code_block)
 Allocates memory for an encoding code block. More...
 
static void opj_tcd_code_block_enc_deallocate (opj_tcd_precinct_t *p_precinct)
 Deallocates the encoding data of the given precinct. More...
 
static void opj_tcd_free_tile (opj_tcd_t *tcd)
 Free the memory allocated for encoding. More...
 
static OPJ_BOOL opj_tcd_t2_decode (opj_tcd_t *p_tcd, OPJ_BYTE *p_src_data, OPJ_UINT32 *p_data_read, OPJ_UINT32 p_max_src_size, opj_codestream_index_t *p_cstr_index)
 
static OPJ_BOOL opj_tcd_t1_decode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_dwt_decode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_mct_decode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_dc_level_shift_decode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_dc_level_shift_encode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_mct_encode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_dwt_encode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_t1_encode (opj_tcd_t *p_tcd)
 
static OPJ_BOOL opj_tcd_t2_encode (opj_tcd_t *p_tcd, OPJ_BYTE *p_dest_data, OPJ_UINT32 *p_data_written, OPJ_UINT32 p_max_dest_size, opj_codestream_info_t *p_cstr_info)
 
static OPJ_BOOL opj_tcd_rate_allocate_encode (opj_tcd_t *p_tcd, OPJ_BYTE *p_dest_data, OPJ_UINT32 p_max_dest_size, opj_codestream_info_t *p_cstr_info)
 
opj_tcd_topj_tcd_create (OPJ_BOOL p_is_decoder)
 Create a new TCD handle. More...
 
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)
 
void opj_tcd_makelayer_fixed (opj_tcd_t *tcd, OPJ_UINT32 layno, 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_BOOL opj_tcd_init (opj_tcd_t *p_tcd, opj_image_t *p_image, opj_cp_t *p_cp)
 Initialize the tile coder and may reuse some memory. More...
 
void opj_tcd_destroy (opj_tcd_t *tcd)
 Destroy a previously created TCD handle. More...
 
OPJ_UINT32 opj_tcd_get_decoded_tile_size (opj_tcd_t *p_tcd)
 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_max_length, opj_codestream_info_t *p_cstr_info)
 Encodes a tile from the raw image into the given buffer. More...
 
OPJ_BOOL opj_tcd_decode_tile (opj_tcd_t *p_tcd, OPJ_BYTE *p_src, OPJ_UINT32 p_max_length, OPJ_UINT32 p_tile_no, opj_codestream_index_t *p_cstr_index)
 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_UINT32 opj_tcd_get_encoded_tile_size (opj_tcd_t *p_tcd)
 
OPJ_BOOL opj_tcd_copy_tile_data (opj_tcd_t *p_tcd, OPJ_BYTE *p_src, OPJ_UINT32 p_src_length)
 Copies tile data from the given memory block onto the system. More...
 

Macro Definition Documentation

#define OPJ_MACRO_TCD_ALLOCATE (   FUNCTION,
  TYPE,
  FRACTION,
  ELEMENT,
  FUNCTION_ELEMENT 
)

Function Documentation

OPJ_BOOL opj_tcd_code_block_dec_allocate ( opj_tcd_cblk_dec_t p_code_block)
static
void opj_tcd_code_block_dec_deallocate ( opj_tcd_precinct_t p_precinct)
static

Deallocates the decoding data of the given precinct.

Deallocates the encoding data of the given precinct.

References opj_tcd_precinct::block_size, opj_tcd_precinct::cblks, opj_tcd_cblk_dec::data, opj_tcd_precinct::dec, opj_free, and opj_tcd_cblk_dec::segs.

Referenced by opj_tcd_free_tile().

OPJ_BOOL opj_tcd_code_block_enc_allocate ( opj_tcd_cblk_enc_t p_code_block)
static
void opj_tcd_code_block_enc_deallocate ( opj_tcd_precinct_t p_precinct)
static
OPJ_BOOL opj_tcd_dc_level_shift_decode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_dc_level_shift_encode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_dwt_decode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_dwt_encode ( opj_tcd_t p_tcd)
static
void opj_tcd_free_tile ( opj_tcd_t tcd)
static
OPJ_BOOL opj_tcd_mct_decode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_mct_encode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_rate_allocate_encode ( opj_tcd_t p_tcd,
OPJ_BYTE p_dest_data,
OPJ_UINT32  p_max_dest_size,
opj_codestream_info_t p_cstr_info 
)
static
OPJ_BOOL opj_tcd_t1_decode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_t1_encode ( opj_tcd_t p_tcd)
static
OPJ_BOOL opj_tcd_t2_decode ( opj_tcd_t p_tcd,
OPJ_BYTE p_src_data,
OPJ_UINT32 p_data_read,
OPJ_UINT32  p_max_src_size,
opj_codestream_index_t p_cstr_index 
)
static
OPJ_BOOL opj_tcd_t2_encode ( opj_tcd_t p_tcd,
OPJ_BYTE p_dest_data,
OPJ_UINT32 p_data_written,
OPJ_UINT32  p_max_dest_size,
opj_codestream_info_t p_cstr_info 
)
static