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

◆ 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 26 of file sbrdsp.c.

◆ EPS

#define EPS   0.0001

Definition at line 34 of file sbrdsp.c.

Function Documentation

◆ test_sum64x5()

static void test_sum64x5 ( void  )
static

Definition at line 36 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_sum_square()

static void test_sum_square ( void  )
static

Definition at line 52 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_neg_odd_64()

static void test_neg_odd_64 ( void  )
static

Definition at line 69 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_pre_shuffle()

static void test_qmf_pre_shuffle ( void  )
static

Definition at line 85 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_post_shuffle()

static void test_qmf_post_shuffle ( void  )
static

Definition at line 101 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_deint_neg()

static void test_qmf_deint_neg ( void  )
static

Definition at line 117 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_deint_bfly()

static void test_qmf_deint_bfly ( void  )
static

Definition at line 133 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_autocorrelate()

static void test_autocorrelate ( void  )
static

Definition at line 154 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_hf_gen()

static void test_hf_gen ( void  )
static

Definition at line 173 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_hf_g_filt()

static void test_hf_g_filt ( void  )
static

Definition at line 201 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_hf_apply_noise()

static void test_hf_apply_noise ( const SBRDSPContext sbrdsp)
static

Definition at line 221 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ checkasm_check_sbrdsp()

void checkasm_check_sbrdsp ( void  )

Definition at line 254 of file sbrdsp.c.

INTFLOAT
#define INTFLOAT
Definition: dct32_template.c:44
rnd
#define rnd()
Definition: checkasm.h:118
f
#define f(width, name)
Definition: cbs_vp9.c:255
i
int i
Definition: input.c:407
len
int len
Definition: vorbis_enc_data.h:426
INTFLOAT
float INTFLOAT
Definition: aac_defines.h:88