Home | History | Annotate | Download | only in libjasper

Lines Matching refs:image

2  * Copyright (c) 1999-2000 Image Power, Inc. and the University of
13 * Copyright (c) 1999-2000 Image Power, Inc.
100 jas_image_t *image;
121 image = 0;
215 if (!(dec->image = jpc_decode(in, optstr))) {
228 if (dec->ihdr->data.ihdr.numcmpts != JAS_CAST(uint, jas_image_numcmpts(dec->image))) {
233 if (!jas_image_numcmpts(dec->image)) {
240 dtype = jas_image_cmptdtype(dec->image, 0);
241 for (i = 1; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) {
242 if (jas_image_cmptdtype(dec->image, i) != dtype) {
265 dec->image))) {
271 for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) {
272 if (jas_image_cmptdtype(dec->image, i) != JP2_BPCTODTYPE(dec->bpcc->data.bpcc.bpcs[i])) {
289 jas_image_setclrspc(dec->image, jp2_getcs(&dec->colr->data.colr));
297 jas_image_setclrspc(dec->image, fromiccpcs(icchdr.colorspc));
298 dec->image->cmprof_ = jas_cmprof_createfromiccprof(iccprof);
299 assert(dec->image->cmprof_);
320 dec->numchans = dec->cmap ? dec->cmap->data.cmap.numchans : JAS_CAST(uint, jas_image_numcmpts(dec->image));
326 if (dec->cmap->data.cmap.ents[i].cmptno >= JAS_CAST(uint, jas_image_numcmpts(dec->image))) {
361 newcmptno = jas_image_numcmpts(dec->image);
362 jas_image_depalettize(dec->image, cmapent->cmptno, pclrd->numlutents, lutents, JP2_BPCTODTYPE(pclrd->bpc[cmapent->pcol]), newcmptno);
371 jas_image_setcmpttype(dec->image, newcmptno, jp2_getct(jas_image_clrspc(dec->image), cdefent->type, cdefent->assoc));
373 jas_image_setcmpttype(dec->image, newcmptno, jp2_getct(jas_image_clrspc(dec->image), 0, channo + 1));
382 for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) {
383 jas_image_setcmpttype(dec->image, i, JAS_IMAGE_CT_UNKNOWN);
389 jas_image_setcmpttype(dec->image,
391 jp2_getct(jas_image_clrspc(dec->image),
396 jas_image_setcmpttype(dec->image, dec->chantocmptlut[i],
397 jp2_getct(jas_image_clrspc(dec->image), 0, i + 1));
402 for (i = jas_image_numcmpts(dec->image); i > 0; --i) {
403 if (jas_image_cmpttype(dec->image, i - 1) == JAS_IMAGE_CT_UNKNOWN) {
404 jas_image_delcmpt(dec->image, i - 1);
409 if (!jas_image_numcmpts(dec->image)) {
414 jas_eprintf("no of components is %d\n", jas_image_numcmpts(dec->image));
417 /* Prevent the image from being destroyed later. */
418 image = dec->image;
419 dec->image = 0;
423 return image;
487 dec->image = 0;
508 if (dec->image) {
509 image);