float_dsp.h
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav 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  * Libav 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 Libav; 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 typedef struct AVFloatDSPContext {
36  void (*vector_fmul)(float *dst, const float *src0, const float *src1,
37  int len);
38 
52  void (*vector_fmac_scalar)(float *dst, const float *src, float mul,
53  int len);
54 
67  void (*vector_fmul_scalar)(float *dst, const float *src, float mul,
68  int len);
69 
82  void (*vector_dmul_scalar)(double *dst, const double *src, double mul,
83  int len);
84 
101  void (*vector_fmul_window)(float *dst, const float *src0,
102  const float *src1, const float *win, int len);
103 
111  void (*butterflies_float)(float *restrict v1, float *restrict v2, int len);
113 
120 void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int strict);
121 
122 
124 void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int strict);
126 
127 #endif /* AVUTIL_FLOAT_DSP_H */