FFmpeg
Loading...
Searching...
No Matches
apv_dsp.c File Reference
#include <stdint.h>
#include <string.h>
#include "checkasm.h"
#include "libavutil/common.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/apv_dsp.h"

Go to the source code of this file.

Functions

static void generate_block (int16_t *input, const int16_t *qmatrix, int bit_depth, int qp_shift, int dense)
 
static void check_decode_transquant (const APVDSPContext *dsp, int bit_depth)
 
void checkasm_check_apv_dsp (void)
 

Variables

static const int8_t apv_trans_matrix [8][8]
 
static const uint8_t apv_level_scale [6] = { 40, 45, 51, 57, 64, 71 }
 

Function Documentation

◆ generate_block()

static void generate_block ( int16_t * input,
const int16_t * qmatrix,
int bit_depth,
int qp_shift,
int dense )
static

Definition at line 46 of file apv_dsp.c.

Referenced by check_decode_transquant().

◆ check_decode_transquant()

static void check_decode_transquant ( const APVDSPContext * dsp,
int bit_depth )
static

Definition at line 108 of file apv_dsp.c.

Referenced by checkasm_check_apv_dsp().

◆ checkasm_check_apv_dsp()

void checkasm_check_apv_dsp ( void )

Definition at line 176 of file apv_dsp.c.

Variable Documentation

◆ apv_trans_matrix

const int8_t apv_trans_matrix[8][8]
static
Initial value:
= {
{ 64, 64, 64, 64, 64, 64, 64, 64 },
{ 89, 75, 50, 18, -18, -50, -75, -89 },
{ 84, 35, -35, -84, -84, -35, 35, 84 },
{ 75, -18, -89, -50, 50, 89, 18, -75 },
{ 64, -64, -64, 64, 64, -64, -64, 64 },
{ 50, -89, 18, 75, -75, -18, 89, -50 },
{ 35, -84, 84, -35, -35, 84, -84, 35 },
{ 18, -50, 75, -89, 89, -75, 50, -18 },
}

Definition at line 28 of file apv_dsp.c.

◆ apv_level_scale

const uint8_t apv_level_scale[6] = { 40, 45, 51, 57, 64, 71 }
static

Definition at line 39 of file apv_dsp.c.