FFmpeg
Macros | Functions
aacpsdsp.c File Reference
#include "libavcodec/aacpsdsp.h"
#include "libavutil/intfloat.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

#define N   32

Definition at line 24 of file aacpsdsp.c.

Referenced by test_hybrid_analysis().

#define STRIDE   128

Definition at line 25 of file aacpsdsp.c.

Referenced by test_hybrid_analysis().

#define BUF_SIZE   (N * STRIDE)
#define randomize (   buf,
  len 
)
Value:
do { \
for (i = 0; i < len; i++) { \
const INTFLOAT f = (INTFLOAT)rnd() / UINT_MAX; \
(buf)[i] = f; \
} \
} while (0)
float INTFLOAT
Definition: aac_defines.h:86
#define f(width, name)
Definition: cbs_vp9.c:255
#define INTFLOAT
int
#define rnd()
Definition: checkasm.h:107
int len
for(j=16;j >0;--j)
int i
Definition: input.c:407

Definition at line 28 of file aacpsdsp.c.

Referenced by test_add_squares(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), and test_stereo_interpolate().

#define EPS   0.005

Function Documentation

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

Definition at line 38 of file aacpsdsp.c.

Referenced by test_stereo_interpolate().

static void test_add_squares ( void  )
static

Definition at line 48 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

static void test_mul_pair_single ( void  )
static

Definition at line 67 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

static void test_hybrid_analysis ( void  )
static

Definition at line 86 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

static void test_hybrid_analysis_ileave ( void  )
static

Definition at line 111 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

static void test_hybrid_synthesis_deint ( void  )
static

Definition at line 148 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

static void test_stereo_interpolate ( PSDSPContext psdsp)
static

Definition at line 185 of file aacpsdsp.c.

Referenced by checkasm_check_aacpsdsp().

void checkasm_check_aacpsdsp ( void  )

Definition at line 233 of file aacpsdsp.c.