| OpenJPEG
    2.1.0
    | 
| Data Structures | |
| struct | opj_tcd_seg | 
| FIXME DOC.  More... | |
| 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_cblk_dec | 
| struct | opj_tcd_precinct | 
| FIXME DOC.  More... | |
| struct | opj_tcd_band | 
| FIXME DOC.  More... | |
| struct | opj_tcd_resolution | 
| FIXME DOC.  More... | |
| struct | opj_tcd_tilecomp | 
| FIXME DOC.  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_seg | opj_tcd_seg_t | 
| FIXME DOC.  More... | |
| 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_cblk_dec | opj_tcd_cblk_dec_t | 
| typedef struct opj_tcd_precinct | opj_tcd_precinct_t | 
| FIXME DOC.  More... | |
| typedef struct opj_tcd_band | opj_tcd_band_t | 
| FIXME DOC.  More... | |
| typedef struct opj_tcd_resolution | opj_tcd_resolution_t | 
| FIXME DOC.  More... | |
| typedef struct opj_tcd_tilecomp | opj_tcd_tilecomp_t | 
| FIXME DOC.  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... | |
| 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) | 
| 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) | 
| 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_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_len, struct opj_codestream_info *p_cstr_info) | 
| Encodes a tile from the raw image into the given buffer.  More... | |
| OPJ_BOOL | opj_tcd_decode_tile (opj_tcd_t *tcd, OPJ_BYTE *src, OPJ_UINT32 len, OPJ_UINT32 tileno, opj_codestream_index_t *cstr_info) | 
| 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_init_encode_tile (opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no) | 
| 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_UINT32 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... | |
| typedef struct opj_tcd_band opj_tcd_band_t | 
FIXME DOC.
| typedef struct opj_tcd_cblk_dec opj_tcd_cblk_dec_t | 
| typedef struct opj_tcd_cblk_enc opj_tcd_cblk_enc_t | 
FIXME DOC.
| typedef struct opj_tcd_image opj_tcd_image_t | 
FIXME DOC.
| typedef struct opj_tcd_layer opj_tcd_layer_t | 
FIXME DOC.
| typedef struct opj_tcd_pass opj_tcd_pass_t | 
FIXME DOC.
| typedef struct opj_tcd_precinct opj_tcd_precinct_t | 
FIXME DOC.
| typedef struct opj_tcd_resolution opj_tcd_resolution_t | 
FIXME DOC.
| typedef struct opj_tcd_seg opj_tcd_seg_t | 
FIXME DOC.
| typedef struct opj_tcd_tile opj_tcd_tile_t | 
FIXME DOC.
| typedef struct opj_tcd_tilecomp opj_tcd_tilecomp_t | 
FIXME DOC.
| OPJ_BOOL opj_alloc_tile_component_data | ( | opj_tcd_tilecomp_t * | l_tilec | ) | 
Allocates tile component data.
References opj_tcd_tilecomp::data, opj_tcd_tilecomp::data_size, opj_tcd_tilecomp::data_size_needed, OPJ_FALSE, opj_free, opj_malloc, opj_realloc, OPJ_TRUE, and opj_tcd_tilecomp::ownsData.
Referenced by opj_j2k_encode(), opj_j2k_write_tile(), and opj_tcd_init_tile().
| 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.
References opj_tcd_tile::comps, opj_image::comps, opj_tcd_tilecomp::data, opj_tcd::image, opj_image::numcomps, OPJ_FALSE, opj_tcd_get_encoded_tile_size(), OPJ_TRUE, opj_image_comp::prec, opj_image_comp::sgnd, opj_tcd::tcd_image, opj_tcd_image::tiles, opj_tcd_tilecomp::x0, opj_tcd_tilecomp::x1, opj_tcd_tilecomp::y0, and opj_tcd_tilecomp::y1.
Referenced by opj_j2k_encode(), and opj_j2k_write_tile().
Dump the content of a tcd structure.
Create a new TCD handle
| p_is_decoder | FIXME DOC | 
Dump the content of a tcd structure.
References opj_tcd::m_is_decoder, opj_calloc, opj_free, and opj_tcd::tcd_image.
Referenced by opj_j2k_copy_default_tcp_and_create_tcd(), and opj_j2k_create_tcd().
| OPJ_BOOL opj_tcd_decode_tile | ( | opj_tcd_t * | tcd, | 
| OPJ_BYTE * | src, | ||
| OPJ_UINT32 | len, | ||
| OPJ_UINT32 | tileno, | ||
| opj_codestream_index_t * | cstr_info | ||
| ) | 
Decode a tile from a buffer into a raw image.
| tcd | TCD handle | 
| src | Source buffer | 
| len | Length of source buffer | 
| tileno | Number that identifies one of the tiles to be decoded | 
| cstr_info | FIXME DOC | 
References opj_tcd_tile::comps, opj_tcd::cp, opj_tcd_tilecomp::numresolutions, OPJ_FALSE, opj_malloc, opj_tcd_dc_level_shift_decode(), opj_tcd_dwt_decode(), opj_tcd_mct_decode(), opj_tcd_t1_decode(), opj_tcd_t2_decode(), OPJ_TRUE, opj_tcd_resolution::ph, opj_tccp::prch, opj_tccp::prcw, opj_tcd_resolution::pw, opj_tcd_tilecomp::resolutions, opj_tcp::tccps, opj_tcd::tcd_image, opj_tcd::tcd_tileno, tcp, opj_tcd::tcp, opj_cp::tcps, and opj_tcd_image::tiles.
Referenced by opj_j2k_decode_tile().
| void opj_tcd_destroy | ( | opj_tcd_t * | tcd | ) | 
Destroy a previously created TCD handle.
| tcd | TCD handle to destroy | 
References opj_free, opj_tcd_free_tile(), and opj_tcd::tcd_image.
Referenced by opj_j2k_copy_default_tcp_and_create_tcd(), opj_j2k_create_tcd(), opj_j2k_destroy(), and opj_j2k_end_encoding().
| 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 | ||
| ) | 
Encodes a tile from the raw image into the given buffer.
| p_tcd | Tile Coder handle | 
| p_tile_no | Index of the tile to encode. | 
| p_dest | Destination buffer | 
| p_data_written | pointer to an int that is incremented by the number of bytes really written on p_dest | 
| p_len | Maximum length of the destination buffer | 
| p_cstr_info | Codestream information structure | 
References opj_tcd_tile::comps, opj_tcd::cp, opj_tcd::cur_tp_num, opj_codestream_info::index_write, opj_codestream_info::numcomps, opj_codestream_info::numlayers, opj_tcd_tilecomp::numresolutions, opj_calloc, OPJ_FALSE, opj_tcd_dc_level_shift_encode(), opj_tcd_dwt_encode(), opj_tcd_mct_encode(), opj_tcd_rate_allocate_encode(), opj_tcd_t1_encode(), opj_tcd_t2_encode(), OPJ_TRUE, opj_tile_info::packet, opj_tile_info::pdx, opj_tile_info::pdy, opj_tcd_resolution::ph, opj_tile_info::ph, opj_tccp::prch, opj_tccp::prcw, opj_tcd_resolution::pw, opj_tile_info::pw, opj_tcd_tilecomp::resolutions, opj_tcp::tccps, opj_tcd::tcd_image, opj_tcd::tcd_tileno, opj_tcd::tcp, opj_cp::tcps, opj_codestream_info::tile, and opj_tcd_image::tiles.
Referenced by opj_j2k_write_sod().
| 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.
References opj_tcd_tile::comps, opj_image::comps, opj_tcd::image, opj_tcd_tilecomp::minimum_num_resolutions, opj_image::numcomps, opj_image_comp::prec, opj_tcd_tilecomp::resolutions, opj_tcd::tcd_image, opj_tcd_image::tiles, opj_tcd_resolution::x0, opj_tcd_resolution::x1, opj_tcd_resolution::y0, and opj_tcd_resolution::y1.
Referenced by opj_j2k_read_tile_header(), and opj_tcd_update_tile_data().
| OPJ_UINT32 opj_tcd_get_encoded_tile_size | ( | opj_tcd_t * | p_tcd | ) | 
References opj_tcd_tile::comps, opj_image::comps, opj_tcd::image, opj_image::numcomps, opj_image_comp::prec, opj_tcd::tcd_image, opj_tcd_image::tiles, opj_tcd_tilecomp::x0, opj_tcd_tilecomp::x1, opj_tcd_tilecomp::y0, and opj_tcd_tilecomp::y1.
Referenced by opj_j2k_encode(), and opj_tcd_copy_tile_data().
| 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.
| p_tcd | TCD handle. | 
| p_image | raw image. | 
| p_cp | coding parameters. | 
References opj_tcd_tile::comps, opj_tcd::cp, opj_tcd::image, opj_cp::m_enc, opj_cp::m_specific_param, opj_encoding_param::m_tp_pos, opj_tcd_tile::numcomps, opj_image::numcomps, opj_calloc, OPJ_FALSE, OPJ_TRUE, opj_tcd::tcd_image, opj_tcd_image::tiles, and opj_tcd::tp_pos.
Referenced by opj_j2k_copy_default_tcp_and_create_tcd(), and opj_j2k_create_tcd().
| OPJ_BOOL opj_tcd_init_decode_tile | ( | opj_tcd_t * | p_tcd, | 
| OPJ_UINT32 | p_tile_no | ||
| ) | 
Allocates memory for decoding a specific tile.
| p_tcd | the tile decoder. | 
| p_tile_no | the index of the tile received in sequence. This not necessarily lead to the tile at index p_tile_no. | 
References OPJ_FALSE, and opj_tcd_init_tile().
Referenced by opj_j2k_read_tile_header().
| OPJ_BOOL opj_tcd_init_encode_tile | ( | opj_tcd_t * | p_tcd, | 
| OPJ_UINT32 | p_tile_no | ||
| ) | 
Initialize the tile coder and may reuse some meory.
| p_tcd | TCD handle. | 
| p_tile_no | current tile index to encode. | 
References opj_tcd_init_tile(), and OPJ_TRUE.
Referenced by opj_j2k_pre_write_tile().
| void opj_tcd_makelayer | ( | opj_tcd_t * | tcd, | 
| OPJ_UINT32 | layno, | ||
| OPJ_FLOAT64 | thresh, | ||
| OPJ_UINT32 | final | ||
| ) | 
References opj_tcd_resolution::bands, opj_tcd_precinct::cblks, opj_tcd_precinct::ch, opj_tcd_tile::comps, opj_tcd_precinct::cw, opj_tcd_layer::data, opj_tcd_cblk_enc::data, opj_tcd_layer::disto, opj_tcd_tile::distolayer, opj_tcd_pass::distortiondec, opj_tcd_precinct::enc, opj_tcd_cblk_enc::layers, opj_tcd_layer::len, opj_tcd_resolution::numbands, opj_tcd_tile::numcomps, opj_tcd_layer::numpasses, opj_tcd_cblk_enc::numpassesinlayers, opj_tcd_tilecomp::numresolutions, opj_tcd_cblk_enc::passes, opj_tcd_resolution::ph, opj_tcd_band::precincts, opj_tcd_resolution::pw, opj_tcd_pass::rate, opj_tcd_tilecomp::resolutions, opj_tcd::tcd_image, and opj_tcd_image::tiles.
Referenced by opj_tcd_rateallocate().
| void opj_tcd_makelayer_fixed | ( | opj_tcd_t * | tcd, | 
| OPJ_UINT32 | layno, | ||
| OPJ_UINT32 | final | ||
| ) | 
References opj_tcd_resolution::bands, opj_tcd_precinct::cblks, opj_tcd_precinct::ch, opj_tcd_tile::comps, opj_image::comps, opj_tcd::cp, opj_tcd_precinct::cw, opj_tcd_layer::data, opj_tcd_cblk_enc::data, opj_tcd_precinct::enc, opj_tcd::image, opj_tcd_cblk_enc::layers, opj_tcd_layer::len, opj_cp::m_enc, opj_encoding_param::m_matrice, opj_cp::m_specific_param, opj_tcd_resolution::numbands, opj_tcd_cblk_enc::numbps, opj_tcd_tile::numcomps, opj_tcp::numlayers, opj_tcd_layer::numpasses, opj_tcd_cblk_enc::numpassesinlayers, opj_tcd_tilecomp::numresolutions, opj_tcd_cblk_enc::passes, opj_tcd_resolution::ph, opj_image_comp::prec, opj_tcd_band::precincts, opj_tcd_resolution::pw, opj_tcd_pass::rate, opj_tcd_tilecomp::resolutions, opj_tcd::tcd_image, opj_tcd::tcp, and opj_tcd_image::tiles.
Referenced by opj_tcd_rateallocate_fixed().
| 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 | ||
| ) | 
References opj_tcd_resolution::bands, opj_tcd_precinct::cblks, opj_tcd_precinct::ch, opj_tcd_tile::comps, opj_image::comps, opj_tcd::cp, opj_tcd::cur_pino, opj_tcd::cur_tp_num, opj_tcd_precinct::cw, opj_tcd_tile::distolayer, opj_tcp::distoratio, opj_tcd_pass::distortiondec, opj_tcd_tile::distotile, opj_tile_info::distotile, opj_tcd_precinct::enc, opj_tcd::image, opj_encoding_param::m_disto_alloc, opj_cp::m_enc, opj_encoding_param::m_fixed_quality, opj_cp::m_specific_param, max(), min(), opj_tcd_resolution::numbands, opj_tcd_tile::numcomps, opj_tcp::numlayers, opj_tcd_tilecomp::numpix, opj_tcd_tile::numpix, opj_tile_info::numpix, opj_tcd_tilecomp::numresolutions, OPJ_FALSE, OPJ_IS_CINEMA, opj_malloc, opj_t2_create(), opj_t2_destroy(), opj_t2_encode_packets(), opj_tcd_makelayer(), OPJ_TRUE, opj_uint_min(), opj_tcd_cblk_enc::passes, opj_tcd_resolution::ph, opj_image_comp::prec, opj_tcd_band::precincts, opj_tcd_resolution::pw, opj_tcd_pass::rate, opj_tcp::rates, opj_tcd_tilecomp::resolutions, opj_cp::rsiz, opj_tcd::tcd_image, opj_tcd::tcd_tileno, opj_tcd::tcp, opj_tile_info::thresh, THRESH_CALC, opj_codestream_info::tile, opj_tcd_image::tiles, opj_tcd_cblk_enc::totalpasses, opj_tcd::tp_pos, opj_tcd_cblk_enc::x0, opj_tcd_cblk_enc::x1, opj_tcd_cblk_enc::y0, and opj_tcd_cblk_enc::y1.
Referenced by opj_tcd_rate_allocate_encode().
| void opj_tcd_rateallocate_fixed | ( | opj_tcd_t * | tcd | ) | 
References opj_tcp::numlayers, opj_tcd_makelayer_fixed(), and opj_tcd::tcp.
Referenced by opj_tcd_rate_allocate_encode().
| 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.
References opj_tcd_tile::comps, opj_image::comps, opj_tcd_tilecomp::data, opj_tcd::image, opj_image::numcomps, OPJ_FALSE, opj_tcd_get_decoded_tile_size(), OPJ_TRUE, opj_image_comp::prec, opj_image_comp::resno_decoded, opj_tcd_tilecomp::resolutions, opj_image_comp::sgnd, opj_tcd::tcd_image, opj_tcd_image::tiles, opj_tcd_resolution::x0, opj_tcd_tilecomp::x0, opj_tcd_resolution::x1, opj_tcd_tilecomp::x1, opj_tcd_resolution::y0, and opj_tcd_resolution::y1.
Referenced by opj_j2k_decode_tile().
 1.8.9.1
 1.8.9.1