This makes the aac decoder and all voice codecs independent of dsputil.
Showing the changes to libavcodec/arm (2 of 23 files). Show all
Unified · Split
| @@ -142,8 +142,6 @@ void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); · 141 unmodified lines | ||
| 142 | 142 | void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int); |
| 143 | 143 | void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int); |
| 144 | 144 | |
| 145 | −float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len); | |
| 146 | − | |
| 147 | 145 | void ff_vector_clipf_neon(float *dst, const float *src, float min, float max, |
| 148 | 146 | int len); |
| 149 | 147 | void 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 | 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 | 294 | c->vector_clipf = ff_vector_clipf_neon; |
| 298 | 295 | c->vector_clip_int32 = ff_vector_clip_int32_neon; |
| 299 | 296 | |
| @@ -531,19 +531,6 @@ function ff_add_pixels_clamped_neon, export=1 · 530 unmodified lines | ||
| 531 | 531 | bx lr |
| 532 | 532 | endfunc |
| 533 | 533 | |
| 534 | −function ff_scalarproduct_float_neon, export=1 | |
| 535 | − vmov.f32 q2, #0.0 | |
| 536 | −1: 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 | |
| 543 | −NOVFP vmov.32 r0, d0[0] | |
| 544 | − bx lr | |
| 545 | −endfunc | |
| 546 | − | |
| 547 | 534 | function ff_vector_clipf_neon, export=1 |
| 548 | 535 | VFP vdup.32 q1, d0[1] |
| 549 | 536 | VFP vdup.32 q0, d0[0] |