diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-15 22:17:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-15 22:17:36 +0100 |
commit | c743aad557fe14980b9912869d90008ecb29ba97 (patch) | |
tree | 7c79531d535c36c6ac149ab49db9333d2c041c5e /libavcodec | |
parent | dd2631a6df299d12ce0158f277cb1940e0a800f2 (diff) | |
download | ffmpeg-c743aad557fe14980b9912869d90008ecb29ba97.tar.gz |
huffyuv: some more consts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/huffyuv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 81144a1c42..afc395a906 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -136,7 +136,7 @@ static const unsigned char classic_add_chroma[256] = { 6, 12, 8, 10, 7, 9, 6, 4, 6, 2, 2, 3, 3, 3, 3, 2, }; -static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int left){ +static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int left){ int i; if(w<32){ for(i=0; i<w; i++){ @@ -156,7 +156,7 @@ static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, uint8_t *src } } -static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int *red, int *green, int *blue, int *alpha){ +static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue, int *alpha){ int i; int r,g,b,a; r= *red; @@ -184,7 +184,7 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst, uint8 *alpha= src[(w-1)*4+A]; } -static inline void sub_left_prediction_rgb24(HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int *red, int *green, int *blue){ +static inline void sub_left_prediction_rgb24(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue){ int i; int r,g,b; r= *red; |