FFmpeg
Macros | Functions
opusdsp.c File Reference
#include "libavcodec/opusdsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_float(buf, len)
 
#define EPS   0.005
 
#define MAX_SIZE   (960)
 

Functions

static void test_postfilter (int period)
 
static void test_deemphasis (void)
 
void checkasm_check_opusdsp (void)
 

Macro Definition Documentation

◆ randomize_float

#define randomize_float (   buf,
  len 
)
Value:
do { \
for (int i = 0; i < len; i++) { \
float f = (float)rnd() / (UINT_MAX >> 5) - 16.0f; \
buf[i] = f; \
} \
} while (0)

Definition at line 23 of file opusdsp.c.

◆ EPS

#define EPS   0.005

Definition at line 31 of file opusdsp.c.

◆ MAX_SIZE

#define MAX_SIZE   (960)

Definition at line 32 of file opusdsp.c.

Function Documentation

◆ test_postfilter()

static void test_postfilter ( int  period)
static

Definition at line 35 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ test_deemphasis()

static void test_deemphasis ( void  )
static

Definition at line 63 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ checkasm_check_opusdsp()

void checkasm_check_opusdsp ( void  )

Definition at line 83 of file opusdsp.c.

rnd
#define rnd()
Definition: checkasm.h:107
f
#define f(width, name)
Definition: cbs_vp9.c:255
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:269
len
int len
Definition: vorbis_enc_data.h:452