Lines Matching refs:mqc
71 @param mqc MQC handle
74 static INLINE OPJ_UINT32 opj_mqc_raw_decode(opj_mqc_t *mqc)
77 if (mqc->ct == 0) {
80 if (mqc->c == 0xff) {
81 if (*mqc->bp > 0x8f) {
82 mqc->c = 0xff;
83 mqc->ct = 8;
85 mqc->c = *mqc->bp;
86 mqc->bp ++;
87 mqc->ct = 7;
90 mqc->c = *mqc->bp;
91 mqc->bp ++;
92 mqc->ct = 8;
95 mqc->ct--;
96 d = ((OPJ_UINT32)mqc->c >> mqc->ct) & 0x01U;
102 #define opj_mqc_bytein_macro(mqc, c, ct) \
107 l_c = *(mqc->bp + 1); \
108 if (*mqc->bp == 0xff) { \
112 mqc->end_of_byte_stream_counter ++; \
114 mqc->bp++; \
119 mqc->bp++; \
126 #define opj_mqc_renormd_macro(mqc, a, c, ct) \
130 opj_mqc_bytein_macro(mqc, c, ct); \
138 #define opj_mqc_decode_macro(d, mqc, curctx, a, c, ct) \
147 opj_mqc_renormd_macro(mqc, a, c, ct); \
152 opj_mqc_renormd_macro(mqc, a, c, ct); \
159 #define DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct) \
160 register const opj_mqc_state_t **curctx = mqc->curctx; \
161 register OPJ_UINT32 c = mqc->c; \
162 register OPJ_UINT32 a = mqc->a; \
163 register OPJ_UINT32 ct = mqc->ct
165 #define UPLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct) \
166 mqc->curctx = curctx; \
167 mqc->c = c; \
168 mqc->a = a; \
169 mqc->ct = ct;
173 @param mqc MQC handle
175 static INLINE void opj_mqc_bytein(opj_mqc_t *const mqc)
177 opj_mqc_bytein_macro(mqc, mqc->c, mqc->ct);
181 Renormalize mqc->a and mqc->c while decoding
182 @param mqc MQC handle
184 #define opj_mqc_renormd(mqc) \
185 opj_mqc_renormd_macro(mqc, mqc->a, mqc->c, mqc->ct)
190 @param mqc MQC handle
193 #define opj_mqc_decode(d, mqc) \
194 opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct)