FFmpeg
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
apv_entropy.c File Reference
#include "apv.h"
#include "apv_decode.h"
#include "put_bits.h"

Go to the source code of this file.

Functions

static av_always_inline unsigned int apv_read_vlc (GetBitContext *restrict gbc, int k_param, const APVVLCLUT *restrict lut)
 
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...
 

Function Documentation

◆ apv_read_vlc()

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

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