|
OpenJPEG
2.3.1
|
Go to the source code of this file.
Macros | |
| #define | opj_mqc_mpsexchange_macro(d, curctx, a) |
| #define | opj_mqc_lpsexchange_macro(d, curctx, a) |
| #define | opj_mqc_bytein_macro(mqc, c, ct) |
| #define | opj_mqc_renormd_macro(mqc, a, c, ct) |
| #define | opj_mqc_decode_macro(d, mqc, curctx, a, c, ct) |
| #define | DOWNLOAD_MQC_VARIABLES(mqc, curctx, a, c, ct) |
| #define | UPLOAD_MQC_VARIABLES(mqc, curctx, a, c, ct) |
| #define | opj_mqc_renormd(mqc) opj_mqc_renormd_macro(mqc, mqc->a, mqc->c, mqc->ct) |
| Renormalize mqc->a and mqc->c while decoding. More... | |
| #define | opj_mqc_decode(d, mqc) opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct) |
| Decode a symbol. More... | |
| #define | opj_mqc_renorme_macro(mqc, a_, c_, ct_) |
| Renormalize mqc->a and mqc->c while encoding, so that mqc->a stays between 0x8000 and 0x10000. More... | |
| #define | opj_mqc_codemps_macro(mqc, curctx, a, c, ct) |
| #define | opj_mqc_codelps_macro(mqc, curctx, a, c, ct) |
| #define | opj_mqc_encode_macro(mqc, curctx, a, c, ct, d) |
| #define | opj_mqc_bypass_enc_macro(mqc, c, ct, d) |
Functions | |
| static INLINE OPJ_UINT32 | opj_mqc_raw_decode (opj_mqc_t *mqc) |
| Decode a symbol using raw-decoder. More... | |
| static INLINE void | opj_mqc_bytein (opj_mqc_t *const mqc) |
| Input a byte. More... | |
| void | opj_mqc_byteout (opj_mqc_t *mqc) |
| Output a byte, doing bit-stuffing if necessary. More... | |
| #define DOWNLOAD_MQC_VARIABLES | ( | mqc, | |
| curctx, | |||
| a, | |||
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_bypass_enc_macro | ( | mqc, | |
| c, | |||
| ct, | |||
| d | |||
| ) |
| #define opj_mqc_bytein_macro | ( | mqc, | |
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_codelps_macro | ( | mqc, | |
| curctx, | |||
| a, | |||
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_codemps_macro | ( | mqc, | |
| curctx, | |||
| a, | |||
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_decode | ( | d, | |
| mqc | |||
| ) | opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct) |
Decode a symbol.
| d | OPJ_UINT32 value where to store the decoded symbol |
| mqc | MQC handle |
| #define opj_mqc_decode_macro | ( | d, | |
| mqc, | |||
| curctx, | |||
| a, | |||
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_encode_macro | ( | mqc, | |
| curctx, | |||
| a, | |||
| c, | |||
| ct, | |||
| d | |||
| ) |
| #define opj_mqc_lpsexchange_macro | ( | d, | |
| curctx, | |||
| a | |||
| ) |
| #define opj_mqc_mpsexchange_macro | ( | d, | |
| curctx, | |||
| a | |||
| ) |
| #define opj_mqc_renormd | ( | mqc | ) | opj_mqc_renormd_macro(mqc, mqc->a, mqc->c, mqc->ct) |
Renormalize mqc->a and mqc->c while decoding.
| mqc | MQC handle |
| #define opj_mqc_renormd_macro | ( | mqc, | |
| a, | |||
| c, | |||
| ct | |||
| ) |
| #define opj_mqc_renorme_macro | ( | mqc, | |
| a_, | |||
| c_, | |||
| ct_ | |||
| ) |
Renormalize mqc->a and mqc->c while encoding, so that mqc->a stays between 0x8000 and 0x10000.
| mqc | MQC handle |
| a_ | value of mqc->a |
| c_ | value of mqc->c_ |
| ct_ | value of mqc->ct_ |
| #define UPLOAD_MQC_VARIABLES | ( | mqc, | |
| curctx, | |||
| a, | |||
| c, | |||
| ct | |||
| ) |
Input a byte.
| mqc | MQC handle |
References opj_mqc::c, opj_mqc::ct, and opj_mqc_bytein_macro.
Referenced by opj_mqc_init_dec().
| void opj_mqc_byteout | ( | opj_mqc_t * | mqc | ) |
Output a byte, doing bit-stuffing if necessary.
After a 0xff byte, the next byte must be smaller than 0x90.
| mqc | MQC handle |
References opj_mqc::bp, opj_mqc::c, opj_mqc::ct, and opj_mqc::start.
Referenced by opj_mqc_erterm_enc(), and opj_mqc_flush().
|
static |
Decode a symbol using raw-decoder.
Cfr p.506 TAUBMAN
| mqc | MQC handle |
References opj_mqc::bp, opj_mqc::c, and opj_mqc::ct.
Referenced by opj_t1_dec_refpass_step_raw(), and opj_t1_dec_sigpass_step_raw().