1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fixed rgb32(24)to15 stuff

Originally committed as revision 2721 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
Nick Kurshev 2001-11-05 17:56:11 +00:00
parent 90226a43e6
commit 8dd6739c94
2 changed files with 4 additions and 4 deletions

View File

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

View File

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