Lines Matching refs:mqc
380 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_enc_sigpass_step() local
385 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc(flag, orient)); /* ESSAI */ in opj_t1_enc_sigpass_step()
387 opj_mqc_bypass_enc(mqc, (OPJ_UINT32)v); in opj_t1_enc_sigpass_step()
389 opj_mqc_encode(mqc, (OPJ_UINT32)v); in opj_t1_enc_sigpass_step()
394 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc(flag)); /* ESSAI */ in opj_t1_enc_sigpass_step()
396 opj_mqc_bypass_enc(mqc, (OPJ_UINT32)v); in opj_t1_enc_sigpass_step()
398 opj_mqc_encode(mqc, (OPJ_UINT32)(v ^ opj_t1_getspb((OPJ_UINT32)flag))); in opj_t1_enc_sigpass_step()
439 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_sigpass_step_mqc() local
443 … opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc((OPJ_UINT32)flag, (OPJ_UINT32)orient)); in opj_t1_dec_sigpass_step_mqc()
444 if (opj_mqc_decode(mqc)) { in opj_t1_dec_sigpass_step_mqc()
445 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc((OPJ_UINT32)flag)); in opj_t1_dec_sigpass_step_mqc()
446 v = opj_mqc_decode(mqc) ^ opj_t1_getspb((OPJ_UINT32)flag); in opj_t1_dec_sigpass_step_mqc()
464 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_sigpass_step_mqc_vsc() local
468 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc((OPJ_UINT32)flag, (OPJ_UINT32)orient)); in opj_t1_dec_sigpass_step_mqc_vsc()
469 if (opj_mqc_decode(mqc)) { in opj_t1_dec_sigpass_step_mqc_vsc()
470 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc((OPJ_UINT32)flag)); in opj_t1_dec_sigpass_step_mqc_vsc()
471 v = opj_mqc_decode(mqc) ^ opj_t1_getspb((OPJ_UINT32)flag); in opj_t1_dec_sigpass_step_mqc_vsc()
623 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_enc_refpass_step() local
629 opj_mqc_setcurctx(mqc, opj_t1_getctxno_mag(flag)); /* ESSAI */ in opj_t1_enc_refpass_step()
631 opj_mqc_bypass_enc(mqc, (OPJ_UINT32)v); in opj_t1_enc_refpass_step()
633 opj_mqc_encode(mqc, (OPJ_UINT32)v); in opj_t1_enc_refpass_step()
669 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_refpass_step_mqc() local
673 opj_mqc_setcurctx(mqc, opj_t1_getctxno_mag((OPJ_UINT32)flag)); /* ESSAI */ in opj_t1_dec_refpass_step_mqc()
674 v = opj_mqc_decode(mqc); in opj_t1_dec_refpass_step_mqc()
691 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_refpass_step_mqc_vsc() local
695 opj_mqc_setcurctx(mqc, opj_t1_getctxno_mag((OPJ_UINT32)flag)); /* ESSAI */ in opj_t1_dec_refpass_step_mqc_vsc()
696 v = opj_mqc_decode(mqc); in opj_t1_dec_refpass_step_mqc_vsc()
844 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_enc_clnpass_step() local
851 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc(flag, orient)); in opj_t1_enc_clnpass_step()
853 opj_mqc_encode(mqc, (OPJ_UINT32)v); in opj_t1_enc_clnpass_step()
857 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc(flag)); in opj_t1_enc_clnpass_step()
859 opj_mqc_encode(mqc, (OPJ_UINT32)(v ^ opj_t1_getspb((OPJ_UINT32)flag))); in opj_t1_enc_clnpass_step()
874 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_clnpass_step_partial() local
879 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc((OPJ_UINT32)flag)); in opj_t1_dec_clnpass_step_partial()
880 v = opj_mqc_decode(mqc) ^ opj_t1_getspb((OPJ_UINT32)flag); in opj_t1_dec_clnpass_step_partial()
895 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_clnpass_step() local
899 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc((OPJ_UINT32)flag, (OPJ_UINT32)orient)); in opj_t1_dec_clnpass_step()
900 if (opj_mqc_decode(mqc)) { in opj_t1_dec_clnpass_step()
901 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc((OPJ_UINT32)flag)); in opj_t1_dec_clnpass_step()
902 v = opj_mqc_decode(mqc) ^ opj_t1_getspb((OPJ_UINT32)flag); in opj_t1_dec_clnpass_step()
921 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_clnpass_step_vsc() local
928 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc((OPJ_UINT32)flag, (OPJ_UINT32)orient)); in opj_t1_dec_clnpass_step_vsc()
929 if (opj_mqc_decode(mqc)) { in opj_t1_dec_clnpass_step_vsc()
931 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc((OPJ_UINT32)flag)); in opj_t1_dec_clnpass_step_vsc()
932 v = opj_mqc_decode(mqc) ^ opj_t1_getspb((OPJ_UINT32)flag); in opj_t1_dec_clnpass_step_vsc()
951 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_enc_clnpass() local
978 opj_mqc_setcurctx(mqc, T1_CTXNO_AGG); in opj_t1_enc_clnpass()
979 opj_mqc_encode(mqc, runlen != 4); in opj_t1_enc_clnpass()
983 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_enc_clnpass()
984 opj_mqc_encode(mqc, runlen >> 1); in opj_t1_enc_clnpass()
985 opj_mqc_encode(mqc, runlen & 1); in opj_t1_enc_clnpass()
1016 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_dec_clnpass() local
1034 opj_mqc_setcurctx(mqc, T1_CTXNO_AGG); in opj_t1_dec_clnpass()
1035 if (!opj_mqc_decode(mqc)) { in opj_t1_dec_clnpass()
1038 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_dec_clnpass()
1039 runlen = opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1040 runlen = (runlen << 1) | opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1069 opj_mqc_setcurctx(mqc, T1_CTXNO_AGG); in opj_t1_dec_clnpass()
1070 if (!opj_mqc_decode(mqc)) { in opj_t1_dec_clnpass()
1073 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_dec_clnpass()
1074 runlen = opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1075 runlen = (runlen << 1) | opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1118 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_dec_clnpass()
1119 v = opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1120 v = (v << 1) | opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1121 v = (v << 1) | opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1122 v = (v << 1) | opj_mqc_decode(mqc); in opj_t1_dec_clnpass()
1229 l_t1->mqc = opj_mqc_create(); in opj_t1_create()
1230 if (! l_t1->mqc) { in opj_t1_create()
1258 opj_mqc_destroy(p_t1->mqc); in opj_t1_destroy()
1259 p_t1->mqc = 00; in opj_t1_destroy()
1374 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_decode_cblk() local
1392 opj_mqc_resetstates(mqc); in opj_t1_decode_cblk()
1393 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_decode_cblk()
1394 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_decode_cblk()
1395 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_decode_cblk()
1409 if (OPJ_FALSE == opj_mqc_init_dec(mqc, (*seg->data) + seg->dataindex, seg->len)) { in opj_t1_decode_cblk()
1444 opj_mqc_resetstates(mqc); in opj_t1_decode_cblk()
1445 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_decode_cblk()
1446 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_decode_cblk()
1447 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_decode_cblk()
1580 opj_mqc_t *mqc = t1->mqc; /* MQC component */ in opj_t1_encode_cblk() local
1604 opj_mqc_resetstates(mqc); in opj_t1_encode_cblk()
1605 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_encode_cblk()
1606 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_encode_cblk()
1607 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_encode_cblk()
1608 opj_mqc_init_enc(mqc, cblk->data); in opj_t1_encode_cblk()
1626 opj_mqc_segmark_enc(mqc); in opj_t1_encode_cblk()
1638 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
1642 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
1650 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
1654 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
1671 opj_mqc_bypass_init_enc(mqc); in opj_t1_encode_cblk()
1673 opj_mqc_restart_init_enc(mqc); in opj_t1_encode_cblk()
1677 pass->rate = opj_mqc_numbytes(mqc) + correction; /* FIXME */ in opj_t1_encode_cblk()
1681 opj_mqc_reset_enc(mqc); in opj_t1_encode_cblk()
1686 opj_mqc_erterm_enc(mqc); in opj_t1_encode_cblk()
1688 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
1694 if (pass->rate > opj_mqc_numbytes(mqc)) in opj_t1_encode_cblk()
1695 pass->rate = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()
1716 opj_mqc_t *mqc = t1->mqc; /* MQC component */
1721 opj_mqc_setcurctx(mqc, opj_t1_getctxno_mag(flag)); /* ESSAI */
1725 v = opj_mqc_decode(mqc);
1748 opj_mqc_t *mqc = t1->mqc; /* MQC component */
1759 opj_mqc_setcurctx(mqc, opj_t1_getctxno_zc(flag, orient));
1760 if (opj_mqc_decode(mqc)) {
1761 opj_mqc_setcurctx(mqc, opj_t1_getctxno_sc(flag));
1762 v = opj_mqc_decode(mqc) ^ opj_t1_getspb(flag);