OpenJPEG 1.5.2
image.c File Reference
#include "opj_includes.h"

Functions

opj_image_topj_image_create0 (void)
 Create an empty image.
 
opj_image_t *OPJ_CALLCONV opj_image_create (int numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc)
 Create an image.
 
void OPJ_CALLCONV opj_image_destroy (opj_image_t *image)
 Deallocate any resources associated with an image.
 

Function Documentation

◆ opj_image_create()

◆ opj_image_create0()

opj_image_t * opj_image_create0 ( void )

Create an empty image.

Todo
this function should be removed
Returns
returns an empty image if successful, returns NULL otherwise

References opj_calloc.

Referenced by j2k_decode(), and j2k_decode_jpt_stream().

◆ opj_image_destroy()

void OPJ_CALLCONV opj_image_destroy ( opj_image_t * image)

Deallocate any resources associated with an image.

Parameters
imageimage to be destroyed

References opj_image::comps, opj_image_comp::data, opj_image::numcomps, OPJ_CALLCONV, and opj_free.

Referenced by j2k_decode(), j2k_decode_jpt_stream(), and opj_image_create().