FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
float_dsp_init_vfp.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 Siarhei Siamashka <ssvb@users.sourceforge.net>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include "libavutil/attributes.h"
22 #include "libavutil/float_dsp.h"
23 #include "cpu.h"
24 #include "float_dsp_arm.h"
25 
26 void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1,
27  int len);
28 
29 void ff_vector_fmul_window_vfp(float *dst, const float *src0,
30  const float *src1, const float *win, int len);
31 
32 void ff_vector_fmul_reverse_vfp(float *dst, const float *src0,
33  const float *src1, int len);
34 
35 void ff_butterflies_float_vfp(float *av_restrict v1, float *av_restrict v2, int len);
36 
38 {
39  if (have_vfp_vm(cpu_flags)) {
42  }
44  if (have_vfp_vm(cpu_flags))
46 }
static float win(SuperEqualizerContext *s, float n, int N)
void ff_vector_fmul_reverse_vfp(float *dst, const float *src0, const float *src1, int len)
void(* vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats, and store the result in a vector of floats...
Definition: float_dsp.h:154
static atomic_int cpu_flags
Definition: cpu.c:50
Macro definitions for various function/variable attributes.
void(* vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, int len)
Overlap/add with window function.
Definition: float_dsp.h:119
#define av_cold
Definition: attributes.h:82
av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp, int cpu_flags)
void(* vector_fmul)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats and store the result in a vector of floats...
Definition: float_dsp.h:38
void(* butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len)
Calculate the sum and difference of two vectors of floats.
Definition: float_dsp.h:164
void ff_vector_fmul_window_vfp(float *dst, const float *src0, const float *src1, const float *win, int len)
#define src1
Definition: h264pred.c:139
#define src0
Definition: h264pred.c:138
#define have_vfp_vm(flags)
Definition: cpu.h:36
void ff_butterflies_float_vfp(float *av_restrict v1, float *av_restrict v2, int len)
void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1, int len)
int len