Lines Matching refs:image
100 jas_image_t *image; in jp2_decode() local
121 image = 0; in jp2_decode()
215 if (!(dec->image = jpc_decode(in, optstr))) { in jp2_decode()
228 if (dec->ihdr->data.ihdr.numcmpts != JAS_CAST(uint, jas_image_numcmpts(dec->image))) { in jp2_decode()
233 if (!jas_image_numcmpts(dec->image)) { in jp2_decode()
240 dtype = jas_image_cmptdtype(dec->image, 0); in jp2_decode()
241 for (i = 1; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { in jp2_decode()
242 if (jas_image_cmptdtype(dec->image, i) != dtype) { in jp2_decode()
265 dec->image))) { in jp2_decode()
271 for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { in jp2_decode()
272 … if (jas_image_cmptdtype(dec->image, i) != JP2_BPCTODTYPE(dec->bpcc->data.bpcc.bpcs[i])) { in jp2_decode()
289 jas_image_setclrspc(dec->image, jp2_getcs(&dec->colr->data.colr)); in jp2_decode()
297 jas_image_setclrspc(dec->image, fromiccpcs(icchdr.colorspc)); in jp2_decode()
298 dec->image->cmprof_ = jas_cmprof_createfromiccprof(iccprof); in jp2_decode()
299 assert(dec->image->cmprof_); in jp2_decode()
320 …chans = dec->cmap ? dec->cmap->data.cmap.numchans : JAS_CAST(uint, jas_image_numcmpts(dec->image)); in jp2_decode()
326 … if (dec->cmap->data.cmap.ents[i].cmptno >= JAS_CAST(uint, jas_image_numcmpts(dec->image))) { in jp2_decode()
361 newcmptno = jas_image_numcmpts(dec->image); in jp2_decode()
362 …jas_image_depalettize(dec->image, cmapent->cmptno, pclrd->numlutents, lutents, JP2_BPCTODTYPE(pclr… in jp2_decode()
371 …jas_image_setcmpttype(dec->image, newcmptno, jp2_getct(jas_image_clrspc(dec->image), cdefent->type… in jp2_decode()
373 …jas_image_setcmpttype(dec->image, newcmptno, jp2_getct(jas_image_clrspc(dec->image), 0, channo + 1… in jp2_decode()
382 for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { in jp2_decode()
383 jas_image_setcmpttype(dec->image, i, JAS_IMAGE_CT_UNKNOWN); in jp2_decode()
389 jas_image_setcmpttype(dec->image, in jp2_decode()
391 jp2_getct(jas_image_clrspc(dec->image), in jp2_decode()
396 jas_image_setcmpttype(dec->image, dec->chantocmptlut[i], in jp2_decode()
397 jp2_getct(jas_image_clrspc(dec->image), 0, i + 1)); in jp2_decode()
402 for (i = jas_image_numcmpts(dec->image); i > 0; --i) { in jp2_decode()
403 if (jas_image_cmpttype(dec->image, i - 1) == JAS_IMAGE_CT_UNKNOWN) { in jp2_decode()
404 jas_image_delcmpt(dec->image, i - 1); in jp2_decode()
409 if (!jas_image_numcmpts(dec->image)) { in jp2_decode()
414 jas_eprintf("no of components is %d\n", jas_image_numcmpts(dec->image)); in jp2_decode()
418 image = dec->image; in jp2_decode()
419 dec->image = 0; in jp2_decode()
423 return image; in jp2_decode()
487 dec->image = 0; in jp2_dec_create()
508 if (dec->image) { in jp2_dec_destroy()
509 jas_image_destroy(dec->image); in jp2_dec_destroy()