diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 13:49:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 13:49:15 +0000 |
commit | 96711ecff9ccfe9d124548416394a86902fdc90e (patch) | |
tree | cfb1d919382af85ac743417b6277eaec95880b49 /libavcodec | |
parent | 2ec38612383389fbd73267297002ff927af60f2a (diff) | |
download | ffmpeg-96711ecff9ccfe9d124548416394a86902fdc90e.tar.gz |
const src for bswap
Originally committed as revision 11732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsputil.c | 2 | ||||
-rw-r--r-- | libavcodec/dsputil.h | 2 | ||||
-rw-r--r-- | libavcodec/mlib/dsputil_mlib.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index d9e0127e4f..abd588bec5 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 c13943580a..ec0b500d0a 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 1b1b5345a8..203a8da537 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); } |