FFmpeg
Macros | Functions
af_afir.c File Reference
#include "config.h"
#include <float.h>
#include <stdint.h>
#include "libavfilter/af_afirdsp.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define LEN   256
 
#define randomize_buffer(buf)
 
#define BUF_SIZE   LEN*2+8
 
#define BUF_SIZE   LEN*2+8
 

Functions

static void test_fcmul_add (AudioFIRDSPContext *fir)
 
static void test_dcmul_add (AudioFIRDSPContext *fir)
 
void checkasm_check_afir (void)
 

Macro Definition Documentation

◆ LEN

#define LEN   256

Definition at line 29 of file af_afir.c.

◆ randomize_buffer

#define randomize_buffer (   buf)
Value:
do { \
int i; \
double bmg[2], stddev = 10.0, mean = 0.0; \
for (i = 0; i < BUF_SIZE; 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 31 of file af_afir.c.

◆ BUF_SIZE [1/2]

#define BUF_SIZE   LEN*2+8

◆ BUF_SIZE [2/2]

#define BUF_SIZE   LEN*2+8

Function Documentation

◆ test_fcmul_add()

static void test_fcmul_add ( AudioFIRDSPContext fir)
static

Definition at line 43 of file af_afir.c.

Referenced by checkasm_check_afir().

◆ test_dcmul_add()

static void test_dcmul_add ( AudioFIRDSPContext fir)
static

Definition at line 93 of file af_afir.c.

Referenced by checkasm_check_afir().

◆ checkasm_check_afir()

void checkasm_check_afir ( void  )

Definition at line 144 of file af_afir.c.

checkasm_lfg
AVLFG checkasm_lfg
Definition: checkasm.c:350
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:255
BUF_SIZE
#define BUF_SIZE
mean
static float mean(const float *input, int size)
Definition: vf_nnedi.c:862