FFmpeg
Functions
mqcenc.c File Reference

MQ-coder encoder. More...

#include "libavutil/avassert.h"
#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 More...
 
void ff_mqc_encode (MqcState *mqc, uint8_t *cxstate, int d)
 code bit d with context cx More...
 
static int mqc_flush (MqcState *mqc)
 
int ff_mqc_flush_to (MqcState *mqc, uint8_t *dst, int *dst_len)
 flush the encoder [returns number of bytes encoded] More...
 

Detailed Description

MQ-coder encoder.

Author
Kamil Nowosad

Definition in file mqcenc.c.

Function Documentation

◆ byteout()

static void byteout ( MqcState mqc)
static

Definition at line 31 of file mqcenc.c.

Referenced by mqc_flush(), and renorme().

◆ renorme()

static void renorme ( MqcState mqc)
static

Definition at line 51 of file mqcenc.c.

Referenced by ff_mqc_encode().

◆ setbits()

static void setbits ( MqcState mqc)
static

Definition at line 61 of file mqcenc.c.

Referenced by mqc_flush().

◆ ff_mqc_initenc()

void ff_mqc_initenc ( MqcState mqc,
uint8_t *  bp 
)

initialize the encoder

Definition at line 69 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 79 of file mqcenc.c.

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

◆ mqc_flush()

static int mqc_flush ( MqcState mqc)
static

Definition at line 105 of file mqcenc.c.

Referenced by ff_mqc_flush_to().

◆ 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 117 of file mqcenc.c.

Referenced by encode_cblk().