const src for bswap

Originally committed as revision 11732 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 17 years ago
parent 2ec3861238
commit 96711ecff9
  1. 2
      libavcodec/dsputil.c
  2. 2
      libavcodec/dsputil.h
  3. 2
      libavcodec/mlib/dsputil_mlib.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){

@ -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);

@ -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);
}

Loading…
Cancel
Save