This commit is contained in:
shenweip committed 2013-09-18 18:19:08 +08:00
1 parent d0c5a721b0
commit 6bcf1705ec
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ void __JpegDoState(PointerWrap &p) {
}
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;
cr = cr - 128;
int r = y + cr + (cr >> 2) + (cr >> 3) + (cr >> 5);
+1 -1
View File
@@ -1354,7 +1354,7 @@ u32 sceMpegAvcResourceInit(u32 mpeg)
}
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 g = (abgr >> 8) & 0xFF;
u8 b = (abgr >> 0) & 0xFF;