Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages
Started by Tony Forgan
Wed, 30 Apr 2003 03:38
Video for windows API
Author: Tony Forgan
Date: Wed, 30 Apr 2003 03:38
Date: Wed, 30 Apr 2003 03:38
24 lines
1716 bytes
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.
Re: Video for windows API
Author: Remy Lebeau (TeamB)
Date: Wed, 30 Apr 2003 05:50
Date: Wed, 30 Apr 2003 05:50
21 lines
1811 bytes
1811 bytes
"Tony Forgan" <tony@wildlime.com> wrote in message news:3eaf45c3@newsgroups.borland.com... > 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. All I know is that you need to call capGetVideoFormat() to know the actual format of the image that is returned in the VIDEOHDR structure. The BITMAPINFO structure you pass to capGetVideoFormat() will be filled in with information telling you the formatting of the bitmap contained in the VIDEOHDR. The image itself will be in either YUV or RGB format, depending on the settings of the capture. Asside from that, there's not much in the way of public documentation when it comes to working with VIDEOHDR that I can find. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads