Go to the source code of this file.
|
#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, c, a, ct) |
|
#define | UPLOAD_MQC_VARIABLES(mqc, curctx, c, a, 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 DOWNLOAD_MQC_VARIABLES |
( |
|
mqc, |
|
|
|
curctx, |
|
|
|
c, |
|
|
|
a, |
|
|
|
ct |
|
) |
| |
Value:
This struct defines the state of a context.
Definition: mqc.h:58
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
#define opj_mqc_bytein_macro |
( |
|
mqc, |
|
|
|
c, |
|
|
|
ct |
|
) |
| |
Value:
\
\
l_c = *(mqc->bp + 1); \
if (*mqc->bp == 0xff) { \
if (l_c > 0x8f) { \
c += 0xff00; \
ct = 8; \
mqc->end_of_byte_stream_counter ++; \
} else { \
mqc->bp++; \
c += l_c << 9; \
ct = 7; \
} \
} else { \
mqc->bp++; \
c += l_c << 8; \
ct = 8; \
} \
}
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
Referenced by opj_mqc_bytein().
#define opj_mqc_decode |
( |
|
d, |
|
|
|
mqc |
|
) |
| opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct) |
Decode a symbol.
- Parameters
-
d | OPJ_UINT32 value where to store the decoded symbol |
mqc | MQC handle |
- Returns
- Returns the decoded symbol (0 or 1) in d
Referenced by opj_t1_dec_clnpass_check_segsym().
#define opj_mqc_decode_macro |
( |
|
d, |
|
|
|
mqc, |
|
|
|
curctx, |
|
|
|
a, |
|
|
|
c, |
|
|
|
ct |
|
) |
| |
Value:{ \
\
\
\
\
a -= (*curctx)->qeval; \
if ((c >> 16) < (*curctx)->qeval) {
\
} else { \
c -= (*curctx)->qeval << 16; \
if ((a & 0x8000) == 0) {
\
} else { \
d = (*curctx)->mps; \
} \
} \
}
#define opj_mqc_renormd_macro(mqc, a, c, ct)
Definition: mqc_inl.h:126
#define opj_mqc_lpsexchange_macro(d, curctx, a)
Definition: mqc_inl.h:55
#define opj_mqc_mpsexchange_macro(d, curctx, a)
Definition: mqc_inl.h:43
#define opj_mqc_lpsexchange_macro |
( |
|
d, |
|
|
|
curctx, |
|
|
|
a |
|
) |
| |
Value:{ \
if (a < (*curctx)->qeval) { \
a = (*curctx)->qeval; \
d = (*curctx)->mps; \
*curctx = (*curctx)->nmps; \
} else { \
a = (*curctx)->qeval; \
d = !((*curctx)->mps); \
*curctx = (*curctx)->nlps; \
} \
}
#define opj_mqc_mpsexchange_macro |
( |
|
d, |
|
|
|
curctx, |
|
|
|
a |
|
) |
| |
Value:{ \
if (a < (*curctx)->qeval) { \
d = !((*curctx)->mps); \
*curctx = (*curctx)->nlps; \
} else { \
d = (*curctx)->mps; \
*curctx = (*curctx)->nmps; \
} \
}
Renormalize mqc->a and mqc->c while decoding.
- Parameters
-
#define opj_mqc_renormd_macro |
( |
|
mqc, |
|
|
|
a, |
|
|
|
c, |
|
|
|
ct |
|
) |
| |
Value:{ \
do { \
} \
a <<= 1; \
c <<= 1; \
ct--; \
} while (a < 0x8000); \
}
#define opj_mqc_bytein_macro(mqc, c, ct)
Definition: mqc_inl.h:102
#define UPLOAD_MQC_VARIABLES |
( |
|
mqc, |
|
|
|
curctx, |
|
|
|
c, |
|
|
|
a, |
|
|
|
ct |
|
) |
| |
Value:mqc->curctx = curctx; \
mqc->c = c; \
mqc->a = a; \
mqc->ct = ct;