FFmpeg
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 More...
 
void ff_mqc_encode (MqcState *mqc, uint8_t *cxstate, int d)
 code bit d with context cx More...
 
int ff_mqc_flush_to (MqcState *mqc, uint8_t *dst, int *dst_len)
 flush the encoder [returns number of bytes encoded] More...
 
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_contexts (MqcState *mqc)
 MQ-coder context initialisations. More...
 

Variables

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

Detailed Description

MQ-coder.

Author
Kamil Nowosad

Definition in file mqc.h.

Macro Definition Documentation

◆ MQC_CX_UNI

#define MQC_CX_UNI   17

Definition at line 33 of file mqc.h.

◆ MQC_CX_RL

#define MQC_CX_RL   18

Definition at line 34 of file mqc.h.

Function Documentation

◆ ff_mqc_initenc()

void ff_mqc_initenc ( MqcState mqc,
uint8_t *  bp 
)

initialize the encoder

Definition at line 71 of file mqcenc.c.

Referenced by encode_cblk().

◆ ff_mqc_encode()

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

code bit d with context cx

Definition at line 81 of file mqcenc.c.

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

◆ ff_mqc_flush_to()

int ff_mqc_flush_to ( MqcState mqc,
uint8_t *  dst,
int dst_len 
)

flush the encoder [returns number of bytes encoded]

Definition at line 119 of file mqcenc.c.

Referenced by encode_cblk().

◆ ff_mqc_initdec()

void ff_mqc_initdec ( MqcState mqc,
uint8_t *  bp,
int  raw,
int  reset 
)

Initialize MQ-decoder.

Parameters
mqcMQ decoder state
bpbyte pointer
rawraw mode
resetreset states

Definition at line 71 of file mqcdec.c.

Referenced by decode_cblk().

◆ ff_mqc_decode()

int ff_mqc_decode ( MqcState mqc,
uint8_t *  cxstate 
)

MQ decoder.

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

Definition at line 93 of file mqcdec.c.

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

◆ ff_mqc_init_contexts()

void ff_mqc_init_contexts ( MqcState mqc)

MQ-coder context initialisations.

Parameters
mqcMQ-coder context

Definition at line 64 of file mqc.c.

Referenced by decode_cblk(), ff_mqc_initdec(), and ff_mqc_initenc().

Variable Documentation

◆ ff_mqc_qe

const uint16_t ff_mqc_qe[2 *47]

Definition at line 33 of file mqc.c.

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

◆ ff_mqc_nlps

const uint8_t ff_mqc_nlps[2 *47]

Definition at line 47 of file mqc.c.

Referenced by exchange(), and ff_mqc_encode().

◆ ff_mqc_nmps

const uint8_t ff_mqc_nmps[2 *47]

Definition at line 55 of file mqc.c.

Referenced by exchange(), and ff_mqc_encode().