MQ-coder.
More...
#include <stdint.h>
Go to the source code of this file.
|
|
#define | MQC_CX_UNI 17 |
| |
|
#define | MQC_CX_RL 18 |
| |
|
|
void | ff_mqc_initenc (MqcState *mqc, uint8_t *bp) |
| | initialize the encoder
|
| |
|
void | ff_mqc_encode (MqcState *mqc, uint8_t *cxstate, int d) |
| | code bit d with context cx
|
| |
|
int | ff_mqc_length (MqcState *mqc) |
| | number of encoded bytes
|
| |
|
int | ff_mqc_flush (MqcState *mqc) |
| | flush the encoder [returns number of bytes encoded]
|
| |
|
int | ff_mqc_flush_to (MqcState *mqc, uint8_t *dst, int *dst_len) |
| |
| void | ff_mqc_initdec (MqcState *mqc, uint8_t *bp, int raw, int reset) |
| | Initialize MQ-decoder. More...
|
| |
| int | ff_mqc_decode (MqcState *mqc, uint8_t *cxstate) |
| | MQ decoder. More...
|
| |
|
void | ff_mqc_init_context_tables (void) |
| | MQ-coder Initialize context tables (QE, NLPS, NMPS)
|
| |
| void | ff_mqc_init_contexts (MqcState *mqc) |
| | MQ-coder context initialisations. More...
|
| |
|
|
uint16_t | ff_mqc_qe [2 *47] |
| |
|
uint8_t | ff_mqc_nlps [2 *47] |
| |
|
uint8_t | ff_mqc_nmps [2 *47] |
| |
MQ-coder.
- Author
- Kamil Nowosad
§ ff_mqc_decode()
| int ff_mqc_decode |
( |
MqcState * |
mqc, |
|
|
uint8_t * |
cxstate |
|
) |
| |
MQ decoder.
- Parameters
-
- Returns
- Decision (0 to 1)
§ ff_mqc_init_contexts()
| void ff_mqc_init_contexts |
( |
MqcState * |
mqc | ) |
|
MQ-coder context initialisations.
- Parameters
-
§ ff_mqc_initdec()
| void ff_mqc_initdec |
( |
MqcState * |
mqc, |
|
|
uint8_t * |
bp, |
|
|
int |
raw, |
|
|
int |
reset |
|
) |
| |
Initialize MQ-decoder.
- Parameters
-
| mqc | MQ decoder state |
| bp | byte pointer |
| raw | raw mode |
| reset | reset states |