FFmpeg  1.2.12
float_dsp.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVUTIL_FLOAT_DSP_H
20 #define AVUTIL_FLOAT_DSP_H
21 
22 #include "config.h"
23 
24 typedef struct AVFloatDSPContext {
38  void (*vector_fmul)(float *dst, const float *src0, const float *src1,
39  int len);
40 
54  void (*vector_fmac_scalar)(float *dst, const float *src, float mul,
55  int len);
56 
69  void (*vector_fmul_scalar)(float *dst, const float *src, float mul,
70  int len);
71 
84  void (*vector_dmul_scalar)(double *dst, const double *src, double mul,
85  int len);
86 
103  void (*vector_fmul_window)(float *dst, const float *src0,
104  const float *src1, const float *win, int len);
105 
121  void (*vector_fmul_add)(float *dst, const float *src0, const float *src1,
122  const float *src2, int len);
123 
140  void (*vector_fmul_reverse)(float *dst, const float *src0,
141  const float *src1, int len);
142 
150  void (*butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len);
151 
161  float (*scalarproduct_float)(const float *v1, const float *v2, int len);
163 
173 float avpriv_scalarproduct_float_c(const float *v1, const float *v2, int len);
174 
181 void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int strict);
182 
183 
185 void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int strict);
188 
189 #endif /* AVUTIL_FLOAT_DSP_H */