Mercurial > libavcodec.hg
comparison arm/dsputil_init_neon.c @ 10362:838b42ccd65e libavcodec
ARM: cosmetics
author | mru |
---|---|
date | Sun, 04 Oct 2009 13:13:08 +0000 |
parents | b72bb442a775 |
children | 199949177888 |
comparison
equal
deleted
inserted
replaced
10361:a1cc263fba25 | 10362:838b42ccd65e |
---|---|
195 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) | 195 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) |
196 { | 196 { |
197 if (!avctx->lowres) { | 197 if (!avctx->lowres) { |
198 if (avctx->idct_algo == FF_IDCT_AUTO || | 198 if (avctx->idct_algo == FF_IDCT_AUTO || |
199 avctx->idct_algo == FF_IDCT_SIMPLENEON) { | 199 avctx->idct_algo == FF_IDCT_SIMPLENEON) { |
200 c->idct_put= ff_simple_idct_put_neon; | 200 c->idct_put = ff_simple_idct_put_neon; |
201 c->idct_add= ff_simple_idct_add_neon; | 201 c->idct_add = ff_simple_idct_add_neon; |
202 c->idct = ff_simple_idct_neon; | 202 c->idct = ff_simple_idct_neon; |
203 c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM; | 203 c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM; |
204 } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || | 204 } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || |
205 CONFIG_VP6_DECODER) && | 205 CONFIG_VP6_DECODER) && |
206 avctx->idct_algo == FF_IDCT_VP3) { | 206 avctx->idct_algo == FF_IDCT_VP3) { |
207 c->idct_put= ff_vp3_idct_put_neon; | 207 c->idct_put = ff_vp3_idct_put_neon; |
208 c->idct_add= ff_vp3_idct_add_neon; | 208 c->idct_add = ff_vp3_idct_add_neon; |
209 c->idct = ff_vp3_idct_neon; | 209 c->idct = ff_vp3_idct_neon; |
210 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; | 210 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; |
211 } | 211 } |
212 } | 212 } |
213 | 213 |
214 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; | 214 c->put_pixels_tab[0][0] = ff_put_pixels16_neon; |
311 if (CONFIG_VP3_DECODER) { | 311 if (CONFIG_VP3_DECODER) { |
312 c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon; | 312 c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon; |
313 c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon; | 313 c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon; |
314 } | 314 } |
315 | 315 |
316 c->vector_fmul = ff_vector_fmul_neon; | 316 c->vector_fmul = ff_vector_fmul_neon; |
317 c->vector_fmul_window = ff_vector_fmul_window_neon; | 317 c->vector_fmul_window = ff_vector_fmul_window_neon; |
318 c->vector_fmul_scalar = ff_vector_fmul_scalar_neon; | 318 c->vector_fmul_scalar = ff_vector_fmul_scalar_neon; |
319 c->butterflies_float = ff_butterflies_float_neon; | 319 c->butterflies_float = ff_butterflies_float_neon; |
320 c->scalarproduct_float = ff_scalarproduct_float_neon; | 320 c->scalarproduct_float = ff_scalarproduct_float_neon; |
321 c->int32_to_float_fmul_scalar = ff_int32_to_float_fmul_scalar_neon; | 321 c->int32_to_float_fmul_scalar = ff_int32_to_float_fmul_scalar_neon; |
322 c->vector_fmul_reverse = ff_vector_fmul_reverse_neon; | 322 c->vector_fmul_reverse = ff_vector_fmul_reverse_neon; |
323 c->vector_fmul_add = ff_vector_fmul_add_neon; | 323 c->vector_fmul_add = ff_vector_fmul_add_neon; |
324 c->vector_clipf = ff_vector_clipf_neon; | |
324 | 325 |
325 c->vector_fmul_sv_scalar[0] = ff_vector_fmul_sv_scalar_2_neon; | 326 c->vector_fmul_sv_scalar[0] = ff_vector_fmul_sv_scalar_2_neon; |
326 c->vector_fmul_sv_scalar[1] = ff_vector_fmul_sv_scalar_4_neon; | 327 c->vector_fmul_sv_scalar[1] = ff_vector_fmul_sv_scalar_4_neon; |
327 | 328 |
328 c->sv_fmul_scalar[0] = ff_sv_fmul_scalar_2_neon; | 329 c->sv_fmul_scalar[0] = ff_sv_fmul_scalar_2_neon; |
329 c->sv_fmul_scalar[1] = ff_sv_fmul_scalar_4_neon; | 330 c->sv_fmul_scalar[1] = ff_sv_fmul_scalar_4_neon; |
330 | 331 |
331 c->vector_clipf = ff_vector_clipf_neon; | |
332 | |
333 if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { | 332 if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { |
334 c->float_to_int16 = ff_float_to_int16_neon; | 333 c->float_to_int16 = ff_float_to_int16_neon; |
335 c->float_to_int16_interleave = ff_float_to_int16_interleave_neon; | 334 c->float_to_int16_interleave = ff_float_to_int16_interleave_neon; |
336 } | 335 } |
337 | 336 |
338 if (CONFIG_VORBIS_DECODER) | 337 if (CONFIG_VORBIS_DECODER) |
339 c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon; | 338 c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon; |