Go to the documentation of this file.
32 if (*mqc->
bp == 0xff) {
33 if (*(mqc->
bp + 1) > 0x8f)
37 mqc->
c += 2 + 0xfe00 - (*mqc->
bp << 9);
41 mqc->
c += 1 + 0xff00 - (*mqc->
bp << 8);
56 d = 1 - (*cxstate & 1);
61 if (!(mqc->
c & 0xff)) {
67 }
while (!(mqc->
a & 0x8000));
77 mqc->
c = (*mqc->
bp ^ 0xff) << 16;
84 int bit = !(mqc->
c & 0x40000000);
85 if (!(mqc->
c & 0xff)) {
98 if ((mqc->
c >> 16) < mqc->
a) {
104 mqc->
c -= mqc->
a << 16;
static int exchange(MqcState *mqc, uint8_t *cxstate, int lps)
#define bit(string, value)
uint8_t ff_mqc_nlps[2 *47]
uint16_t ff_mqc_qe[2 *47]
static int mqc_decode_bypass(MqcState *mqc)
static void bytein(MqcState *mqc)
void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
Initialize MQ-decoder.
uint8_t ff_mqc_nmps[2 *47]
void ff_mqc_init_contexts(MqcState *mqc)
MQ-coder context initialisations.
int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate)
MQ decoder.