OpenJPEG  2.3.0
Functions
IMAGE - Implementation of operations on images

Functions

opj_image_topj_image_create0 (void)
 Create an empty image. More...
 
void opj_image_comp_header_update (opj_image_t *p_image, const struct opj_cp *p_cp)
 Updates the components characteristics of the image from the coding parameters. More...
 
void opj_copy_image_header (const opj_image_t *p_image_src, opj_image_t *p_image_dest)
 Copy only header of image and its component header (no data are copied) if dest image have data, they will be freed. More...
 

Detailed Description

Function Documentation

void opj_copy_image_header ( const opj_image_t p_image_src,
opj_image_t p_image_dest 
)

Copy only header of image and its component header (no data are copied) if dest image have data, they will be freed.

Parameters
p_image_srcthe src image
p_image_destthe dest image

References opj_image::color_space, opj_image::comps, opj_image_comp::data, opj_image::icc_profile_buf, opj_image::icc_profile_len, opj_image::numcomps, opj_free(), opj_image_data_free(), opj_malloc(), opj_image::x0, opj_image::x1, opj_image::y0, and opj_image::y1.

Referenced by opj_j2k_decode(), opj_j2k_get_tile(), opj_j2k_read_header(), and opj_j2k_start_compress().

void opj_image_comp_header_update ( opj_image_t p_image_header,
const struct opj_cp p_cp 
)

Updates the components characteristics of the image from the coding parameters.

Parameters
p_image_headerthe image header to update.
p_cpthe coding parameters from which to update the image.

References opj_image::comps, opj_image_comp::dx, opj_image_comp::dy, opj_image_comp::factor, opj_image_comp::h, opj_image::numcomps, opj_uint_adds(), opj_uint_ceildiv(), opj_uint_ceildivpow2(), opj_uint_max(), opj_uint_min(), opj_cp::tdx, opj_cp::tdy, opj_cp::th, opj_cp::tw, opj_cp::tx0, opj_cp::ty0, opj_image_comp::w, opj_image_comp::x0, opj_image::x0, opj_image::x1, opj_image_comp::y0, opj_image::y0, and opj_image::y1.

Referenced by opj_j2k_read_siz().

opj_image_t* opj_image_create0 ( void  )

Create an empty image.

Returns
returns an empty image if successful, returns NULL otherwise

References opj_calloc().

Referenced by opj_j2k_decode(), opj_j2k_get_tile(), opj_j2k_read_header(), and opj_j2k_start_compress().