FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mqcdec.c File Reference

MQ-coder decoder. More...

#include "mqc.h"

Go to the source code of this file.

Functions

static void bytein (MqcState *mqc)
 
static int exchange (MqcState *mqc, uint8_t *cxstate, int lps)
 
void ff_mqc_initdec (MqcState *mqc, uint8_t *bp, int raw, int reset)
 Initialize MQ-decoder. More...
 
static int mqc_decode_bypass (MqcState *mqc)
 
int ff_mqc_decode (MqcState *mqc, uint8_t *cxstate)
 MQ decoder. More...
 

Detailed Description

MQ-coder decoder.

Author
Kamil Nowosad

Definition in file mqcdec.c.

Function Documentation

static void bytein ( MqcState mqc)
static

Definition at line 30 of file mqcdec.c.

Referenced by exchange(), ff_mqc_initdec(), and mqc_decode_bypass().

static int exchange ( MqcState mqc,
uint8_t cxstate,
int  lps 
)
static

Definition at line 45 of file mqcdec.c.

Referenced by ff_mqc_decode().

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

Initialize MQ-decoder.

Parameters
mqcMQ decoder state
bpbyte poiter
rawraw mode
resetreset states

Definition at line 71 of file mqcdec.c.

Referenced by decode_cblk().

static int mqc_decode_bypass ( MqcState mqc)
static

Definition at line 83 of file mqcdec.c.

Referenced by ff_mqc_decode().

int ff_mqc_decode ( MqcState mqc,
uint8_t cxstate 
)

MQ decoder.

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

Definition at line 93 of file mqcdec.c.

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