Lines Matching refs:image
35 opj_image_t *image = (opj_image_t*)opj_calloc(1, sizeof(opj_image_t)); in opj_image_create0() local
36 return image; in opj_image_create0()
41 opj_image_t *image = NULL; in opj_image_create() local
43 image = (opj_image_t*) opj_calloc(1, sizeof(opj_image_t)); in opj_image_create()
44 if(image) { in opj_image_create()
45 image->color_space = clrspc; in opj_image_create()
46 image->numcomps = numcmpts; in opj_image_create()
48 image->comps = (opj_image_comp_t*)opj_calloc(1,image->numcomps * sizeof(opj_image_comp_t)); in opj_image_create()
49 if(!image->comps) { in opj_image_create()
52 opj_image_destroy(image); in opj_image_create()
57 opj_image_comp_t *comp = &image->comps[compno]; in opj_image_create()
71 opj_image_destroy(image); in opj_image_create()
77 return image; in opj_image_create()
80 void OPJ_CALLCONV opj_image_destroy(opj_image_t *image) { in opj_image_destroy() argument
81 if(image) { in opj_image_destroy()
82 if(image->comps) { in opj_image_destroy()
86 for(compno = 0; compno < image->numcomps; compno++) { in opj_image_destroy()
87 opj_image_comp_t *image_comp = &(image->comps[compno]); in opj_image_destroy()
92 opj_free(image->comps); in opj_image_destroy()
95 if(image->icc_profile_buf) { in opj_image_destroy()
96 opj_free(image->icc_profile_buf); in opj_image_destroy()
99 opj_free(image); in opj_image_destroy()
210 opj_image_t *image = 00; in opj_image_tile_create() local
212 image = (opj_image_t*) opj_calloc(1,sizeof(opj_image_t)); in opj_image_tile_create()
213 if (image) in opj_image_tile_create()
216 image->color_space = clrspc; in opj_image_tile_create()
217 image->numcomps = numcmpts; in opj_image_tile_create()
220 image->comps = (opj_image_comp_t*)opj_calloc(image->numcomps, sizeof(opj_image_comp_t)); in opj_image_tile_create()
221 if (!image->comps) { in opj_image_tile_create()
222 opj_image_destroy(image); in opj_image_tile_create()
228 opj_image_comp_t *comp = &image->comps[compno]; in opj_image_tile_create()
241 return image; in opj_image_tile_create()