FFmpeg
Macros | Functions
float_dsp.c File Reference
#include <float.h>
#include <stdint.h>
#include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "libavutil/mem.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 ARBITRARY_FMUL_ADD_CONST   0.005
 
#define ARBITRARY_FMUL_WINDOW_CONST   0.008
 
#define ARBITRARY_FMAC_SCALAR_CONST   0.005
 
#define ARBITRARY_DMAC_SCALAR_CONST   0.005
 
#define ARBITRARY_SCALARPRODUCT_CONST   0.2
 

Functions

static void test_vector_fmul (const float *src0, const float *src1)
 
static void test_vector_dmul (const double *src0, const double *src1)
 
static void test_vector_fmul_add (const float *src0, const float *src1, const float *src2)
 
static void test_vector_fmul_scalar (const float *src0, const float *src1)
 
static void test_vector_fmul_window (const float *src0, const float *src1, const float *win)
 
static void test_vector_fmac_scalar (const float *src0, const float *src1, const float *src2)
 
static void test_vector_dmul_scalar (const double *src0, const double *src1)
 
static void test_vector_dmac_scalar (const double *src0, const double *src1, const double *src2)
 
static void test_butterflies_float (const float *src0, const float *src1)
 
static void test_scalarproduct_float (const float *src0, const float *src1)
 
static void test_scalarproduct_double (const double *src0, const double *src1)
 
void checkasm_check_float_dsp (void)
 

Macro Definition Documentation

◆ LEN

#define LEN   256

Definition at line 29 of file float_dsp.c.

◆ randomize_buffer

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

◆ ARBITRARY_FMUL_ADD_CONST

#define ARBITRARY_FMUL_ADD_CONST   0.005

Definition at line 89 of file float_dsp.c.

◆ ARBITRARY_FMUL_WINDOW_CONST

#define ARBITRARY_FMUL_WINDOW_CONST   0.008

Definition at line 134 of file float_dsp.c.

◆ ARBITRARY_FMAC_SCALAR_CONST

#define ARBITRARY_FMAC_SCALAR_CONST   0.005

Definition at line 157 of file float_dsp.c.

◆ ARBITRARY_DMAC_SCALAR_CONST

#define ARBITRARY_DMAC_SCALAR_CONST   0.005

Definition at line 205 of file float_dsp.c.

◆ ARBITRARY_SCALARPRODUCT_CONST

#define ARBITRARY_SCALARPRODUCT_CONST   0.2

Definition at line 264 of file float_dsp.c.

Function Documentation

◆ test_vector_fmul()

static void test_vector_fmul ( const float src0,
const float src1 
)
static

Definition at line 43 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmul()

static void test_vector_dmul ( const double src0,
const double src1 
)
static

Definition at line 66 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_add()

static void test_vector_fmul_add ( const float src0,
const float src1,
const float src2 
)
static

Definition at line 90 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_scalar()

static void test_vector_fmul_scalar ( const float src0,
const float src1 
)
static

Definition at line 112 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_window()

static void test_vector_fmul_window ( const float src0,
const float src1,
const float win 
)
static

Definition at line 135 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmac_scalar()

static void test_vector_fmac_scalar ( const float src0,
const float src1,
const float src2 
)
static

Definition at line 158 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmul_scalar()

static void test_vector_dmul_scalar ( const double src0,
const double src1 
)
static

Definition at line 183 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmac_scalar()

static void test_vector_dmac_scalar ( const double src0,
const double src1,
const double src2 
)
static

Definition at line 206 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_butterflies_float()

static void test_butterflies_float ( const float src0,
const float src1 
)
static

Definition at line 230 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_scalarproduct_float()

static void test_scalarproduct_float ( const float src0,
const float src1 
)
static

Definition at line 265 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_scalarproduct_double()

static void test_scalarproduct_double ( const double src0,
const double src1 
)
static

Definition at line 281 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ checkasm_check_float_dsp()

void checkasm_check_float_dsp ( void  )

Definition at line 297 of file float_dsp.c.

checkasm_lfg
AVLFG checkasm_lfg
Definition: checkasm.c:413
for
for(k=2;k<=8;++k)
Definition: h264pred_template.c:425
LEN
#define LEN
Definition: float_dsp.c:29
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:866