From 96711ecff9ccfe9d124548416394a86902fdc90e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Feb 2008 13:49:15 +0000 Subject: [PATCH] const src for bswap Originally committed as revision 11732 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.c | 2 +- libavcodec/dsputil.h | 2 +- libavcodec/mlib/dsputil_mlib.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index d9e0127..abd588b 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -214,7 +214,7 @@ static int pix_norm1_c(uint8_t * pix, int line_size) return s; } -static void bswap_buf(uint32_t *dst, uint32_t *src, int w){ +static void bswap_buf(uint32_t *dst, const uint32_t *src, int w){ int i; for(i=0; i+8<=w; i+=8){ diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index c139435..ec0b500 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -310,7 +310,7 @@ typedef struct DSPContext { * note, this might read from src1[-1], src2[-1] */ void (*sub_hfyu_median_prediction)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w, int *left, int *left_top); - void (*bswap_buf)(uint32_t *dst, uint32_t *src, int w); + void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w); void (*h264_v_loop_filter_luma)(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0); void (*h264_h_loop_filter_luma)(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0); diff --git a/libavcodec/mlib/dsputil_mlib.c b/libavcodec/mlib/dsputil_mlib.c index 1b1b534..203a8da 100644 --- a/libavcodec/mlib/dsputil_mlib.c +++ b/libavcodec/mlib/dsputil_mlib.c @@ -374,7 +374,7 @@ static void avg_pixels8_xy2_mlib(uint8_t * dest, const uint8_t * ref, /* swap byte order of a buffer */ -static void bswap_buf_mlib(uint32_t *dst, uint32_t *src, int w) +static void bswap_buf_mlib(uint32_t *dst, const uint32_t *src, int w) { mlib_VectorReverseByteOrder_U32_U32(dst, src, w); } -- 2.7.4