FFmpeg
Loading...
Searching...
No Matches
apv_decode.h File Reference
#include <stdint.h>
#include <stdatomic.h>
#include "apv.h"
#include "apv_dsp.h"
#include "cbs_apv.h"
#include "cbs.h"
#include "get_bits.h"
#include "libavutil/frame.h"

Go to the source code of this file.

Data Structures

struct  APVSingleVLCLUTEntry
 
struct  APVMultiVLCLUTEntry
 
struct  APVVLCLUT
 
struct  APVEntropyState
 
struct  APVDerivedTileInfo
 
struct  APVDecodeContext
 

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.
 
int ff_apv_entropy_decode_block (int16_t *restrict coeff, GetBitContext *restrict gbc, APVEntropyState *restrict state)
 Entropy decode a single 8x8 block to coefficients.
 

Variables

APVVLCLUT ff_apv_decode_lut
 

Macro Definition Documentation

◆ APV_VLC_LUT_BITS

#define APV_VLC_LUT_BITS   9

◆ APV_VLC_LUT_SIZE

#define APV_VLC_LUT_SIZE   (1 << APV_VLC_LUT_BITS)

Definition at line 38 of file apv_decode.h.

Referenced by ff_apv_entropy_build_decode_lut().

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

Variable Documentation

◆ ff_apv_decode_lut

APVVLCLUT ff_apv_decode_lut
extern

Definition at line 48 of file apv_decode.c.

Referenced by apv_decode_tile_component(), and apv_entropy_build_decode_lut().