[FFmpeg-cvslog] r11732 - in trunk/libavcodec: dsputil.c dsputil.h mlib/dsputil_mlib.c
michael
subversion
Fri Feb 1 14:49:15 CET 2008
Author: michael
Date: Fri Feb 1 14:49:15 2008
New Revision: 11732
Log:
const src for bswap
Modified:
trunk/libavcodec/dsputil.c
trunk/libavcodec/dsputil.h
trunk/libavcodec/mlib/dsputil_mlib.c
Modified: trunk/libavcodec/dsputil.c
==============================================================================
--- trunk/libavcodec/dsputil.c (original)
+++ trunk/libavcodec/dsputil.c Fri Feb 1 14:49:15 2008
@@ -214,7 +214,7 @@ static int pix_norm1_c(uint8_t * pix, in
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){
Modified: trunk/libavcodec/dsputil.h
==============================================================================
--- trunk/libavcodec/dsputil.h (original)
+++ trunk/libavcodec/dsputil.h Fri Feb 1 14:49:15 2008
@@ -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);
Modified: trunk/libavcodec/mlib/dsputil_mlib.c
==============================================================================
--- trunk/libavcodec/mlib/dsputil_mlib.c (original)
+++ trunk/libavcodec/mlib/dsputil_mlib.c Fri Feb 1 14:49:15 2008
@@ -374,7 +374,7 @@ static void avg_pixels8_xy2_mlib(uint8_t
/* 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);
}
More information about the ffmpeg-cvslog
mailing list