Lines Matching defs:bitpos
88 static int jpc_encsigpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int,
91 static int jpc_encrefpass(jpc_mqenc_t *mqenc, int bitpos, int, jas_matrix_t *flags,
94 static int jpc_encclnpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int,
97 static int jpc_encrawsigpass(jpc_bitstream_t *out, int bitpos, int,
100 static int jpc_encrawrefpass(jpc_bitstream_t *out, int bitpos, int,
197 int bitpos;
245 bitpos = cblk->numbps - 1;
269 assert(bitpos >= 0);
281 bitpos, band->orient, vcausal, cblk->flags,
283 jpc_encrawsigpass(bout, bitpos, vcausal, cblk->flags,
288 bitpos, vcausal, cblk->flags, cblk->data, termmode,
289 &pass->nmsedec) : jpc_encrawrefpass(bout, bitpos,
295 ret = jpc_encclnpass(cblk->mqenc, bitpos, band->orient,
338 ((double) (1 << bitpos)) * ((double)(1 << bitpos)) *
345 --bitpos;
408 #define sigpass_step(fp, frowstep, dp, bitpos, one, nmsedec, orient, mqenc, vcausalflag) \
418 *(nmsedec) += JPC_GETSIGNMSEDEC(abs(*(dp)), (bitpos) + JPC_NUMEXTRABITS); \
429 static int jpc_encsigpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int vcausalflag,
458 one = 1 << (bitpos + JPC_NUMEXTRABITS);
472 sigpass_step(fp, frowstep, dp, bitpos, one,
479 sigpass_step(fp, frowstep, dp, bitpos, one,
486 sigpass_step(fp, frowstep, dp, bitpos, one,
493 sigpass_step(fp, frowstep, dp, bitpos, one,
506 #define rawsigpass_step(fp, frowstep, dp, bitpos, one, nmsedec, out, vcausalflag) \
516 *(nmsedec) += JPC_GETSIGNMSEDEC(abs(*(dp)), (bitpos) + JPC_NUMEXTRABITS); \
528 static int jpc_encrawsigpass(jpc_bitstream_t *out, int bitpos, int vcausalflag, jas_matrix_t *flags,
557 one = 1 << (bitpos + JPC_NUMEXTRABITS);
571 rawsigpass_step(fp, frowstep, dp, bitpos, one,
579 rawsigpass_step(fp, frowstep, dp, bitpos, one,
587 rawsigpass_step(fp, frowstep, dp, bitpos, one,
595 rawsigpass_step(fp, frowstep, dp, bitpos, one,
617 #define refpass_step(fp, dp, bitpos, one, nmsedec, mqenc, vcausalflag) \
622 *(nmsedec) += JPC_GETREFNMSEDEC(abs(d), (bitpos) + JPC_NUMEXTRABITS); \
630 static int jpc_encrefpass(jpc_mqenc_t *mqenc, int bitpos, int vcausalflag, jas_matrix_t *flags, jas_matrix_t *data,
660 one = 1 << (bitpos + JPC_NUMEXTRABITS);
674 refpass_step(fp, dp, bitpos, one, nmsedec,
681 refpass_step(fp, dp, bitpos, one, nmsedec,
688 refpass_step(fp, dp, bitpos, one, nmsedec,
695 refpass_step(fp, dp, bitpos, one, nmsedec,
708 #define rawrefpass_step(fp, dp, bitpos, one, nmsedec, out, vcausalflag) \
714 *(nmsedec) += JPC_GETREFNMSEDEC(abs(d), (bitpos) + JPC_NUMEXTRABITS); \
723 static int jpc_encrawrefpass(jpc_bitstream_t *out, int bitpos, int vcausalflag, jas_matrix_t *flags,
752 one = 1 << (bitpos + JPC_NUMEXTRABITS);
766 rawrefpass_step(fp, dp, bitpos, one, nmsedec,
773 rawrefpass_step(fp, dp, bitpos, one, nmsedec,
780 rawrefpass_step(fp, dp, bitpos, one, nmsedec,
787 rawrefpass_step(fp, dp, bitpos, one, nmsedec,
804 #define clnpass_step(fp, frowstep, dp, bitpos, one, orient, nmsedec, mqenc, label1, label2, vcausalflag) \
818 *(nmsedec) += JPC_GETSIGNMSEDEC(abs(*(dp)), (bitpos) + JPC_NUMEXTRABITS); \
829 static int jpc_encclnpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int vcausalflag, int segsymflag, jas_matrix_t *flags,
860 one = 1 << (bitpos + JPC_NUMEXTRABITS);
920 clnpass_step(fp, frowstep, dp, bitpos, one,
927 clnpass_step(fp, frowstep, dp, bitpos, one,
934 clnpass_step(fp, frowstep, dp, bitpos, one,
941 clnpass_step(fp, frowstep, dp, bitpos, one,