FFmpeg
Macros | Functions
opusdsp.c File Reference
#include "libavutil/mem_internal.h"
#include "libavcodec/opus/dsp.h"
#include "libavcodec/opus/tab.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 26 of file opusdsp.c.

◆ EPS

#define EPS   0.005

Definition at line 34 of file opusdsp.c.

◆ MAX_SIZE

#define MAX_SIZE   (960)

Definition at line 35 of file opusdsp.c.

Function Documentation

◆ test_postfilter()

static void test_postfilter ( int  period)
static

Definition at line 38 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ test_deemphasis()

static void test_deemphasis ( void  )
static

Definition at line 66 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ checkasm_check_opusdsp()

void checkasm_check_opusdsp ( void  )

Definition at line 86 of file opusdsp.c.

rnd
#define rnd()
Definition: checkasm.h:172
float
float
Definition: af_crystalizer.c:122
f
f
Definition: af_crystalizer.c:122
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426