🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16698

Video for windows API

#16698
From: Tony Forgan
Date: Wed, 30 Apr 2003 03:38
24 lines
1716 bytes
Hi,

Sorry if I am in the wrong group for this, but I think it is borderline
Multimedia/API.

Anyhow, I am using Video For Windows API to display a capture window in my
app. I have set a frame call back function to perform processing on a frame
of the video being displayed.

VIDEOHDR VideoHeader;
byte VideoData[152064];

MoveMemory(&VideoHeader, lpVHdr, sizeof(VideoHeader));
MoveMemory(VideoData, VideoHeader.lpData, VideoHeader.dwBytesUsed);

What I am wanting to do is extract the R,G & B values for each pixel. I
can't seem to work out how to do it. I have displayed each pixel using the
byte value of each pixel, which gives a result of only the Red values.

Any hints?

Thanks,

Tony Forgan.
Technical Details
Message-ID: <3eaf45c3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a68cd8ac93ff472c,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-29 20:47:55 PST
Reply-To: "Tony Forgan" <tony@wildlime.com>
From: "Tony Forgan" <tony@wildlime.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Video for windows API
Date: Wed, 30 Apr 2003 13:38:05 +1000
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 203.51.239.131
Message-ID: <3eaf45c3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051674051 203.51.239.131 (29 Apr 2003 20:40:51 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail