FFmpeg
Macros | Functions
sbrdsp.c File Reference
#include "libavcodec/sbrdsp.h"
#include <float.h>
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize(buf, len)
 
#define EPS   0.0001
 

Functions

static void test_sum64x5 (void)
 
static void test_sum_square (void)
 
static void test_neg_odd_64 (void)
 
static void test_qmf_pre_shuffle (void)
 
static void test_qmf_post_shuffle (void)
 
static void test_qmf_deint_neg (void)
 
static void test_qmf_deint_bfly (void)
 
static void test_autocorrelate (void)
 
static void test_hf_gen (void)
 
static void test_hf_g_filt (void)
 
static void test_hf_apply_noise (const SBRDSPContext *sbrdsp)
 
void checkasm_check_sbrdsp (void)
 

Macro Definition Documentation

#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 24 of file sbrdsp.c.

Referenced by test_autocorrelate(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_sum64x5(), and test_sum_square().

#define EPS   0.0001

Function Documentation

static void test_sum64x5 ( void  )
static

Definition at line 34 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_sum_square ( void  )
static

Definition at line 50 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_neg_odd_64 ( void  )
static

Definition at line 67 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_pre_shuffle ( void  )
static

Definition at line 83 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_post_shuffle ( void  )
static

Definition at line 99 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_deint_neg ( void  )
static

Definition at line 115 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_deint_bfly ( void  )
static

Definition at line 131 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_autocorrelate ( void  )
static

Definition at line 152 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_gen ( void  )
static

Definition at line 171 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_g_filt ( void  )
static

Definition at line 199 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_apply_noise ( const SBRDSPContext sbrdsp)
static

Definition at line 219 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

void checkasm_check_sbrdsp ( void  )

Definition at line 252 of file sbrdsp.c.