FFmpeg
Loading...
Searching...
No Matches
mqcenc.c File Reference

MQ-coder encoder. More...

#include <string.h>
#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
 
void ff_mqc_encode (MqcState *mqc, uint8_t *cxstate, int d)
 code bit d with context cx
 
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]
 

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

Referenced by mqc_flush(), and renorme().

◆ renorme()

static void renorme ( MqcState * mqc)
static

Definition at line 53 of file mqcenc.c.

Referenced by ff_mqc_encode().

◆ setbits()

static void setbits ( MqcState * mqc)
static

Definition at line 63 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 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().

◆ mqc_flush()

static int mqc_flush ( MqcState * mqc)
static

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

Referenced by encode_cblk().