Lines Matching defs:mqdec
94 static int dec_sigpass(jpc_dec_t *dec, jpc_mqdec_t *mqdec, int bitpos, int orient,
98 static int dec_refpass(jpc_dec_t *dec, jpc_mqdec_t *mqdec, int bitpos, int vcausalflag,
102 static int dec_clnpass(jpc_dec_t *dec, jpc_mqdec_t *mqdec, int bitpos, int orient,
110 #define JPC_T1D_GETBIT(mqdec, v, passtypename, symtypename) \
111 ((v) = jpc_mqdec_getbit(mqdec))
113 #define JPC_T1D_GETBIT(mqdec, v, passtypename, symtypename) \
115 (v) = jpc_mqdec_getbit(mqdec); \
122 #define JPC_T1D_GETBITNOSKEW(mqdec, v, passtypename, symtypename) \
123 JPC_T1D_GETBIT(mqdec, v, passtypename, symtypename)
221 if (!cblk->mqdec) {
222 if (!(cblk->mqdec = jpc_mqdec_create(JPC_NUMCTXS, 0))) {
225 jpc_mqdec_setctxs(cblk->mqdec, JPC_NUMCTXS, jpc_mqctxs);
227 jpc_mqdec_setinput(cblk->mqdec, seg->stream);
228 jpc_mqdec_init(cblk->mqdec);
264 cblk->mqdec, bpno, band->orient,
273 dec_refpass(dec, cblk->mqdec, bpno,
282 ret = dec_clnpass(dec, cblk->mqdec, bpno,
294 jpc_mqdec_setctxs(cblk->mqdec, JPC_NUMCTXS, jpc_mqctxs);
341 #define jpc_sigpass_step(fp, frowstep, dp, bitpos, oneplushalf, orient, mqdec, vcausalflag) \
347 jpc_mqdec_setcurctx((mqdec), JPC_GETZCCTXNO(f, (orient))); \
348 JPC_T1D_GETBIT((mqdec), v, "SIG", "ZC"); \
350 jpc_mqdec_setcurctx((mqdec), JPC_GETSCCTXNO(f)); \
351 JPC_T1D_GETBIT((mqdec), v, "SIG", "SC"); \
361 static int dec_sigpass(jpc_dec_t *dec, register jpc_mqdec_t *mqdec, int bitpos, int orient,
412 orient, mqdec, vcausalflag);
421 orient, mqdec, 0);
430 orient, mqdec, 0);
439 orient, mqdec, 0);
556 #define jpc_refpass_step(fp, dp, poshalf, neghalf, mqdec, vcausalflag) \
561 jpc_mqdec_setcurctx((mqdec), JPC_GETMAGCTXNO(*(fp))); \
562 JPC_T1D_GETBITNOSKEW((mqdec), v, "REF", "MR"); \
569 static int dec_refpass(jpc_dec_t *dec, register jpc_mqdec_t *mqdec, int bitpos,
620 jpc_refpass_step(fp, dp, poshalf, neghalf, mqdec,
629 jpc_refpass_step(fp, dp, poshalf, neghalf, mqdec, 0);
637 jpc_refpass_step(fp, dp, poshalf, neghalf, mqdec, 0);
645 jpc_refpass_step(fp, dp, poshalf, neghalf, mqdec, 0);
753 #define jpc_clnpass_step(f, fp, frowstep, dp, oneplushalf, orient, mqdec, flabel, plabel, vcausalflag) \
758 jpc_mqdec_setcurctx((mqdec), JPC_GETZCCTXNO((f), (orient))); \
759 JPC_T1D_GETBIT((mqdec), v, "CLN", "ZC"); \
763 jpc_mqdec_setcurctx((mqdec), JPC_GETSCCTXNO(f)); \
764 JPC_T1D_GETBIT((mqdec), v, "CLN", "SC"); \
775 static int dec_clnpass(jpc_dec_t *dec, register jpc_mqdec_t *mqdec, int bitpos, int orient,
833 jpc_mqdec_setcurctx(mqdec, JPC_AGGCTXNO);
834 JPC_T1D_GETBIT(mqdec, v, "CLN", "AGG");
838 jpc_mqdec_setcurctx(mqdec, JPC_UCTXNO);
839 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "RL");
841 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "RL");
869 mqdec, clnpass_full0:, clnpass_partial0:,
880 mqdec, ;, clnpass_partial1:, 0);
890 mqdec, ;, clnpass_partial2:, 0);
900 mqdec, ;, clnpass_partial3:, 0);
907 jpc_mqdec_setcurctx(mqdec, JPC_UCTXNO);
908 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "SEGSYM");
910 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "SEGSYM");
912 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "SEGSYM");
914 JPC_T1D_GETBITNOSKEW(mqdec, v, "CLN", "SEGSYM");