FFmpeg
Functions
float_dsp.c File Reference
#include "config.h"
#include "attributes.h"
#include "float_dsp.h"
#include "mem.h"

Go to the source code of this file.

Functions

static void vector_fmul_c (float *dst, const float *src0, const float *src1, int len)
 
static void vector_dmul_c (double *dst, const double *src0, const double *src1, int len)
 
static void vector_fmac_scalar_c (float *dst, const float *src, float mul, int len)
 
static void vector_dmac_scalar_c (double *dst, const double *src, double mul, int len)
 
static void vector_fmul_scalar_c (float *dst, const float *src, float mul, int len)
 
static void vector_dmul_scalar_c (double *dst, const double *src, double mul, int len)
 
static void vector_fmul_window_c (float *dst, const float *src0, const float *src1, const float *win, int len)
 
static void vector_fmul_add_c (float *dst, const float *src0, const float *src1, const float *src2, int len)
 
static void vector_fmul_reverse_c (float *dst, const float *src0, const float *src1, int len)
 
static void butterflies_float_c (float *restrict v1, float *restrict v2, int len)
 
float avpriv_scalarproduct_float_c (const float *v1, const float *v2, int len)
 Return the scalar product of two vectors of floats. More...
 
double ff_scalarproduct_double_c (const double *v1, const double *v2, size_t len)
 Return the scalar product of two vectors of doubles. More...
 
av_cold AVFloatDSPContextavpriv_float_dsp_alloc (int bit_exact)
 Allocate a float DSP context. More...
 

Function Documentation

◆ vector_fmul_c()

static void vector_fmul_c ( float dst,
const float src0,
const float src1,
int  len 
)
static

Definition at line 27 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_dmul_c()

static void vector_dmul_c ( double dst,
const double src0,
const double src1,
int  len 
)
static

Definition at line 35 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_fmac_scalar_c()

static void vector_fmac_scalar_c ( float dst,
const float src,
float  mul,
int  len 
)
static

Definition at line 43 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_dmac_scalar_c()

static void vector_dmac_scalar_c ( double dst,
const double src,
double  mul,
int  len 
)
static

Definition at line 51 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_fmul_scalar_c()

static void vector_fmul_scalar_c ( float dst,
const float src,
float  mul,
int  len 
)
static

Definition at line 59 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_dmul_scalar_c()

static void vector_dmul_scalar_c ( double dst,
const double src,
double  mul,
int  len 
)
static

Definition at line 67 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_fmul_window_c()

static void vector_fmul_window_c ( float dst,
const float src0,
const float src1,
const float win,
int  len 
)
static

Definition at line 75 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_fmul_add_c()

static void vector_fmul_add_c ( float dst,
const float src0,
const float src1,
const float src2,
int  len 
)
static

Definition at line 94 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ vector_fmul_reverse_c()

static void vector_fmul_reverse_c ( float dst,
const float src0,
const float src1,
int  len 
)
static

Definition at line 102 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ butterflies_float_c()

static void butterflies_float_c ( float *restrict  v1,
float *restrict  v2,
int  len 
)
static

Definition at line 112 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc().

◆ avpriv_scalarproduct_float_c()

float avpriv_scalarproduct_float_c ( const float v1,
const float v2,
int  len 
)

Return the scalar product of two vectors of floats.

Parameters
v1first input vector
v2first input vector
lennumber of elements
Returns
sum of elementwise products

Definition at line 124 of file float_dsp.c.

Referenced by acelp_decode_gain_codef(), apply_gain_ctrl(), avpriv_float_dsp_alloc(), calc_input_response(), convolve(), decode(), decode_frame(), ff_adaptive_gain_control(), ff_amr_set_fixed_gain(), ff_scale_vector_to_given_sum_of_squares(), kalman_smoothen(), postfilter(), synth_block_fcb_acb(), and tilt_factor().

◆ ff_scalarproduct_double_c()

double ff_scalarproduct_double_c ( const double v1,
const double v2,
size_t  len 
)

Return the scalar product of two vectors of doubles.

Parameters
v1first input vector
v2first input vector
lennumber of elements
Returns
inner product of the vectors

Definition at line 135 of file float_dsp.c.

Referenced by avpriv_float_dsp_alloc(), and evaluate_lls().

◆ avpriv_float_dsp_alloc()

av_cold AVFloatDSPContext* avpriv_float_dsp_alloc ( int  strict)