FFmpeg
Loading...
Searching...
No Matches
apv_decode.h File Reference
#include <assert.h>
#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)
 
#define APV_TABLE_INDEX(type, k_run, k_level)
 
#define APV_ENTROPY_COEFF_SIZE   65
 

Enumerations

enum  { APV_ENTROPY_RUN_FIRST = 0 , APV_ENTROPY_LEVEL_FIRST = 1 }
 

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)

◆ APV_TABLE_INDEX

#define APV_TABLE_INDEX ( type,
k_run,
k_level )
Value:
(((type) * 3 + (k_run)) * 5 + (k_level))
enum MPFType type
Definition jpegmpfenc.c:55

Definition at line 89 of file apv_decode.h.

Referenced by apv_entropy_decode_block_internal(), and ff_apv_entropy_build_decode_lut().

◆ APV_ENTROPY_COEFF_SIZE

#define APV_ENTROPY_COEFF_SIZE   65

Definition at line 110 of file apv_decode.h.

Referenced by apv_decode_block(), and test_apv_entropy_decode_block().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
APV_ENTROPY_RUN_FIRST 
APV_ENTROPY_LEVEL_FIRST 

Definition at line 81 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 first 64 elements of the output block must have been filled with zeroes before calling this function, and there must be space for APV_ENTROPY_COEFF_SIZE elements in total.

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