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

◆ EPS

#define EPS   0.005

Definition at line 33 of file opusdsp.c.

◆ MAX_SIZE

#define MAX_SIZE   (960)

Definition at line 34 of file opusdsp.c.

Function Documentation

◆ test_postfilter()

static void test_postfilter ( int  period)
static

Definition at line 37 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ test_deemphasis()

static void test_deemphasis ( void  )
static

Definition at line 65 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ checkasm_check_opusdsp()

void checkasm_check_opusdsp ( void  )

Definition at line 85 of file opusdsp.c.

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