• Home
  • Raw
  • Download

Lines Matching refs:mqc

62 #define opj_t1_setcurctx(curctx, ctxno)  curctx = &(mqc)->ctxs[(OPJ_UINT32)(ctxno)]
67 static INLINE OPJ_BYTE opj_t1_getctxno_zc(opj_mqc_t *mqc, OPJ_UINT32 f);
223 static INLINE OPJ_BYTE opj_t1_getctxno_zc(opj_mqc_t *mqc, OPJ_UINT32 f) in opj_t1_getctxno_zc() argument
225 return mqc->lut_ctxno_zc_orient[(f & T1_SIGMA_NEIGHBOURS)]; in opj_t1_getctxno_zc()
344 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_enc_sigpass_step() local
350 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); in opj_t1_enc_sigpass_step()
355 opj_mqc_setcurctx(mqc, ctxt1); in opj_t1_enc_sigpass_step()
357 opj_mqc_bypass_enc(mqc, v); in opj_t1_enc_sigpass_step()
359 opj_mqc_encode(mqc, v); in opj_t1_enc_sigpass_step()
373 opj_mqc_setcurctx(mqc, ctxt2); in opj_t1_enc_sigpass_step()
375 opj_mqc_bypass_enc(mqc, v); in opj_t1_enc_sigpass_step()
381 opj_mqc_encode(mqc, v ^ spb); in opj_t1_enc_sigpass_step()
398 opj_mqc_t *mqc = &(t1->mqc); /* RAW component */ in opj_t1_dec_sigpass_step_raw() local
404 if (opj_mqc_raw_decode(mqc)) { in opj_t1_dec_sigpass_step_raw()
405 v = opj_mqc_raw_decode(mqc); in opj_t1_dec_sigpass_step_raw()
414 data_stride, ci, mqc, curctx, \
419 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); \
421 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
430 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
450 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_dec_sigpass_step_mqc() local
452 0, ci, mqc, mqc->curctx, in opj_t1_dec_sigpass_step_mqc()
453 v, mqc->a, mqc->c, mqc->ct, oneplushalf, vsc); in opj_t1_dec_sigpass_step_mqc()
628 opj_mqc_t* mqc = &(t1->mqc); \
629 DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
640 l_w, 0, mqc, curctx, v, a, c, ct, oneplushalf, vsc); \
643 l_w, 1, mqc, curctx, v, a, c, ct, oneplushalf, OPJ_FALSE); \
646 l_w, 2, mqc, curctx, v, a, c, ct, oneplushalf, OPJ_FALSE); \
649 l_w, 3, mqc, curctx, v, a, c, ct, oneplushalf, OPJ_FALSE); \
654 UPLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
729 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_enc_refpass_step() local
742 opj_mqc_setcurctx(mqc, ctxt); in opj_t1_enc_refpass_step()
744 opj_mqc_bypass_enc(mqc, v); in opj_t1_enc_refpass_step()
746 opj_mqc_encode(mqc, v); in opj_t1_enc_refpass_step()
762 opj_mqc_t *mqc = &(t1->mqc); /* RAW component */ in opj_t1_dec_refpass_step_raw() local
766 v = opj_mqc_raw_decode(mqc); in opj_t1_dec_refpass_step_raw()
773 mqc, curctx, v, a, c, ct, poshalf) \
779 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
794 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_dec_refpass_step_mqc() local
796 mqc, mqc->curctx, v, mqc->a, mqc->c, in opj_t1_dec_refpass_step_mqc()
797 mqc->ct, poshalf); in opj_t1_dec_refpass_step_mqc()
970 opj_mqc_t* mqc = &(t1->mqc); \
971 DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
981 mqc, curctx, v, a, c, ct, poshalf); \
984 mqc, curctx, v, a, c, ct, poshalf); \
987 mqc, curctx, v, a, c, ct, poshalf); \
990 mqc, curctx, v, a, c, ct, poshalf); \
995 UPLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
1047 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_enc_clnpass_step() local
1077 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); in opj_t1_enc_clnpass_step()
1081 opj_mqc_setcurctx(mqc, ctxt1); in opj_t1_enc_clnpass_step()
1083 opj_mqc_encode(mqc, v); in opj_t1_enc_clnpass_step()
1098 opj_mqc_setcurctx(mqc, ctxt2); in opj_t1_enc_clnpass_step()
1105 opj_mqc_encode(mqc, v ^ spb); in opj_t1_enc_clnpass_step()
1117 data_stride, ci, mqc, curctx, \ argument
1123 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); \
1125 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
1134 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
1153 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_dec_clnpass_step() local
1156 0, ci, mqc, mqc->curctx, in opj_t1_dec_clnpass_step()
1157 v, mqc->a, mqc->c, mqc->ct, oneplushalf, vsc); in opj_t1_dec_clnpass_step()
1170 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_enc_clnpass() local
1194 opj_mqc_setcurctx(mqc, T1_CTXNO_AGG); in opj_t1_enc_clnpass()
1195 opj_mqc_encode(mqc, runlen != 4); in opj_t1_enc_clnpass()
1199 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_enc_clnpass()
1200 opj_mqc_encode(mqc, runlen >> 1); in opj_t1_enc_clnpass()
1201 opj_mqc_encode(mqc, runlen & 1); in opj_t1_enc_clnpass()
1250 opj_mqc_t* mqc = &(t1->mqc); \
1253 DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
1264 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
1269 opj_mqc_decode_macro(runlen, mqc, curctx, a, c, ct); \
1270 opj_mqc_decode_macro(v, mqc, curctx, a, c, ct); \
1276 l_w, 0, mqc, curctx, \
1283 l_w, 1, mqc, curctx, \
1290 l_w, 2, mqc, curctx, \
1297 l_w, 3, mqc, curctx, \
1304 l_w, 0, mqc, curctx, \
1308 l_w, 1, mqc, curctx, \
1312 l_w, 2, mqc, curctx, \
1316 l_w, 3, mqc, curctx, \
1322 UPLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct); \
1336 opj_mqc_t* mqc = &(t1->mqc); in opj_t1_dec_clnpass_check_segsym() local
1338 opj_mqc_setcurctx(mqc, T1_CTXNO_UNI); in opj_t1_dec_clnpass_check_segsym()
1339 opj_mqc_decode(v, mqc); in opj_t1_dec_clnpass_check_segsym()
1340 opj_mqc_decode(v2, mqc); in opj_t1_dec_clnpass_check_segsym()
1342 opj_mqc_decode(v2, mqc); in opj_t1_dec_clnpass_check_segsym()
1344 opj_mqc_decode(v2, mqc); in opj_t1_dec_clnpass_check_segsym()
1929 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_decode_cblk() local
1939 mqc->lut_ctxno_zc_orient = lut_ctxno_zc + (orient << 9); in opj_t1_decode_cblk()
1963 opj_mqc_resetstates(mqc); in opj_t1_decode_cblk()
1964 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_decode_cblk()
1965 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_decode_cblk()
1966 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_decode_cblk()
2023 opj_mqc_raw_init_dec(mqc, cblkdata + cblkdataindex, seg->len, in opj_t1_decode_cblk()
2026 opj_mqc_init_dec(mqc, cblkdata + cblkdataindex, seg->len, in opj_t1_decode_cblk()
2054 opj_mqc_resetstates(mqc); in opj_t1_decode_cblk()
2055 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_decode_cblk()
2056 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_decode_cblk()
2057 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_decode_cblk()
2065 opq_mqc_finish_dec(mqc); in opj_t1_decode_cblk()
2069 if (mqc->bp + 2 < mqc->end) { in opj_t1_decode_cblk()
2075 (int)(mqc->end - mqc->bp) - 2, in opj_t1_decode_cblk()
2076 (int)(mqc->bp - mqc->start), in opj_t1_decode_cblk()
2077 (int)(mqc->end - mqc->start)); in opj_t1_decode_cblk()
2081 } else if (mqc->end_of_byte_stream_counter > 2) { in opj_t1_decode_cblk()
2087 mqc->end_of_byte_stream_counter); in opj_t1_decode_cblk()
2261 opj_mqc_t *mqc = &(t1->mqc); /* MQC component */ in opj_t1_encode_cblk() local
2277 mqc->lut_ctxno_zc_orient = lut_ctxno_zc + (orient << 9); in opj_t1_encode_cblk()
2297 opj_mqc_resetstates(mqc); in opj_t1_encode_cblk()
2298 opj_mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); in opj_t1_encode_cblk()
2299 opj_mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); in opj_t1_encode_cblk()
2300 opj_mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); in opj_t1_encode_cblk()
2301 opj_mqc_init_enc(mqc, cblk->data); in opj_t1_encode_cblk()
2311 opj_mqc_bypass_init_enc(mqc); in opj_t1_encode_cblk()
2313 opj_mqc_restart_init_enc(mqc); in opj_t1_encode_cblk()
2328 opj_mqc_segmark_enc(mqc); in opj_t1_encode_cblk()
2343 opj_mqc_bypass_flush_enc(mqc, cblksty & J2K_CCP_CBLKSTY_PTERM); in opj_t1_encode_cblk()
2346 opj_mqc_erterm_enc(mqc); in opj_t1_encode_cblk()
2348 opj_mqc_flush(mqc); in opj_t1_encode_cblk()
2352 pass->rate = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()
2358 mqc, (cblksty & J2K_CCP_CBLKSTY_PTERM)); in opj_t1_encode_cblk()
2363 pass->rate = opj_mqc_numbytes(mqc) + rate_extra_bytes; in opj_t1_encode_cblk()
2373 opj_mqc_reset_enc(mqc); in opj_t1_encode_cblk()
2381 OPJ_UINT32 last_pass_rate = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()
2405 printf(" len=%d\n", (cblk->totalpasses) ? opj_mqc_numbytes(mqc) : 0); in opj_t1_encode_cblk()
2410 OPJ_UINT32 len = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()