FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sbrdsp.c File Reference
#include "libavcodec/sbrdsp.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 { \
int i; \
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 INTFLOAT
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:100
int len
for(j=16;j >0;--j)

Definition at line 23 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 33 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_sum_square ( void  )
static

Definition at line 49 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_neg_odd_64 ( void  )
static

Definition at line 65 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_pre_shuffle ( void  )
static

Definition at line 81 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_post_shuffle ( void  )
static

Definition at line 97 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_deint_neg ( void  )
static

Definition at line 113 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_qmf_deint_bfly ( void  )
static

Definition at line 129 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_autocorrelate ( void  )
static

Definition at line 150 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_gen ( void  )
static

Definition at line 169 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_g_filt ( void  )
static

Definition at line 197 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

static void test_hf_apply_noise ( const SBRDSPContext sbrdsp)
static

Definition at line 217 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

void checkasm_check_sbrdsp ( void  )

Definition at line 250 of file sbrdsp.c.