Lines Matching refs:ccp
163 static int jpc_dec_cp_setfromcox(jpc_dec_cp_t *cp, jpc_dec_ccp_t *ccp,
167 static int jpc_dec_cp_setfromqcx(jpc_dec_cp_t *cp, jpc_dec_ccp_t *ccp,
648 jpc_dec_ccp_t *ccp; in jpc_dec_tileinit() local
690 ccp = &tile->cp->ccps[compno]; in jpc_dec_tileinit()
691 if (ccp->qmfbid == JPC_COX_INS) { in jpc_dec_tileinit()
694 tcomp->numrlvls = ccp->numrlvls; in jpc_dec_tileinit()
705 if (!(tcomp->tsfb = jpc_cod_gettsfb(ccp->qmfbid, in jpc_dec_tileinit()
723 rlvl->prcwidthexpn = ccp->prcwidthexpns[rlvlno]; in jpc_dec_tileinit()
724 rlvl->prcheightexpn = ccp->prcheightexpns[rlvlno]; in jpc_dec_tileinit()
761 rlvl->cblkwidthexpn = JAS_MIN(ccp->cblkwidthexpn, in jpc_dec_tileinit()
763 rlvl->cblkheightexpn = JAS_MIN(ccp->cblkheightexpn, in jpc_dec_tileinit()
778 band->stepsize = ccp->stepsizes[bndno]; in jpc_dec_tileinit()
779 band->analgain = JPC_NOMINALGAIN(ccp->qmfbid, in jpc_dec_tileinit()
783 band->numbps = ccp->numguardbits + in jpc_dec_tileinit()
785 band->roishift = (ccp->roishift + band->numbps >= JPC_PREC) ? in jpc_dec_tileinit()
786 (JPC_PREC - 1 - band->numbps) : ccp->roishift; in jpc_dec_tileinit()
1028 jpc_dec_ccp_t *ccp; in jpc_dec_tiledecode() local
1039 ccp = &tile->cp->ccps[compno]; in jpc_dec_tiledecode()
1050 jpc_undo_roi(band->data, band->roishift, ccp->roishift - in jpc_dec_tiledecode()
1064 ccp = &tile->cp->ccps[compno]; in jpc_dec_tiledecode()
1480 jpc_dec_ccp_t *ccp; in jpc_dec_cp_create() local
1499 for (compno = 0, ccp = cp->ccps; compno < cp->numcomps; in jpc_dec_cp_create()
1500 ++compno, ++ccp) { in jpc_dec_cp_create()
1501 ccp->flags = 0; in jpc_dec_cp_create()
1502 ccp->numrlvls = 0; in jpc_dec_cp_create()
1503 ccp->cblkwidthexpn = 0; in jpc_dec_cp_create()
1504 ccp->cblkheightexpn = 0; in jpc_dec_cp_create()
1505 ccp->qmfbid = 0; in jpc_dec_cp_create()
1506 ccp->numstepsizes = 0; in jpc_dec_cp_create()
1507 ccp->numguardbits = 0; in jpc_dec_cp_create()
1508 ccp->roishift = 0; in jpc_dec_cp_create()
1509 ccp->cblkctx = 0; in jpc_dec_cp_create()
1518 jpc_dec_ccp_t *ccp; in jpc_dec_cp_copy() local
1535 for (compno = 0, newccp = newcp->ccps, ccp = cp->ccps; in jpc_dec_cp_copy()
1537 ++compno, ++newccp, ++ccp) { in jpc_dec_cp_copy()
1538 *newccp = *ccp; in jpc_dec_cp_copy()
1546 jpc_dec_ccp_t *ccp; in jpc_dec_cp_resetflags() local
1548 for (compno = 0, ccp = cp->ccps; compno < cp->numcomps; in jpc_dec_cp_resetflags()
1549 ++compno, ++ccp) { in jpc_dec_cp_resetflags()
1550 ccp->flags = 0; in jpc_dec_cp_resetflags()
1568 jpc_dec_ccp_t *ccp; in jpc_dec_cp_isvalid() local
1573 for (compcnt = cp->numcomps, ccp = cp->ccps; compcnt > 0; --compcnt, in jpc_dec_cp_isvalid()
1574 ++ccp) { in jpc_dec_cp_isvalid()
1576 if ((ccp->qsty != JPC_QCX_SIQNT && JAS_CAST(int, ccp->numstepsizes) < 3 * in jpc_dec_cp_isvalid()
1577 ccp->numrlvls - 2) || (ccp->qsty == JPC_QCX_SIQNT && in jpc_dec_cp_isvalid()
1578 ccp->numstepsizes != 1)) { in jpc_dec_cp_isvalid()
1603 jpc_dec_ccp_t *ccp; in jpc_dec_cp_prepare() local
1606 for (compno = 0, ccp = cp->ccps; compno < cp->numcomps; in jpc_dec_cp_prepare()
1607 ++compno, ++ccp) { in jpc_dec_cp_prepare()
1608 if (!(ccp->csty & JPC_COX_PRT)) { in jpc_dec_cp_prepare()
1610 ccp->prcwidthexpns[i] = 15; in jpc_dec_cp_prepare()
1611 ccp->prcheightexpns[i] = 15; in jpc_dec_cp_prepare()
1614 if (ccp->qsty == JPC_QCX_SIQNT) { in jpc_dec_cp_prepare()
1615 calcstepsizes(ccp->stepsizes[0], ccp->numrlvls, ccp->stepsizes); in jpc_dec_cp_prepare()
1623 jpc_dec_ccp_t *ccp; in jpc_dec_cp_setfromcod() local
1634 for (compno = 0, ccp = cp->ccps; compno < cp->numcomps; in jpc_dec_cp_setfromcod()
1635 ++compno, ++ccp) { in jpc_dec_cp_setfromcod()
1636 jpc_dec_cp_setfromcox(cp, ccp, &cod->compparms, 0); in jpc_dec_cp_setfromcod()
1648 static int jpc_dec_cp_setfromcox(jpc_dec_cp_t *cp, jpc_dec_ccp_t *ccp, in jpc_dec_cp_setfromcox() argument
1656 if ((flags & JPC_COC) || !(ccp->flags & JPC_COC)) { in jpc_dec_cp_setfromcox()
1657 ccp->numrlvls = compparms->numdlvls + 1; in jpc_dec_cp_setfromcox()
1658 ccp->cblkwidthexpn = JPC_COX_GETCBLKSIZEEXPN( in jpc_dec_cp_setfromcox()
1660 ccp->cblkheightexpn = JPC_COX_GETCBLKSIZEEXPN( in jpc_dec_cp_setfromcox()
1662 ccp->qmfbid = compparms->qmfbid; in jpc_dec_cp_setfromcox()
1663 ccp->cblkctx = compparms->cblksty; in jpc_dec_cp_setfromcox()
1664 ccp->csty = compparms->csty & JPC_COX_PRT; in jpc_dec_cp_setfromcox()
1666 ccp->prcwidthexpns[rlvlno] = in jpc_dec_cp_setfromcox()
1668 ccp->prcheightexpns[rlvlno] = in jpc_dec_cp_setfromcox()
1671 ccp->flags |= flags | JPC_CSET; in jpc_dec_cp_setfromcox()
1679 jpc_dec_ccp_t *ccp; in jpc_dec_cp_setfromqcd() local
1680 for (compno = 0, ccp = cp->ccps; compno < cp->numcomps; in jpc_dec_cp_setfromqcd()
1681 ++compno, ++ccp) { in jpc_dec_cp_setfromqcd()
1682 jpc_dec_cp_setfromqcx(cp, ccp, &qcd->compparms, 0); in jpc_dec_cp_setfromqcd()
1693 static int jpc_dec_cp_setfromqcx(jpc_dec_cp_t *cp, jpc_dec_ccp_t *ccp, in jpc_dec_cp_setfromqcx() argument
1701 if ((flags & JPC_QCC) || !(ccp->flags & JPC_QCC)) { in jpc_dec_cp_setfromqcx()
1702 ccp->flags |= flags | JPC_QSET; in jpc_dec_cp_setfromqcx()
1704 ccp->stepsizes[bandno] = compparms->stepsizes[bandno]; in jpc_dec_cp_setfromqcx()
1706 ccp->numstepsizes = compparms->numstepsizes; in jpc_dec_cp_setfromqcx()
1707 ccp->numguardbits = compparms->numguard; in jpc_dec_cp_setfromqcx()
1708 ccp->qsty = compparms->qntsty; in jpc_dec_cp_setfromqcx()
1715 jpc_dec_ccp_t *ccp; in jpc_dec_cp_setfromrgn() local
1716 ccp = &cp->ccps[rgn->compno]; in jpc_dec_cp_setfromrgn()
1717 ccp->roishift = rgn->roishift; in jpc_dec_cp_setfromrgn()