FFmpeg
Macros | Functions
vorbisdsp.c File Reference
#include <float.h>
#include "libavutil/mem_internal.h"
#include "libavcodec/vorbisdsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define LEN   512
 
#define randomize_buffer(buf)
 

Functions

static void test_inverse_coupling (void)
 
void checkasm_check_vorbisdsp (void)
 

Macro Definition Documentation

◆ LEN

#define LEN   512

Definition at line 27 of file vorbisdsp.c.

◆ randomize_buffer

#define randomize_buffer (   buf)
Value:
do { \
double bmg[2], stddev = 10.0, mean = 0.0; \
for (int i = 0; i < LEN; i += 2) { \
av_bmg_get(&checkasm_lfg, bmg); \
buf[i] = bmg[0] * stddev + mean; \
buf[i + 1] = bmg[1] * stddev + mean; \
} \
} while(0);

Definition at line 29 of file vorbisdsp.c.

Function Documentation

◆ test_inverse_coupling()

static void test_inverse_coupling ( void  )
static

Definition at line 40 of file vorbisdsp.c.

Referenced by checkasm_check_vorbisdsp().

◆ checkasm_check_vorbisdsp()

void checkasm_check_vorbisdsp ( void  )

Definition at line 76 of file vorbisdsp.c.

checkasm_lfg
AVLFG checkasm_lfg
Definition: checkasm.c:350
LEN
#define LEN
Definition: vorbisdsp.c:27
for
for(k=2;k<=8;++k)
Definition: h264pred_template.c:425
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
mean
static float mean(const float *input, int size)
Definition: vf_nnedi.c:863