Lines Matching refs:mqenc
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,
216 cblk->mqenc = jpc_mqenc_create(JPC_NUMCTXS, cblk->stream); in jpc_enc_enccblk()
217 assert(cblk->mqenc); in jpc_enc_enccblk()
218 jpc_mqenc_setctxs(cblk->mqenc, JPC_NUMCTXS, jpc_mqctxs); in jpc_enc_enccblk()
280 ret = (pass->type == JPC_SEG_MQ) ? jpc_encsigpass(cblk->mqenc, in jpc_enc_enccblk()
287 ret = (pass->type == JPC_SEG_MQ) ? jpc_encrefpass(cblk->mqenc, in jpc_enc_enccblk()
295 ret = jpc_encclnpass(cblk->mqenc, bitpos, band->orient, in jpc_enc_enccblk()
306 jpc_mqenc_init(cblk->mqenc); in jpc_enc_enccblk()
308 jpc_mqenc_getstate(cblk->mqenc, &pass->mqencstate); in jpc_enc_enccblk()
311 jpc_mqenc_setctxs(cblk->mqenc, JPC_NUMCTXS, jpc_mqctxs); in jpc_enc_enccblk()
408 #define sigpass_step(fp, frowstep, dp, bitpos, one, nmsedec, orient, mqenc, vcausalflag) \ argument
415 jpc_mqenc_setcurctx(mqenc, JPC_GETZCCTXNO(f, (orient))); \
416 jpc_mqenc_putbit(mqenc, v); \
420 jpc_mqenc_setcurctx(mqenc, JPC_GETSCCTXNO(f)); \
421 jpc_mqenc_putbit(mqenc, v ^ JPC_GETSPB(f)); \
429 static int jpc_encsigpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int vcausalflag, in jpc_encsigpass() argument
473 nmsedec, orient, mqenc, vcausalflag); in jpc_encsigpass()
480 nmsedec, orient, mqenc, 0); in jpc_encsigpass()
487 nmsedec, orient, mqenc, 0); in jpc_encsigpass()
494 nmsedec, orient, mqenc, 0); in jpc_encsigpass()
500 jpc_mqenc_flush(mqenc, term - 1); in jpc_encsigpass()
503 return jpc_mqenc_error(mqenc) ? (-1) : 0; in jpc_encsigpass()
617 #define refpass_step(fp, dp, bitpos, one, nmsedec, mqenc, vcausalflag) \ argument
623 jpc_mqenc_setcurctx((mqenc), JPC_GETMAGCTXNO(*(fp))); \
625 jpc_mqenc_putbit((mqenc), v); \
630 static int jpc_encrefpass(jpc_mqenc_t *mqenc, int bitpos, int vcausalflag, jas_matrix_t *flags, jas… in jpc_encrefpass() argument
675 mqenc, vcausalflag); in jpc_encrefpass()
682 mqenc, 0); in jpc_encrefpass()
689 mqenc, 0); in jpc_encrefpass()
696 mqenc, 0); in jpc_encrefpass()
702 jpc_mqenc_flush(mqenc, term - 1); in jpc_encrefpass()
705 return jpc_mqenc_error(mqenc) ? (-1) : 0; in jpc_encrefpass()
804 #define clnpass_step(fp, frowstep, dp, bitpos, one, orient, nmsedec, mqenc, label1, label2, vcausal… argument
811 jpc_mqenc_setcurctx(mqenc, JPC_GETZCCTXNO(f, (orient))); \
813 jpc_mqenc_putbit((mqenc), v); \
819 jpc_mqenc_setcurctx((mqenc), JPC_GETSCCTXNO(f)); \
821 jpc_mqenc_putbit((mqenc), v ^ JPC_GETSPB(f)); \
829 static int jpc_encclnpass(jpc_mqenc_t *mqenc, int bitpos, int orient, int vcausalflag, int segsymfl… in jpc_encclnpass() argument
887 jpc_mqenc_setcurctx(mqenc, JPC_AGGCTXNO); in jpc_encclnpass()
888 jpc_mqenc_putbit(mqenc, 0); in jpc_encclnpass()
891 jpc_mqenc_setcurctx(mqenc, JPC_AGGCTXNO); in jpc_encclnpass()
892 jpc_mqenc_putbit(mqenc, 1); in jpc_encclnpass()
893 jpc_mqenc_setcurctx(mqenc, JPC_UCTXNO); in jpc_encclnpass()
894 jpc_mqenc_putbit(mqenc, runlen >> 1); in jpc_encclnpass()
895 jpc_mqenc_putbit(mqenc, runlen & 1); in jpc_encclnpass()
921 orient, nmsedec, mqenc, clnpass_full0:, clnpass_partial0:, vcausalflag); in jpc_encclnpass()
928 orient, nmsedec, mqenc, ;, clnpass_partial1:, 0); in jpc_encclnpass()
935 orient, nmsedec, mqenc, ;, clnpass_partial2:, 0); in jpc_encclnpass()
942 orient, nmsedec, mqenc, ;, clnpass_partial3:, 0); in jpc_encclnpass()
947 jpc_mqenc_setcurctx(mqenc, JPC_UCTXNO); in jpc_encclnpass()
948 jpc_mqenc_putbit(mqenc, 1); in jpc_encclnpass()
949 jpc_mqenc_putbit(mqenc, 0); in jpc_encclnpass()
950 jpc_mqenc_putbit(mqenc, 1); in jpc_encclnpass()
951 jpc_mqenc_putbit(mqenc, 0); in jpc_encclnpass()
955 jpc_mqenc_flush(mqenc, term - 1); in jpc_encclnpass()
958 return jpc_mqenc_error(mqenc) ? (-1) : 0; in jpc_encclnpass()