From a00177a9520f05e74e895ef60b43cc681d4e0574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 8 Jul 2007 23:15:00 +0000 Subject: [PATCH] make arguments to ssd_int8_vs_int16() const Originally committed as revision 9548 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.c | 3 ++- libavcodec/dsputil.h | 3 ++- libavcodec/i386/dsputil_mmx.c | 2 +- libavcodec/ppc/int_altivec.c | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index cf08957203..fd064d6169 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3697,7 +3697,8 @@ static int vsse16_c(/*MpegEncContext*/ void *c, uint8_t *s1, uint8_t *s2, int st return score; } -static int ssd_int8_vs_int16_c(int8_t *pix1, int16_t *pix2, int size){ +static int ssd_int8_vs_int16_c(const int8_t *pix1, const int16_t *pix2, + int size){ int score=0; int i; for(i=0; i>1. diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 0705fd47a1..b9b365869a 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -1871,7 +1871,7 @@ DCT_SAD_FUNC(ssse3) #undef HSUM #undef DCT_SAD -static int ssd_int8_vs_int16_mmx(int8_t *pix1, int16_t *pix2, int size){ +static int ssd_int8_vs_int16_mmx(const int8_t *pix1, const int16_t *pix2, int size){ int sum; long i=size; asm volatile( diff --git a/libavcodec/ppc/int_altivec.c b/libavcodec/ppc/int_altivec.c index c1246ead2b..95497c99a7 100644 --- a/libavcodec/ppc/int_altivec.c +++ b/libavcodec/ppc/int_altivec.c @@ -29,7 +29,8 @@ #include "dsputil_altivec.h" -static int ssd_int8_vs_int16_altivec(int8_t *pix1, int16_t *pix2, int size) { +static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2, + int size) { int i, size16; vector signed char vpix1; vector signed short vpix2, vdiff, vpix1l,vpix1h;