IMAGE - Implementation of operations on images


Functions

opj_image_topj_image_create0 (void)
 Create an empty image.
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.
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.

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_src the src image
p_image_dest the 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_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_header the image header to update.
p_cp the coding parameters from which to update the image.
p_image_header the image header to update.
p_cp the 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_int_ceildiv(), opj_int_ceildivpow2(), opj_int_max(), opj_int_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().


Generated on Thu Jan 7 21:55:08 2016 for OpenJPEG by  doxygen 1.5.6