diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-06-04 08:10:48 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-06-04 08:10:48 +0300 |
commit | d5c868325cefcd5fad53361d1dfdc9757674eb70 (patch) | |
tree | a838e509fdc2468220466e6337097b3ef590b00c /libswscale/rgb2rgb.c | |
parent | 0cb5123c8f65b3d7715deb22ce8430eccc21996e (diff) | |
parent | 5b3834c5d1033f05d798278c33782c5563247062 (diff) | |
download | mpv-d5c868325cefcd5fad53361d1dfdc9757674eb70.tar.bz2 mpv-d5c868325cefcd5fad53361d1dfdc9757674eb70.tar.xz |
Merge svn changes up to r26979
Most of the conflicts are trivial.
Conflicts:
Makefile
cfg-mplayer.h
input/input.c
libmenu/vf_menu.c
libmpcodecs/dec_video.c
libmpcodecs/vf_expand.c
libmpcodecs/vf_vo.c
libmpdemux/demux_mkv.c
libmpdemux/demuxer.c
libmpdemux/demuxer.h
libvo/vo_directfb2.c
libvo/vo_gl.c
libvo/vo_winvidix.c
libvo/vo_xv.c
libvo/vo_xvidix.c
libvo/vo_xvmc.c
libvo/x11_common.c
mplayer.c
osdep/timer-linux.c
stream/cache2.c
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r-- | libswscale/rgb2rgb.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c index 19487d731d..ce0e0ee31a 100644 --- a/libswscale/rgb2rgb.c +++ b/libswscale/rgb2rgb.c @@ -305,13 +305,13 @@ void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui { long i; for (i=0; i<num_pixels; i++) - ((uint16_t *)dst)[i] = ((uint16_t *)palette)[src[i]]; + ((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]]; } void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette) { long i; for (i=0; i<num_pixels; i++) - ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[src[i]]); + ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]); } /** @@ -321,13 +321,13 @@ void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const ui { long i; for (i=0; i<num_pixels; i++) - ((uint16_t *)dst)[i] = ((uint16_t *)palette)[src[i]]; + ((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]]; } void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette) { long i; for (i=0; i<num_pixels; i++) - ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[src[i]]); + ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]); } void rgb32tobgr24(const uint8_t *src, uint8_t *dst, long src_size) @@ -372,8 +372,8 @@ void rgb24tobgr32(const uint8_t *src, uint8_t *dst, long src_size) void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size) { const uint16_t *end; - uint8_t *d = (uint8_t *)dst; - const uint16_t *s = (uint16_t *)src; + uint8_t *d = dst; + const uint16_t *s = (const uint16_t *)src; end = s + src_size/2; while (s < end) { @@ -396,7 +396,7 @@ void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size) void rgb16tobgr24(const uint8_t *src, uint8_t *dst, long src_size) { const uint16_t *end; - uint8_t *d = (uint8_t *)dst; + uint8_t *d = dst; const uint16_t *s = (const uint16_t *)src; end = s + src_size/2; while (s < end) @@ -446,7 +446,7 @@ void rgb16tobgr15(const uint8_t *src, uint8_t *dst, long src_size) void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size) { const uint16_t *end; - uint8_t *d = (uint8_t *)dst; + uint8_t *d = dst; const uint16_t *s = (const uint16_t *)src; end = s + src_size/2; while (s < end) @@ -470,8 +470,8 @@ void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size) void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size) { const uint16_t *end; - uint8_t *d = (uint8_t *)dst; - const uint16_t *s = (uint16_t *)src; + uint8_t *d = dst; + const uint16_t *s = (const uint16_t *)src; end = s + src_size/2; while (s < end) { |