mqcenc.c File Reference

MQ-coder encoder. More...

#include "mqc.h"
Include dependency graph for mqcenc.c:

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 More...
 
void ff_mqc_encode (MqcState *mqc, uint8_t *cxstate, int d)
 code bit d with context cx More...
 
int ff_mqc_length (MqcState *mqc)
 number of encoded bytes More...
 
int ff_mqc_flush (MqcState *mqc)
 flush the encoder [returns number of bytes encoded] More...
 

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

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_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_initenc ( MqcState mqc,
uint8_t bp 
)

initialize the encoder

Definition at line 68 of file mqcenc.c.

Referenced by encode_cblk().

int ff_mqc_length ( MqcState mqc)

number of encoded bytes

Definition at line 104 of file mqcenc.c.

Referenced by encode_cblk().

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