make arguments to ssd_int8_vs_int16() const

Originally committed as revision 9548 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Måns Rullgård 18 years ago
parent bad700e346
commit a00177a952
  1. 3
      libavcodec/dsputil.c
  2. 3
      libavcodec/dsputil.h
  3. 2
      libavcodec/i386/dsputil_mmx.c
  4. 3
      libavcodec/ppc/int_altivec.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<size; i++)

@ -200,7 +200,8 @@ typedef struct DSPContext {
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.

@ -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(

@ -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;

Loading…
Cancel
Save