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));
75 mqc->
c = (*mqc->
bp ^ 0xff) << 16;
84 if ((mqc->
c >> 16) < mqc->
a){
90 mqc->
c -= mqc->
a << 16;
void ff_mqc_init_contexts(MqcState *mqc)
initialize the contexts
static void bytein(MqcState *mqc)
int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate)
returns decoded bit with context cx
uint16_t ff_mqc_qe[2 *47]
uint8_t ff_mqc_nlps[2 *47]
uint8_t ff_mqc_nmps[2 *47]
void ff_mqc_initdec(MqcState *mqc, uint8_t *bp)
initialize the decoder
static int exchange(MqcState *mqc, uint8_t *cxstate, int lps)