Mercurial > libavcodec.hg
changeset 6241:2799f65a24de libavcodec
const src for bswap
author | michael |
---|---|
date | Fri, 01 Feb 2008 13:49:15 +0000 |
parents | 442529fa4b73 |
children | 67986191913d |
files | dsputil.c dsputil.h mlib/dsputil_mlib.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dsputil.c Fri Feb 01 13:42:08 2008 +0000 +++ b/dsputil.c Fri Feb 01 13:49:15 2008 +0000 @@ -214,7 +214,7 @@ 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){
--- a/dsputil.h Fri Feb 01 13:42:08 2008 +0000 +++ b/dsputil.h Fri Feb 01 13:49:15 2008 +0000 @@ -310,7 +310,7 @@ * 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);
--- a/mlib/dsputil_mlib.c Fri Feb 01 13:42:08 2008 +0000 +++ b/mlib/dsputil_mlib.c Fri Feb 01 13:49:15 2008 +0000 @@ -374,7 +374,7 @@ /* 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); }