FFmpeg
Macros | Functions
aacpsdsp.c File Reference
#include "libavcodec/aacpsdsp.h"
#include "libavutil/intfloat.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define N   32
 
#define STRIDE   128
 
#define BUF_SIZE   (N * STRIDE)
 
#define randomize(buf, len)
 
#define EPS   0.005
 

Functions

static void clear_less_significant_bits (INTFLOAT *buf, int len, int bits)
 
static void test_add_squares (void)
 
static void test_mul_pair_single (void)
 
static void test_hybrid_analysis (void)
 
static void test_hybrid_analysis_ileave (void)
 
static void test_hybrid_synthesis_deint (void)
 
static void test_stereo_interpolate (PSDSPContext *psdsp)
 
void checkasm_check_aacpsdsp (void)
 

Macro Definition Documentation

◆ N

#define N   32

Definition at line 25 of file aacpsdsp.c.

◆ STRIDE

#define STRIDE   128

Definition at line 26 of file aacpsdsp.c.

◆ BUF_SIZE

#define BUF_SIZE   (N * STRIDE)

Definition at line 27 of file aacpsdsp.c.

◆ randomize

#define randomize (   buf,
  len 
)
Value:
do { \
int i; \
for (i = 0; i < len; i++) { \
const INTFLOAT f = (INTFLOAT)rnd() / UINT_MAX; \
(buf)[i] = f; \
} \
} while (0)

Definition at line 29 of file aacpsdsp.c.

◆ EPS

#define EPS   0.005

Definition at line 37 of file aacpsdsp.c.

Function Documentation

◆ clear_less_significant_bits()

static void clear_less_significant_bits ( INTFLOAT buf,
int  len,
int  bits 
)
static

Definition at line 39 of file aacpsdsp.c.

Referenced by test_stereo_interpolate().

◆ test_add_squares()

static void test_add_squares ( void  )
static

Definition at line 49 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ test_mul_pair_single()

static void test_mul_pair_single ( void  )
static

Definition at line 68 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ test_hybrid_analysis()

static void test_hybrid_analysis ( void  )
static

Definition at line 87 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ test_hybrid_analysis_ileave()

static void test_hybrid_analysis_ileave ( void  )
static

Definition at line 112 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ test_hybrid_synthesis_deint()

static void test_hybrid_synthesis_deint ( void  )
static

Definition at line 149 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ test_stereo_interpolate()

static void test_stereo_interpolate ( PSDSPContext psdsp)
static

Definition at line 186 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

◆ checkasm_check_aacpsdsp()

void checkasm_check_aacpsdsp ( void  )

Definition at line 234 of file aacpsdsp.c.

INTFLOAT
#define INTFLOAT
Definition: dct32_template.c:44
rnd
#define rnd()
Definition: checkasm.h:122
f
f
Definition: af_crystalizer.c:121
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:255
len
int len
Definition: vorbis_enc_data.h:426
INTFLOAT
float INTFLOAT
Definition: aac_defines.h:82