This commit is contained in:
shenweip 2013-09-18 18:19:08 +08:00
parent d0c5a721b0
commit 6bcf1705ec
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void __JpegDoState(PointerWrap &p) {
} }
u32 convertYCbCrToABGR (int y, int cb, int cr) { u32 convertYCbCrToABGR (int y, int cb, int cr) {
//see http://en.wikipedia.org/wiki/Yuv#Y.27UV444_to_RGB888_conversion for mor information. //see http://en.wikipedia.org/wiki/Yuv#Y.27UV444_to_RGB888_conversion for more information.
cb = cb - 128; cb = cb - 128;
cr = cr - 128; cr = cr - 128;
int r = y + cr + (cr >> 2) + (cr >> 3) + (cr >> 5); int r = y + cr + (cr >> 2) + (cr >> 3) + (cr >> 5);

View File

@ -1354,7 +1354,7 @@ u32 sceMpegAvcResourceInit(u32 mpeg)
} }
u32 convertARGBToYCbCr(u32 abgr) { u32 convertARGBToYCbCr(u32 abgr) {
//see http://en.wikipedia.org/wiki/Yuv#Y.27UV444_to_RGB888_conversion for mor information. //see http://en.wikipedia.org/wiki/Yuv#Y.27UV444_to_RGB888_conversion for more information.
u8 r = (abgr >> 16) & 0xFF; u8 r = (abgr >> 16) & 0xFF;
u8 g = (abgr >> 8) & 0xFF; u8 g = (abgr >> 8) & 0xFF;
u8 b = (abgr >> 0) & 0xFF; u8 b = (abgr >> 0) & 0xFF;