FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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_fmac_scalar_c (float *dst, const float *src, float 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 *av_restrict v1, float *av_restrict v2, int len)
 
float avpriv_scalarproduct_float_c (const float *v1, const float *v2, int len)
 Return the scalar product of two vectors.
 
av_cold void avpriv_float_dsp_init (AVFloatDSPContext *fdsp, int bit_exact)
 Initialize a float DSP context.
 
av_cold AVFloatDSPContextavpriv_float_dsp_alloc (int bit_exact)
 Allocate a float DSP context.
 

Function Documentation

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_init().

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

Definition at line 35 of file float_dsp.c.

Referenced by avpriv_float_dsp_init().

static void vector_fmul_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_init().

static void vector_dmul_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_init().

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

Definition at line 59 of file float_dsp.c.

Referenced by avpriv_float_dsp_init().

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

Definition at line 78 of file float_dsp.c.

Referenced by avpriv_float_dsp_init().

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

Definition at line 86 of file float_dsp.c.

Referenced by avpriv_float_dsp_init().

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

Definition at line 96 of file float_dsp.c.

Referenced by avpriv_float_dsp_init().

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

Return the scalar product of two vectors.

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

Definition at line 108 of file float_dsp.c.

Referenced by acelp_decode_gain_codef(), apply_gain_ctrl(), avpriv_float_dsp_init(), 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().

av_cold void avpriv_float_dsp_init ( AVFloatDSPContext fdsp,
int  strict 
)

Initialize a float DSP context.

Parameters
fdspfloat DSP context
strictsetting to non-zero avoids using functions which may not be IEEE-754 compliant

Definition at line 119 of file float_dsp.c.

Referenced by aac_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), avpriv_float_dsp_alloc(), decode_init(), dsp_init(), ff_ac3_float_encode_init(), ff_celt_init(), ff_twinvq_decode_init(), ff_wma_init(), mp3lame_encode_init(), on2avc_decode_init(), opus_decode_init(), ra288_decode_init(), and vorbis_decode_init().

av_cold AVFloatDSPContext* avpriv_float_dsp_alloc ( int  strict)

Allocate a float DSP context.

Parameters
strictsetting to non-zero avoids using functions which may not be IEEE-754 compliant

Definition at line 143 of file float_dsp.c.

Referenced by ac3_decode_init(), atrac1_decode_init(), dca_decode_init(), decode_init(), encode_init(), imc_decode_init(), and init().