FFmpeg
Loading...
Searching...
No Matches
sbrdsp.c File Reference
#include <string.h>
#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)
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define f(width, name)
Definition cbs_vp8.c:236
#define rnd
Definition checkasm.h:136
#define INTFLOAT
int len

Definition at line 28 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().

◆ EPS

#define EPS   0.0001

Definition at line 36 of file sbrdsp.c.

Function Documentation

◆ test_sum64x5()

static void test_sum64x5 ( void )
static

Definition at line 38 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_sum_square()

static void test_sum_square ( void )
static

Definition at line 54 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_neg_odd_64()

static void test_neg_odd_64 ( void )
static

Definition at line 71 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_pre_shuffle()

static void test_qmf_pre_shuffle ( void )
static

Definition at line 87 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_post_shuffle()

static void test_qmf_post_shuffle ( void )
static

Definition at line 103 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_deint_neg()

static void test_qmf_deint_neg ( void )
static

Definition at line 119 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_qmf_deint_bfly()

static void test_qmf_deint_bfly ( void )
static

Definition at line 135 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_autocorrelate()

static void test_autocorrelate ( void )
static

Definition at line 156 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_hf_gen()

static void test_hf_gen ( void )
static

Definition at line 175 of file sbrdsp.c.

Referenced by checkasm_check_sbrdsp().

◆ test_hf_g_filt()

static void test_hf_g_filt ( void )
static

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

Referenced by checkasm_check_sbrdsp().

◆ checkasm_check_sbrdsp()

void checkasm_check_sbrdsp ( void )

Definition at line 259 of file sbrdsp.c.