diff options
author | Nick Kurshev <nickols_k@mail.ru> | 2001-11-05 20:56:11 +0300 |
---|---|---|
committer | Nick Kurshev <nickols_k@mail.ru> | 2001-11-05 20:56:11 +0300 |
commit | 8dd6739c941f4d90347b5ce6fa1f182d21b8df4e (patch) | |
tree | 6ba492130ce74e705416cd064880d68f91af0bdf /postproc | |
parent | 90226a43e64e50d74932210e97fb9d4f27a01fdb (diff) |
Fixed rgb32(24)to15 stuff
Originally committed as revision 2721 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/rgb2rgb.c | 4 | ||||
-rw-r--r-- | postproc/rgb2rgb_template.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 5779bf5e30..ddb805bbc6 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size) const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } @@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size) const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index 5779bf5e30..ddb805bbc6 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size) const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } @@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size) const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } |