FFmpeg
Loading...
Searching...
No Matches
opusdsp.c File Reference
#include <string.h>
#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)
#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
int len

Definition at line 28 of file opusdsp.c.

Referenced by test_deemphasis(), and test_postfilter().

◆ EPS

#define EPS   0.005

Definition at line 36 of file opusdsp.c.

◆ MAX_SIZE

#define MAX_SIZE   (960)

Definition at line 37 of file opusdsp.c.

Function Documentation

◆ test_postfilter()

static void test_postfilter ( int period)
static

Definition at line 40 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ test_deemphasis()

static void test_deemphasis ( void )
static

Definition at line 68 of file opusdsp.c.

Referenced by checkasm_check_opusdsp().

◆ checkasm_check_opusdsp()

void checkasm_check_opusdsp ( void )

Definition at line 88 of file opusdsp.c.