Article View: borland.public.cppbuilder.multimedia
Article #418Overlay Color Key
From: KL Chin
Date: Tue, 27 Jul 2004 12:04
Date: Tue, 27 Jul 2004 12:04
16 lines
1270 bytes
1270 bytes
Hi,
How do convert correct RGB color to YUV for Video Overlay Color Key
for DirectX with 16 Bit color video display.
Is the below code correct? I found it only work for 24 or 32 Bit color
ddofx.dckDestColorkey.dwColorSpaceLowValue =
RGB( GetBValue(clOverYUV),GetGValue(clOverYUV),GetRValue(clOverYUV) );
ddofx.dckDestColorkey.dwColorSpaceHighValue =
RGB( GetBValue(clOverYUV),GetGValue(clOverYUV),GetRValue(clOverYUV) );
Many thx in advanced.
Regards
KL Chin
Technical Details
Message-ID:
<410644c9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,39341944cd50a519,start X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "KL Chin" <klchin@1asia.com.my> Newsgroups: borland.public.cppbuilder.multimedia Subject: Overlay Color Key Date: Tue, 27 Jul 2004 20:04:27 +0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 219.93.184.30 Message-ID: <410644c9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090929865 219.93.184.30 (27 Jul 2004 05:04:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail