void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset)
Initialize MQ-decoder.
void ff_mqc_init_contexts(MqcState *mqc)
MQ-coder context initialisations.
void ff_mqc_initenc(MqcState *mqc, uint8_t *bp)
initialize the encoder
uint16_t ff_mqc_qe[2 *47]
int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate)
MQ decoder.
int ff_mqc_flush(MqcState *mqc)
flush the encoder [returns number of bytes encoded]
uint8_t ff_mqc_nlps[2 *47]
int ff_mqc_length(MqcState *mqc)
number of encoded bytes
int ff_mqc_flush_to(MqcState *mqc, uint8_t *dst, int *dst_len)
void ff_mqc_init_context_tables(void)
MQ-coder Initialize context tables (QE, NLPS, NMPS)
uint8_t ff_mqc_nmps[2 *47]
void ff_mqc_encode(MqcState *mqc, uint8_t *cxstate, int d)
code bit d with context cx