Lines Matching refs:pxform

83 static void jas_cmpxform_destroy(jas_cmpxform_t *pxform);
84 static jas_cmpxform_t *jas_cmpxform_copy(jas_cmpxform_t *pxform);
86 static void jas_cmshapmat_destroy(jas_cmpxform_t *pxform);
87 static int jas_cmshapmat_apply(jas_cmpxform_t *pxform, jas_cmreal_t *in,
107 int i, jas_cmpxform_t *pxform);
478 jas_cmpxform_t *pxform; in jas_cmxform_apply() local
510 pxform = pxformseq->pxforms[i]; in jas_cmxform_apply()
511 if (pxform->numinchans > maxchans) { in jas_cmxform_apply()
512 maxchans = pxform->numinchans; in jas_cmxform_apply()
514 if (pxform->numoutchans > maxchans) { in jas_cmxform_apply()
515 maxchans = pxform->numoutchans; in jas_cmxform_apply()
545 pxform = pxformseq->pxforms[i]; in jas_cmxform_apply()
546 if (pxform->numoutchans > pxform->numinchans) { in jas_cmxform_apply()
551 if ((*pxform->ops->apply)(pxform, inbuf, outbuf, m)) in jas_cmxform_apply()
652 int i, jas_cmpxform_t *pxform) in jas_cmpxformseq_insertpxform() argument
665 if (!(tmppxform = jas_cmpxform_copy(pxform))) in jas_cmpxformseq_insertpxform()
684 jas_cmpxform_t *pxform; in jas_cmpxformseq_append() local
693 if (!(pxform = jas_cmpxform_copy(othpxform))) in jas_cmpxformseq_append()
695 pxformseq->pxforms[pxformseq->numpxforms] = pxform; in jas_cmpxformseq_append()
722 jas_cmpxform_t *pxform; in jas_cmpxform_create0() local
723 if (!(pxform = jas_malloc(sizeof(jas_cmpxform_t)))) in jas_cmpxform_create0()
725 memset(pxform, 0, sizeof(jas_cmpxform_t)); in jas_cmpxform_create0()
726 pxform->refcnt = 0; in jas_cmpxform_create0()
727 pxform->ops = 0; in jas_cmpxform_create0()
728 return pxform; in jas_cmpxform_create0()
731 static void jas_cmpxform_destroy(jas_cmpxform_t *pxform) in jas_cmpxform_destroy() argument
733 if (--pxform->refcnt <= 0) { in jas_cmpxform_destroy()
734 (*pxform->ops->destroy)(pxform); in jas_cmpxform_destroy()
735 jas_free(pxform); in jas_cmpxform_destroy()
739 static jas_cmpxform_t *jas_cmpxform_copy(jas_cmpxform_t *pxform) in jas_cmpxform_copy() argument
741 ++pxform->refcnt; in jas_cmpxform_copy()
742 return pxform; in jas_cmpxform_copy()
753 jas_cmpxform_t *pxform; in jas_cmpxform_createshapmat() local
755 if (!(pxform = jas_cmpxform_create0())) in jas_cmpxform_createshapmat()
757 pxform->ops = &shapmat_ops; in jas_cmpxform_createshapmat()
758 shapmat = &pxform->data.shapmat; in jas_cmpxform_createshapmat()
769 ++pxform->refcnt; in jas_cmpxform_createshapmat()
770 return pxform; in jas_cmpxform_createshapmat()
773 static void jas_cmshapmat_destroy(jas_cmpxform_t *pxform) in jas_cmshapmat_destroy() argument
775 jas_cmshapmat_t *shapmat = &pxform->data.shapmat; in jas_cmshapmat_destroy()
781 static int jas_cmshapmat_apply(jas_cmpxform_t *pxform, jas_cmreal_t *in, in jas_cmshapmat_apply() argument
784 jas_cmshapmat_t *shapmat = &pxform->data.shapmat; in jas_cmshapmat_apply()
1072 jas_cmpxform_t *pxform; in mono() local
1080 if (!(pxform = jas_cmpxform_createshapmat())) in mono()
1082 shapmat = &pxform->data.shapmat; in mono()
1085 if (jas_cmpxformseq_insertpxform(pxformseq, -1, pxform)) in mono()
1088 pxform->numinchans = 1; in mono()
1089 pxform->numoutchans = 3; in mono()
1114 jas_cmpxform_destroy(pxform); in mono()
1127 jas_cmpxform_t *pxform; in triclr() local
1132 pxform = 0; in triclr()
1152 if (!(pxform = jas_cmpxform_createshapmat())) in triclr()
1154 pxform->numinchans = 3; in triclr()
1155 pxform->numoutchans = 3; in triclr()
1156 shapmat = &pxform->data.shapmat; in triclr()
1159 if (jas_cmpxformseq_insertpxform(pxformseq, -1, pxform)) in triclr()
1201 jas_cmpxform_destroy(pxform); in triclr()
1218 if (pxform) { in triclr()
1219 jas_cmpxform_destroy(pxform); in triclr()