changeset 5255:669a97223dc7 libavcodec

make arguments to ssd_int8_vs_int16() const
author mru
date Sun, 08 Jul 2007 23:15:00 +0000
parents 727a49c28c51
children f540f39e1472
files dsputil.c dsputil.h i386/dsputil_mmx.c ppc/int_altivec.c
diffstat 4 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.c	Sun Jul 08 23:14:54 2007 +0000
+++ b/dsputil.c	Sun Jul 08 23:15:00 2007 +0000
@@ -3697,7 +3697,8 @@
     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<size; i++)
--- a/dsputil.h	Sun Jul 08 23:14:54 2007 +0000
+++ b/dsputil.h	Sun Jul 08 23:15:00 2007 +0000
@@ -200,7 +200,8 @@
     me_cmp_func ildct_cmp[5]; //only width 16 used
     me_cmp_func frame_skip_cmp[5]; //only width 8 used
 
-    int (*ssd_int8_vs_int16)(int8_t *pix1, int16_t *pix2, int size);
+    int (*ssd_int8_vs_int16)(const int8_t *pix1, const int16_t *pix2,
+                             int size);
 
     /**
      * Halfpel motion compensation with rounding (a+b+1)>>1.
--- a/i386/dsputil_mmx.c	Sun Jul 08 23:14:54 2007 +0000
+++ b/i386/dsputil_mmx.c	Sun Jul 08 23:15:00 2007 +0000
@@ -1871,7 +1871,7 @@
 #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(
--- a/ppc/int_altivec.c	Sun Jul 08 23:14:54 2007 +0000
+++ b/ppc/int_altivec.c	Sun Jul 08 23:15:00 2007 +0000
@@ -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;