git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@257 a31d4220-a93d-0410-bf67-fe4944624d44

This commit is contained in:
spacy51 2008-01-02 16:31:48 +00:00
parent 00b1af55aa
commit 3c3fdf4a83
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ inline unsigned int RGBtoYUV_32( unsigned int c )
register unsigned char r, g, b;
b = c & 0x0000FF;
g = ( c & 0x00FF00 ) >> 8;
r = ( c & 0xFF0000 ) >> 16;
r = c >> 16;
return ( (r + g + b) << 14 ) +
( ( r - b + 512 ) << 4 ) +
( ( 2*g - r - b ) >> 3 ) + 128;