Commit c6faa48d authored by nick's avatar nick

Fixed rgb32(24)to15 stuff


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2721 b3059339-0415-0410-9bf9-f77b7e298cf2
parent e2a0d0c2
...@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size) ...@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1]; const int g= src[i+1];
const int r= src[i+2]; 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) ...@@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1]; const int g= src[i+1];
const int r= src[i+2]; 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);
} }
} }
......
...@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size) ...@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1]; const int g= src[i+1];
const int r= src[i+2]; 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) ...@@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1]; const int g= src[i+1];
const int r= src[i+2]; 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);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment