FFmpeg
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Functions
apv_decode.h File Reference
#include <stdint.h>
#include "apv.h"
#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  APVSingleVLCLUTEntry
 
struct  APVMultiVLCLUTEntry
 
struct  APVVLCLUT
 
struct  APVEntropyState
 

Macros

#define APV_VLC_LUT_BITS   9
 
#define APV_VLC_LUT_SIZE   (1 << APV_VLC_LUT_BITS)
 

Functions

void ff_apv_entropy_build_decode_lut (APVVLCLUT *decode_lut)
 Build the decoder VLC look-up tables. More...
 
int ff_apv_entropy_decode_block (int16_t *restrict coeff, GetBitContext *restrict gbc, APVEntropyState *restrict state)
 Entropy decode a single 8x8 block to coefficients. More...
 

Macro Definition Documentation

◆ APV_VLC_LUT_BITS

#define APV_VLC_LUT_BITS   9

Definition at line 33 of file apv_decode.h.

◆ APV_VLC_LUT_SIZE

#define APV_VLC_LUT_SIZE   (1 << APV_VLC_LUT_BITS)

Definition at line 34 of file apv_decode.h.

Function Documentation

◆ ff_apv_entropy_build_decode_lut()

void ff_apv_entropy_build_decode_lut ( APVVLCLUT decode_lut)

Build the decoder VLC look-up tables.

Definition at line 62 of file apv_entropy.c.

Referenced by apv_entropy_build_decode_lut(), test_apv_entropy_decode_block(), and test_apv_read_vlc().

◆ ff_apv_entropy_decode_block()

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

Entropy decode a single 8x8 block to coefficients.

Outputs nonzero coefficients only to the block row-major order (dezigzag is applied within the function). The output block must have been filled with zeroes before calling this function.

Definition at line 208 of file apv_entropy.c.

Referenced by apv_decode_block(), and test_apv_entropy_decode_block().