FFmpeg
Functions
apv_entropy.c File Reference
#include "apv.h"
#include "apv_decode.h"

Go to the source code of this file.

Functions

void ff_apv_entropy_build_decode_lut (APVVLCLUT *decode_lut)
 Build the decoder VLC look-up table. More...
 
static av_always_inline unsigned int apv_read_vlc (GetBitContext *gbc, int k_param, const APVVLCLUT *lut)
 
unsigned int ff_apv_read_vlc (GetBitContext *gbc, int k_param, const APVVLCLUT *lut)
 Read a single APV VLC code. More...
 
int ff_apv_entropy_decode_block (int16_t *coeff, GetBitContext *gbc, APVEntropyState *state)
 Entropy decode a single 8x8 block to coefficients. More...
 

Function Documentation

◆ ff_apv_entropy_build_decode_lut()

void ff_apv_entropy_build_decode_lut ( APVVLCLUT decode_lut)

Build the decoder VLC look-up table.

Definition at line 23 of file apv_entropy.c.

Referenced by apv_decode_init().

◆ apv_read_vlc()

static av_always_inline unsigned int apv_read_vlc ( GetBitContext gbc,
int  k_param,
const APVVLCLUT lut 
)
static

Definition at line 70 of file apv_entropy.c.

Referenced by ff_apv_entropy_decode_block(), and ff_apv_read_vlc().

◆ ff_apv_read_vlc()

unsigned int ff_apv_read_vlc ( GetBitContext gbc,
int  k_param,
const APVVLCLUT lut 
)

Read a single APV VLC code.

This entrypoint is exposed for testing.

Definition at line 98 of file apv_entropy.c.

◆ ff_apv_entropy_decode_block()

int ff_apv_entropy_decode_block ( int16_t *  coeff,
GetBitContext gbc,
APVEntropyState state 
)

Entropy decode a single 8x8 block to coefficients.

Outputs in block order (dezigzag already applied).

Definition at line 104 of file apv_entropy.c.

Referenced by apv_decode_block().