FFmpeg
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  }
46 }
AVFloatDSPContext::vector_fmul_reverse
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
cpu_flags
static atomic_int cpu_flags
Definition: cpu.c:50
AVFloatDSPContext::butterflies_float
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
win
static float win(SuperEqualizerContext *s, float n, int N)
Definition: af_superequalizer.c:119
ff_float_dsp_init_vfp
av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp, int cpu_flags)
Definition: float_dsp_init_vfp.c:37
av_cold
#define av_cold
Definition: attributes.h:90
ff_butterflies_float_vfp
void ff_butterflies_float_vfp(float *av_restrict v1, float *av_restrict v2, int len)
ff_vector_fmul_window_vfp
void ff_vector_fmul_window_vfp(float *dst, const float *src0, const float *src1, const float *win, int len)
ff_vector_fmul_reverse_vfp
void ff_vector_fmul_reverse_vfp(float *dst, const float *src0, const float *src1, int len)
cpu.h
float_dsp.h
AVFloatDSPContext::vector_fmul
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
AVFloatDSPContext
Definition: float_dsp.h:24
attributes.h
src0
#define src0
Definition: h264pred.c:139
src1
#define src1
Definition: h264pred.c:140
len
int len
Definition: vorbis_enc_data.h:426
float_dsp_arm.h
have_vfp_vm
#define have_vfp_vm(flags)
Definition: cpu.h:35
AVFloatDSPContext::vector_fmul_window
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
ff_vector_fmul_vfp
void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1, int len)