Lines Matching defs:xform
368 jas_cmxform_t *xform;
380 if (!(xform = jas_malloc(sizeof(jas_cmxform_t))))
382 if (!(xform->pxformseq = jas_cmpxformseq_create()))
391 if (jas_cmpxformseq_append(xform->pxformseq, inpxformseq) ||
392 jas_cmpxformseq_appendcnvt(xform->pxformseq,
394 jas_cmpxformseq_append(xform->pxformseq, outpxformseq))
396 xform->numinchans = jas_clrspc_numchans(inprof->clrspc);
397 xform->numoutchans = jas_clrspc_numchans(outprof->clrspc);
404 if (jas_cmpxformseq_append(xform->pxformseq, outpxformseq) ||
405 jas_cmpxformseq_appendcnvt(xform->pxformseq,
407 jas_cmpxformseq_append(xform->pxformseq, inpxformseq))
409 xform->numinchans = jas_clrspc_numchans(outprof->clrspc);
410 xform->numoutchans = jas_clrspc_numchans(inprof->clrspc);
426 if (jas_cmpxformseq_append(xform->pxformseq, inpxformseq) ||
427 jas_cmpxformseq_appendcnvt(xform->pxformseq,
431 if (jas_cmpxformseq_append(xform->pxformseq, outpxformseq) ||
432 jas_cmpxformseq_append(xform->pxformseq, altoutpxformseq))
435 if (jas_cmpxformseq_append(xform->pxformseq, outpxformseq))
438 if (jas_cmpxformseq_appendcnvt(xform->pxformseq,
440 jas_cmpxformseq_append(xform->pxformseq, prfpxformseq))
442 xform->numinchans = jas_clrspc_numchans(inprof->clrspc);
443 xform->numoutchans = jas_clrspc_numchans(prfprof->clrspc);
450 if (jas_cmpxformseq_append(xform->pxformseq, inpxformseq) ||
451 jas_cmpxformseq_appendcnvt(xform->pxformseq,
453 jas_cmpxformseq_append(xform->pxformseq, outpxformseq))
455 xform->numinchans = jas_clrspc_numchans(inprof->clrspc);
456 xform->numoutchans = 1;
459 xform;
465 int jas_cmxform_apply(jas_cmxform_t *xform, jas_cmpixmap_t *in, jas_cmpixmap_t *out)
488 if (xform->numinchans > in->numcmpts || xform->numoutchans > out->numcmpts)
494 for (i = 1; i < xform->numinchans; ++i) {
500 for (i = 0; i < xform->numoutchans; ++i) {
508 pxformseq = xform->pxformseq;
528 for (i = 0; i < xform->numinchans; ++i) {
538 bufptr += xform->numinchans;
556 for (i = 0; i < xform->numoutchans; ++i) {
564 bufptr += xform->numoutchans;
578 void jas_cmxform_destroy(jas_cmxform_t *xform)
580 if (xform->pxformseq)
581 jas_cmpxformseq_destroy(xform->pxformseq);
582 jas_free(xform);