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

MQ-coder encoder. More...

#include "mqc.h"

Go to the source code of this file.

Functions

static void byteout (MqcState *mqc)
 
static void renorme (MqcState *mqc)
 
static void setbits (MqcState *mqc)
 
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]
 

Detailed Description

MQ-coder encoder.

Author
Kamil Nowosad

Definition in file mqcenc.c.

Function Documentation

static void byteout ( MqcState mqc)
static

Definition at line 30 of file mqcenc.c.

Referenced by ff_mqc_flush(), and renorme().

static void renorme ( MqcState mqc)
static

Definition at line 50 of file mqcenc.c.

Referenced by ff_mqc_encode().

static void setbits ( MqcState mqc)
static

Definition at line 60 of file mqcenc.c.

Referenced by ff_mqc_flush().

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().