aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/arm/dsputil_init_neon.c
diff options
context:
space:
mode:
authorKostya Shishkov2010-02-22 12:20:31 +0000
committerMåns Rullgård2010-02-22 12:20:31 +0000
commit9b3c455c5098ce647ac809d6526a71b79fd84a8f (patch)
tree84de4469adfa4c72774e29136a4a0cd96916b742 /libavcodec/arm/dsputil_init_neon.c
parent0e5f33f2426dae28725b14468b61cbad052da240 (diff)
ARM: NEON scalarproduct_int16 and scalarproduct_and_madd_int16
Patch by Kostya, minor fixes by me. Originally committed as revision 21958 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/arm/dsputil_init_neon.c')
-rw-r--r--libavcodec/arm/dsputil_init_neon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/arm/dsputil_init_neon.c b/libavcodec/arm/dsputil_init_neon.c
index 920b2e87c9..4a8de5edc7 100644
--- a/libavcodec/arm/dsputil_init_neon.c
+++ b/libavcodec/arm/dsputil_init_neon.c
@@ -227,6 +227,11 @@ void ff_float_to_int16_interleave_neon(int16_t *, const float **, long, int);
void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
+int32_t ff_scalarproduct_int16_neon(int16_t *v1, int16_t *v2, int len,
+ int shift);
+int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, int16_t *v2,
+ int16_t *v3, int len, int mul);
+
void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
{
if (!avctx->lowres) {
@@ -406,4 +411,7 @@ void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
if (CONFIG_VORBIS_DECODER)
c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon;
+
+ c->scalarproduct_int16 = ff_scalarproduct_int16_neon;
+ c->scalarproduct_and_madd_int16 = ff_scalarproduct_and_madd_int16_neon;
}