History

floatdsp: move scalarproduct_float from dsputil to avfloatdsp.

This makes the aac decoder and all voice codecs independent of dsputil.

Ronald S. Bultje committed 13 years ago

Commit d56668b1 parent 5959bfa23 files · +142 −141Browse files

Showing the changes to libavcodec/arm (2 of 23 files). Show all

Unified · Split

2 files
  1. libavcodec/arm/dsputil_init_neon.c +0 −3
  2. libavcodec/arm/dsputil_neon.S +0 −13
libavcodec/arm/dsputil_init_neon.c+0−3
@@ -142,8 +142,6 @@ void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); · 141 unmodified lines
142void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);142void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
143void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);143void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
144 144
145float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len);
146
147void ff_vector_clipf_neon(float *dst, const float *src, float min, float max,145void ff_vector_clipf_neon(float *dst, const float *src, float min, float max,
148 int len);146 int len);
149void ff_vector_clip_int32_neon(int32_t *dst, const int32_t *src, int32_t min,147void ff_vector_clip_int32_neon(int32_t *dst, const int32_t *src, int32_t min,
@@ -293,7 +291,6 @@ void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) · 143 unmodified lines
293 c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon;291 c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon;
294 }292 }
295 293
296 c->scalarproduct_float = ff_scalarproduct_float_neon;
297 c->vector_clipf = ff_vector_clipf_neon;294 c->vector_clipf = ff_vector_clipf_neon;
298 c->vector_clip_int32 = ff_vector_clip_int32_neon;295 c->vector_clip_int32 = ff_vector_clip_int32_neon;
299 296
libavcodec/arm/dsputil_neon.S+0−13
@@ -531,19 +531,6 @@ function ff_add_pixels_clamped_neon, export=1 · 530 unmodified lines
531 bx lr531 bx lr
532endfunc532endfunc
533 533
534function ff_scalarproduct_float_neon, export=1
535 vmov.f32 q2, #0.0
5361: vld1.32 {q0},[r0,:128]!
537 vld1.32 {q1},[r1,:128]!
538 vmla.f32 q2, q0, q1
539 subs r2, r2, #4
540 bgt 1b
541 vadd.f32 d0, d4, d5
542 vpadd.f32 d0, d0, d0
543NOVFP vmov.32 r0, d0[0]
544 bx lr
545endfunc
546
547function ff_vector_clipf_neon, export=1534function ff_vector_clipf_neon, export=1
548VFP vdup.32 q1, d0[1]535VFP vdup.32 q1, d0[1]
549VFP vdup.32 q0, d0[0]536VFP vdup.32 q0, d0[0]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t