Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-03-16 21:42:26 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-03-16 21:42:26 +0400
commit092115bf5bac0438072e3ac0d90e8a2014bf50f0 (patch)
treefbe39975e63cc8e7ef172ba8bd6f257f5d9af1f1 /src/thirdparty/VirtualDub/Kasumi
parent09463d6ff3ad5214d9093df9ce33d0022b6958b6 (diff)
update Changelog.txt
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4151 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/thirdparty/VirtualDub/Kasumi')
-rw-r--r--src/thirdparty/VirtualDub/Kasumi/source/pixel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thirdparty/VirtualDub/Kasumi/source/pixel.cpp b/src/thirdparty/VirtualDub/Kasumi/source/pixel.cpp
index e6eaada3f..d8d845f82 100644
--- a/src/thirdparty/VirtualDub/Kasumi/source/pixel.cpp
+++ b/src/thirdparty/VirtualDub/Kasumi/source/pixel.cpp
@@ -922,15 +922,15 @@ uint32 VDConvertRGBToYCbCr(uint8 r8, uint8 g8, uint8 b8, bool use709, bool useFu
cb = ( -7509*r - 25259*g + 32768*b + 0x808000) >> 16;
cr = ( 32768*r - 29763*g - 3005*b + 0x808000);
} else {
- y = ( 11966*r + 40254*g + 4064*b + 0x8000) >> 8;
+ y = ( 11966*r + 40254*g + 4064*b + 0x108000) >> 8;
cb = ( -6596*r - 22189*g + 28784*b + 0x808000) >> 16;
- cr = ( 28784*r - 26145*g + 2639*b + 0x808000);
+ cr = ( 28784*r - 26145*g - 2639*b + 0x808000);
}
} else {
if (useFullRange) {
y = ( 19595*r + 38470*g + 7471*b + 0x8000) >> 8;
cb = (-11058*r - 21710*g + 32768*b + 0x808000) >> 16;
- cr = ( 32768*r - 27439*g + 5329*b + 0x808000);
+ cr = ( 32768*r - 27439*g - 5329*b + 0x808000);
} else {
y = ( 16829*r + 33039*g + 6416*b + 0x108000) >> 8;
cb = ( -9714*r - 19071*g + 28784*b + 0x808000) >> 16;