Mercurial > libavcodec.hg
annotate arm/dsputil_neon.c @ 10308:28b0f87cfdf1 libavcodec
Refactor channel element configuration and mapping code into its own function
to allow reuse
author | superdump |
---|---|
date | Mon, 28 Sep 2009 15:37:18 +0000 |
parents | 6db89678b326 |
children | 48be79afc72d |
rev | line source |
---|---|
8334 | 1 /* |
2 * ARM NEON optimised DSP functions | |
3 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com> | |
4 * | |
5 * This file is part of FFmpeg. | |
6 * | |
7 * FFmpeg is free software; you can redistribute it and/or | |
8 * modify it under the terms of the GNU Lesser General Public | |
9 * License as published by the Free Software Foundation; either | |
10 * version 2.1 of the License, or (at your option) any later version. | |
11 * | |
12 * FFmpeg is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Lesser General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Lesser General Public | |
18 * License along with FFmpeg; if not, write to the Free Software | |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 */ | |
21 | |
22 #include <stdint.h> | |
23 | |
24 #include "libavcodec/avcodec.h" | |
25 #include "libavcodec/dsputil.h" | |
26 | |
27 void ff_put_pixels16_neon(uint8_t *, const uint8_t *, int, int); | |
28 void ff_put_pixels16_x2_neon(uint8_t *, const uint8_t *, int, int); | |
29 void ff_put_pixels16_y2_neon(uint8_t *, const uint8_t *, int, int); | |
30 void ff_put_pixels16_xy2_neon(uint8_t *, const uint8_t *, int, int); | |
31 void ff_put_pixels8_neon(uint8_t *, const uint8_t *, int, int); | |
32 void ff_put_pixels8_x2_neon(uint8_t *, const uint8_t *, int, int); | |
33 void ff_put_pixels8_y2_neon(uint8_t *, const uint8_t *, int, int); | |
34 void ff_put_pixels8_xy2_neon(uint8_t *, const uint8_t *, int, int); | |
35 void ff_put_pixels16_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
36 void ff_put_pixels16_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
37 void ff_put_pixels16_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
38 void ff_put_pixels8_x2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
39 void ff_put_pixels8_y2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
40 void ff_put_pixels8_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int); | |
41 | |
42 void ff_avg_pixels16_neon(uint8_t *, const uint8_t *, int, int); | |
43 | |
9344 | 44 void ff_add_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); |
9580 | 45 void ff_put_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); |
9345 | 46 void ff_put_signed_pixels_clamped_neon(const DCTELEM *, uint8_t *, int); |
9344 | 47 |
8334 | 48 void ff_put_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int); |
8338 | 49 void ff_put_h264_qpel16_mc10_neon(uint8_t *, uint8_t *, int); |
50 void ff_put_h264_qpel16_mc20_neon(uint8_t *, uint8_t *, int); | |
51 void ff_put_h264_qpel16_mc30_neon(uint8_t *, uint8_t *, int); | |
52 void ff_put_h264_qpel16_mc01_neon(uint8_t *, uint8_t *, int); | |
53 void ff_put_h264_qpel16_mc11_neon(uint8_t *, uint8_t *, int); | |
54 void ff_put_h264_qpel16_mc21_neon(uint8_t *, uint8_t *, int); | |
55 void ff_put_h264_qpel16_mc31_neon(uint8_t *, uint8_t *, int); | |
56 void ff_put_h264_qpel16_mc02_neon(uint8_t *, uint8_t *, int); | |
57 void ff_put_h264_qpel16_mc12_neon(uint8_t *, uint8_t *, int); | |
58 void ff_put_h264_qpel16_mc22_neon(uint8_t *, uint8_t *, int); | |
59 void ff_put_h264_qpel16_mc32_neon(uint8_t *, uint8_t *, int); | |
60 void ff_put_h264_qpel16_mc03_neon(uint8_t *, uint8_t *, int); | |
61 void ff_put_h264_qpel16_mc13_neon(uint8_t *, uint8_t *, int); | |
62 void ff_put_h264_qpel16_mc23_neon(uint8_t *, uint8_t *, int); | |
63 void ff_put_h264_qpel16_mc33_neon(uint8_t *, uint8_t *, int); | |
64 | |
8334 | 65 void ff_put_h264_qpel8_mc00_neon(uint8_t *, uint8_t *, int); |
8338 | 66 void ff_put_h264_qpel8_mc10_neon(uint8_t *, uint8_t *, int); |
67 void ff_put_h264_qpel8_mc20_neon(uint8_t *, uint8_t *, int); | |
68 void ff_put_h264_qpel8_mc30_neon(uint8_t *, uint8_t *, int); | |
69 void ff_put_h264_qpel8_mc01_neon(uint8_t *, uint8_t *, int); | |
70 void ff_put_h264_qpel8_mc11_neon(uint8_t *, uint8_t *, int); | |
71 void ff_put_h264_qpel8_mc21_neon(uint8_t *, uint8_t *, int); | |
72 void ff_put_h264_qpel8_mc31_neon(uint8_t *, uint8_t *, int); | |
73 void ff_put_h264_qpel8_mc02_neon(uint8_t *, uint8_t *, int); | |
74 void ff_put_h264_qpel8_mc12_neon(uint8_t *, uint8_t *, int); | |
75 void ff_put_h264_qpel8_mc22_neon(uint8_t *, uint8_t *, int); | |
76 void ff_put_h264_qpel8_mc32_neon(uint8_t *, uint8_t *, int); | |
77 void ff_put_h264_qpel8_mc03_neon(uint8_t *, uint8_t *, int); | |
78 void ff_put_h264_qpel8_mc13_neon(uint8_t *, uint8_t *, int); | |
79 void ff_put_h264_qpel8_mc23_neon(uint8_t *, uint8_t *, int); | |
80 void ff_put_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int); | |
8334 | 81 |
82 void ff_avg_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int); | |
83 | |
8336 | 84 void ff_put_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); |
85 void ff_put_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int); | |
86 | |
87 void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); | |
88 void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int); | |
89 | |
8337 | 90 void ff_h264_v_loop_filter_luma_neon(uint8_t *pix, int stride, int alpha, |
91 int beta, int8_t *tc0); | |
92 void ff_h264_h_loop_filter_luma_neon(uint8_t *pix, int stride, int alpha, | |
93 int beta, int8_t *tc0); | |
94 void ff_h264_v_loop_filter_chroma_neon(uint8_t *pix, int stride, int alpha, | |
95 int beta, int8_t *tc0); | |
96 void ff_h264_h_loop_filter_chroma_neon(uint8_t *pix, int stride, int alpha, | |
97 int beta, int8_t *tc0); | |
98 | |
8664 | 99 void ff_weight_h264_pixels_16x16_neon(uint8_t *ds, int stride, int log2_den, |
100 int weight, int offset); | |
101 void ff_weight_h264_pixels_16x8_neon(uint8_t *ds, int stride, int log2_den, | |
102 int weight, int offset); | |
103 void ff_weight_h264_pixels_8x16_neon(uint8_t *ds, int stride, int log2_den, | |
104 int weight, int offset); | |
105 void ff_weight_h264_pixels_8x8_neon(uint8_t *ds, int stride, int log2_den, | |
106 int weight, int offset); | |
107 void ff_weight_h264_pixels_8x4_neon(uint8_t *ds, int stride, int log2_den, | |
108 int weight, int offset); | |
109 void ff_weight_h264_pixels_4x8_neon(uint8_t *ds, int stride, int log2_den, | |
110 int weight, int offset); | |
111 void ff_weight_h264_pixels_4x4_neon(uint8_t *ds, int stride, int log2_den, | |
112 int weight, int offset); | |
113 void ff_weight_h264_pixels_4x2_neon(uint8_t *ds, int stride, int log2_den, | |
114 int weight, int offset); | |
115 | |
8663 | 116 void ff_biweight_h264_pixels_16x16_neon(uint8_t *dst, uint8_t *src, int stride, |
117 int log2_den, int weightd, int weights, | |
118 int offset); | |
119 void ff_biweight_h264_pixels_16x8_neon(uint8_t *dst, uint8_t *src, int stride, | |
120 int log2_den, int weightd, int weights, | |
121 int offset); | |
122 void ff_biweight_h264_pixels_8x16_neon(uint8_t *dst, uint8_t *src, int stride, | |
123 int log2_den, int weightd, int weights, | |
124 int offset); | |
125 void ff_biweight_h264_pixels_8x8_neon(uint8_t *dst, uint8_t *src, int stride, | |
126 int log2_den, int weightd, int weights, | |
127 int offset); | |
128 void ff_biweight_h264_pixels_8x4_neon(uint8_t *dst, uint8_t *src, int stride, | |
129 int log2_den, int weightd, int weights, | |
130 int offset); | |
131 void ff_biweight_h264_pixels_4x8_neon(uint8_t *dst, uint8_t *src, int stride, | |
132 int log2_den, int weightd, int weights, | |
133 int offset); | |
134 void ff_biweight_h264_pixels_4x4_neon(uint8_t *dst, uint8_t *src, int stride, | |
135 int log2_den, int weightd, int weights, | |
136 int offset); | |
137 void ff_biweight_h264_pixels_4x2_neon(uint8_t *dst, uint8_t *src, int stride, | |
138 int log2_den, int weightd, int weights, | |
139 int offset); | |
140 | |
8339 | 141 void ff_h264_idct_add_neon(uint8_t *dst, DCTELEM *block, int stride); |
8340 | 142 void ff_h264_idct_dc_add_neon(uint8_t *dst, DCTELEM *block, int stride); |
8462 | 143 void ff_h264_idct_add16_neon(uint8_t *dst, const int *block_offset, |
144 DCTELEM *block, int stride, | |
145 const uint8_t nnzc[6*8]); | |
146 void ff_h264_idct_add16intra_neon(uint8_t *dst, const int *block_offset, | |
147 DCTELEM *block, int stride, | |
148 const uint8_t nnzc[6*8]); | |
149 void ff_h264_idct_add8_neon(uint8_t **dest, const int *block_offset, | |
150 DCTELEM *block, int stride, | |
151 const uint8_t nnzc[6*8]); | |
8339 | 152 |
9692 | 153 void ff_vp3_v_loop_filter_neon(uint8_t *, int, int *); |
154 void ff_vp3_h_loop_filter_neon(uint8_t *, int, int *); | |
155 | |
8697 | 156 void ff_vector_fmul_neon(float *dst, const float *src, int len); |
8698 | 157 void ff_vector_fmul_window_neon(float *dst, const float *src0, |
158 const float *src1, const float *win, | |
159 float add_bias, int len); | |
10221 | 160 void ff_vector_fmul_scalar_neon(float *dst, const float *src, float mul, |
161 int len); | |
162 void ff_vector_fmul_sv_scalar_2_neon(float *dst, const float *src, | |
163 const float **vp, float mul, int len); | |
164 void ff_vector_fmul_sv_scalar_4_neon(float *dst, const float *src, | |
165 const float **vp, float mul, int len); | |
166 void ff_sv_fmul_scalar_2_neon(float *dst, const float **vp, float mul, | |
167 int len); | |
168 void ff_sv_fmul_scalar_4_neon(float *dst, const float **vp, float mul, | |
169 int len); | |
170 void ff_butterflies_float_neon(float *v1, float *v2, int len); | |
10228 | 171 float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len); |
10253 | 172 void ff_int32_to_float_fmul_scalar_neon(float *dst, const int *src, |
173 float mul, int len); | |
10274 | 174 void ff_vector_fmul_reverse_neon(float *dst, const float *src0, |
175 const float *src1, int len); | |
10302 | 176 void ff_vector_fmul_add_neon(float *dst, const float *src0, const float *src1, |
177 const float *src2, int len); | |
8697 | 178 |
10276 | 179 void ff_vector_clipf_neon(float *dst, const float *src, float min, float max, |
180 int len); | |
8492 | 181 void ff_float_to_int16_neon(int16_t *, const float *, long); |
182 void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int); | |
183 | |
10046 | 184 void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize); |
185 | |
8334 | 186 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) |
187 { | |
188 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; | |
189 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_neon; | |
190 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_neon; | |
191 c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_neon; | |
192 c->put_pixels_tab[1][0] = ff_put_pixels8_neon; | |
193 c->put_pixels_tab[1][1] = ff_put_pixels8_x2_neon; | |
194 c->put_pixels_tab[1][2] = ff_put_pixels8_y2_neon; | |
195 c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_neon; | |
196 | |
197 c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_neon; | |
198 c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_neon; | |
199 c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_neon; | |
200 c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_neon; | |
201 c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_neon; | |
202 c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_neon; | |
203 c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_neon; | |
204 c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_neon; | |
205 | |
206 c->avg_pixels_tab[0][0] = ff_avg_pixels16_neon; | |
207 | |
9344 | 208 c->add_pixels_clamped = ff_add_pixels_clamped_neon; |
9580 | 209 c->put_pixels_clamped = ff_put_pixels_clamped_neon; |
9345 | 210 c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon; |
9344 | 211 |
9976
e52cd349e708
Only compile in NEON optimizations for H.264 when the H.264 decoder is enabled.
diego
parents:
9975
diff
changeset
|
212 if (CONFIG_H264_DECODER) { |
9977 | 213 c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon; |
214 c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_neon; | |
8336 | 215 |
9977 | 216 c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_neon; |
217 c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_neon; | |
8336 | 218 |
9977 | 219 c->put_h264_qpel_pixels_tab[0][ 0] = ff_put_h264_qpel16_mc00_neon; |
220 c->put_h264_qpel_pixels_tab[0][ 1] = ff_put_h264_qpel16_mc10_neon; | |
221 c->put_h264_qpel_pixels_tab[0][ 2] = ff_put_h264_qpel16_mc20_neon; | |
222 c->put_h264_qpel_pixels_tab[0][ 3] = ff_put_h264_qpel16_mc30_neon; | |
223 c->put_h264_qpel_pixels_tab[0][ 4] = ff_put_h264_qpel16_mc01_neon; | |
224 c->put_h264_qpel_pixels_tab[0][ 5] = ff_put_h264_qpel16_mc11_neon; | |
225 c->put_h264_qpel_pixels_tab[0][ 6] = ff_put_h264_qpel16_mc21_neon; | |
226 c->put_h264_qpel_pixels_tab[0][ 7] = ff_put_h264_qpel16_mc31_neon; | |
227 c->put_h264_qpel_pixels_tab[0][ 8] = ff_put_h264_qpel16_mc02_neon; | |
228 c->put_h264_qpel_pixels_tab[0][ 9] = ff_put_h264_qpel16_mc12_neon; | |
229 c->put_h264_qpel_pixels_tab[0][10] = ff_put_h264_qpel16_mc22_neon; | |
230 c->put_h264_qpel_pixels_tab[0][11] = ff_put_h264_qpel16_mc32_neon; | |
231 c->put_h264_qpel_pixels_tab[0][12] = ff_put_h264_qpel16_mc03_neon; | |
232 c->put_h264_qpel_pixels_tab[0][13] = ff_put_h264_qpel16_mc13_neon; | |
233 c->put_h264_qpel_pixels_tab[0][14] = ff_put_h264_qpel16_mc23_neon; | |
234 c->put_h264_qpel_pixels_tab[0][15] = ff_put_h264_qpel16_mc33_neon; | |
8338 | 235 |
9977 | 236 c->put_h264_qpel_pixels_tab[1][ 0] = ff_put_h264_qpel8_mc00_neon; |
237 c->put_h264_qpel_pixels_tab[1][ 1] = ff_put_h264_qpel8_mc10_neon; | |
238 c->put_h264_qpel_pixels_tab[1][ 2] = ff_put_h264_qpel8_mc20_neon; | |
239 c->put_h264_qpel_pixels_tab[1][ 3] = ff_put_h264_qpel8_mc30_neon; | |
240 c->put_h264_qpel_pixels_tab[1][ 4] = ff_put_h264_qpel8_mc01_neon; | |
241 c->put_h264_qpel_pixels_tab[1][ 5] = ff_put_h264_qpel8_mc11_neon; | |
242 c->put_h264_qpel_pixels_tab[1][ 6] = ff_put_h264_qpel8_mc21_neon; | |
243 c->put_h264_qpel_pixels_tab[1][ 7] = ff_put_h264_qpel8_mc31_neon; | |
244 c->put_h264_qpel_pixels_tab[1][ 8] = ff_put_h264_qpel8_mc02_neon; | |
245 c->put_h264_qpel_pixels_tab[1][ 9] = ff_put_h264_qpel8_mc12_neon; | |
246 c->put_h264_qpel_pixels_tab[1][10] = ff_put_h264_qpel8_mc22_neon; | |
247 c->put_h264_qpel_pixels_tab[1][11] = ff_put_h264_qpel8_mc32_neon; | |
248 c->put_h264_qpel_pixels_tab[1][12] = ff_put_h264_qpel8_mc03_neon; | |
249 c->put_h264_qpel_pixels_tab[1][13] = ff_put_h264_qpel8_mc13_neon; | |
250 c->put_h264_qpel_pixels_tab[1][14] = ff_put_h264_qpel8_mc23_neon; | |
251 c->put_h264_qpel_pixels_tab[1][15] = ff_put_h264_qpel8_mc33_neon; | |
8334 | 252 |
9977 | 253 c->avg_h264_qpel_pixels_tab[0][ 0] = ff_avg_h264_qpel16_mc00_neon; |
8337 | 254 |
9977 | 255 c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; |
256 c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon; | |
257 c->h264_v_loop_filter_chroma = ff_h264_v_loop_filter_chroma_neon; | |
258 c->h264_h_loop_filter_chroma = ff_h264_h_loop_filter_chroma_neon; | |
8339 | 259 |
9977 | 260 c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16x16_neon; |
261 c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_16x8_neon; | |
262 c->weight_h264_pixels_tab[2] = ff_weight_h264_pixels_8x16_neon; | |
263 c->weight_h264_pixels_tab[3] = ff_weight_h264_pixels_8x8_neon; | |
264 c->weight_h264_pixels_tab[4] = ff_weight_h264_pixels_8x4_neon; | |
265 c->weight_h264_pixels_tab[5] = ff_weight_h264_pixels_4x8_neon; | |
266 c->weight_h264_pixels_tab[6] = ff_weight_h264_pixels_4x4_neon; | |
267 c->weight_h264_pixels_tab[7] = ff_weight_h264_pixels_4x2_neon; | |
8664 | 268 |
9977 | 269 c->biweight_h264_pixels_tab[0] = ff_biweight_h264_pixels_16x16_neon; |
270 c->biweight_h264_pixels_tab[1] = ff_biweight_h264_pixels_16x8_neon; | |
271 c->biweight_h264_pixels_tab[2] = ff_biweight_h264_pixels_8x16_neon; | |
272 c->biweight_h264_pixels_tab[3] = ff_biweight_h264_pixels_8x8_neon; | |
273 c->biweight_h264_pixels_tab[4] = ff_biweight_h264_pixels_8x4_neon; | |
274 c->biweight_h264_pixels_tab[5] = ff_biweight_h264_pixels_4x8_neon; | |
275 c->biweight_h264_pixels_tab[6] = ff_biweight_h264_pixels_4x4_neon; | |
276 c->biweight_h264_pixels_tab[7] = ff_biweight_h264_pixels_4x2_neon; | |
8663 | 277 |
9977 | 278 c->h264_idct_add = ff_h264_idct_add_neon; |
279 c->h264_idct_dc_add = ff_h264_idct_dc_add_neon; | |
280 c->h264_idct_add16 = ff_h264_idct_add16_neon; | |
281 c->h264_idct_add16intra = ff_h264_idct_add16intra_neon; | |
282 c->h264_idct_add8 = ff_h264_idct_add8_neon; | |
9976
e52cd349e708
Only compile in NEON optimizations for H.264 when the H.264 decoder is enabled.
diego
parents:
9975
diff
changeset
|
283 } |
8492 | 284 |
9975
d6d7e8d4a04d
Do not redundantly check for both CONFIG_THEORA_DECODER and CONFIG_VP3_DECODER.
diego
parents:
9692
diff
changeset
|
285 if (CONFIG_VP3_DECODER) { |
9692 | 286 c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon; |
287 c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon; | |
288 } | |
289 | |
8697 | 290 c->vector_fmul = ff_vector_fmul_neon; |
8698 | 291 c->vector_fmul_window = ff_vector_fmul_window_neon; |
10221 | 292 c->vector_fmul_scalar = ff_vector_fmul_scalar_neon; |
293 c->butterflies_float = ff_butterflies_float_neon; | |
10228 | 294 c->scalarproduct_float = ff_scalarproduct_float_neon; |
10253 | 295 c->int32_to_float_fmul_scalar = ff_int32_to_float_fmul_scalar_neon; |
10274 | 296 c->vector_fmul_reverse = ff_vector_fmul_reverse_neon; |
10302 | 297 c->vector_fmul_add = ff_vector_fmul_add_neon; |
10221 | 298 |
299 c->vector_fmul_sv_scalar[0] = ff_vector_fmul_sv_scalar_2_neon; | |
300 c->vector_fmul_sv_scalar[1] = ff_vector_fmul_sv_scalar_4_neon; | |
301 | |
302 c->sv_fmul_scalar[0] = ff_sv_fmul_scalar_2_neon; | |
303 c->sv_fmul_scalar[1] = ff_sv_fmul_scalar_4_neon; | |
8697 | 304 |
10276 | 305 c->vector_clipf = ff_vector_clipf_neon; |
306 | |
8492 | 307 if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { |
308 c->float_to_int16 = ff_float_to_int16_neon; | |
309 c->float_to_int16_interleave = ff_float_to_int16_interleave_neon; | |
310 } | |
10046 | 311 |
312 if (CONFIG_VORBIS_DECODER) | |
313 c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon; | |
8334 | 314 } |