FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mqc.h File Reference

MQ-coder. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MqcState
 

Macros

#define MQC_CX_UNI   17
 
#define MQC_CX_RL   18
 

Functions

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]
 
void ff_mqc_initdec (MqcState *mqc, uint8_t *bp)
 Initialize MQ-decoder.
 
int ff_mqc_decode (MqcState *mqc, uint8_t *cxstate)
 MQ decoder.
 
void ff_mqc_init_contexts (MqcState *mqc)
 MQ-coder context initialisations.
 

Variables

uint16_t ff_mqc_qe [2 *47]
 
uint8_t ff_mqc_nlps [2 *47]
 
uint8_t ff_mqc_nmps [2 *47]
 

Detailed Description

MQ-coder.

Author
Kamil Nowosad

Definition in file mqc.h.

Macro Definition Documentation

#define MQC_CX_UNI   17

Definition at line 33 of file mqc.h.

Referenced by decode_clnpass(), encode_clnpass(), and ff_mqc_init_contexts().

#define MQC_CX_RL   18

Definition at line 34 of file mqc.h.

Referenced by decode_clnpass(), encode_clnpass(), and ff_mqc_init_contexts().

Function Documentation

void ff_mqc_initenc ( MqcState mqc,
uint8_t bp 
)

initialize the encoder

Definition at line 68 of file mqcenc.c.

Referenced by encode_cblk().

void ff_mqc_encode ( MqcState mqc,
uint8_t cxstate,
int  d 
)

code bit d with context cx

Definition at line 78 of file mqcenc.c.

Referenced by encode_clnpass(), encode_refpass(), and encode_sigpass().

int ff_mqc_length ( MqcState mqc)

number of encoded bytes

Definition at line 104 of file mqcenc.c.

Referenced by encode_cblk().

int ff_mqc_flush ( MqcState mqc)

flush the encoder [returns number of bytes encoded]

Definition at line 109 of file mqcenc.c.

Referenced by encode_cblk().

void ff_mqc_initdec ( MqcState mqc,
uint8_t bp 
)

Initialize MQ-decoder.

Parameters
mqcMQ decoder state
bpbyte poiter

Definition at line 71 of file mqcdec.c.

Referenced by decode_cblk().

int ff_mqc_decode ( MqcState mqc,
uint8_t cxstate 
)

MQ decoder.

Parameters
mqcMQ decoder state
cxstateContext
Returns
Decision (0 ot 1)

Definition at line 81 of file mqcdec.c.

Referenced by decode_clnpass(), decode_refpass(), and decode_sigpass().

void ff_mqc_init_contexts ( MqcState mqc)

MQ-coder context initialisations.

Parameters
mqcMQ-coder context

Definition at line 95 of file mqc.c.

Referenced by ff_mqc_initdec(), and ff_mqc_initenc().

Variable Documentation

uint16_t ff_mqc_qe[2 *47]

Definition at line 91 of file mqc.c.

Referenced by exchange(), ff_mqc_decode(), ff_mqc_encode(), and ff_mqc_init_contexts().

uint8_t ff_mqc_nlps[2 *47]

Definition at line 92 of file mqc.c.

Referenced by exchange(), ff_mqc_encode(), and ff_mqc_init_contexts().

uint8_t ff_mqc_nmps[2 *47]

Definition at line 93 of file mqc.c.

Referenced by exchange(), ff_mqc_encode(), and ff_mqc_init_contexts().