diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-15 22:16:25 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-15 22:17:24 +0100 |
commit | dd2631a6df299d12ce0158f277cb1940e0a800f2 (patch) | |
tree | b3da785e924c168a0d10d0e6d40c282ead7f52d6 /libavcodec | |
parent | 1bc85fb32dddf01792ae0850aa9a52d4a5737adb (diff) | |
download | ffmpeg-dd2631a6df299d12ce0158f277cb1940e0a800f2.tar.gz |
dsputil: mark source of diff_bytes as const.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsputil.c | 2 | ||||
-rw-r--r-- | libavcodec/dsputil.h | 2 | ||||
-rw-r--r-- | libavcodec/x86/dsputilenc_mmx.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 9451f2c98c..f4cfecdc7e 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -1921,7 +1921,7 @@ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){ dst[i+0] += src[i+0]; } -static void diff_bytes_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){ +static void diff_bytes_c(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w){ long i; #if !HAVE_FAST_UNALIGNED if((long)src2 & (sizeof(long)-1)){ diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index e62c35387f..318b118e83 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -378,7 +378,7 @@ typedef struct DSPContext { /* huffyuv specific */ void (*add_bytes)(uint8_t *dst/*align 16*/, uint8_t *src/*align 16*/, int w); - void (*diff_bytes)(uint8_t *dst/*align 16*/, uint8_t *src1/*align 16*/, uint8_t *src2/*align 1*/,int w); + void (*diff_bytes)(uint8_t *dst/*align 16*/, const uint8_t *src1/*align 16*/, const uint8_t *src2/*align 1*/,int w); /** * subtract huffyuv's variant of median prediction * note, this might read from src1[-1], src2[-1] diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c index c0f9111f41..accfe61be2 100644 --- a/libavcodec/x86/dsputilenc_mmx.c +++ b/libavcodec/x86/dsputilenc_mmx.c @@ -821,7 +821,7 @@ static int vsad16_mmx2(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, i } #undef SUM -static void diff_bytes_mmx(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){ +static void diff_bytes_mmx(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w){ x86_reg i=0; __asm__ volatile( "1: \n\t" |