🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Video for windows API

#16699
From: Remy Lebeau (TeamB)
Date: Wed, 30 Apr 2003 05:50
21 lines
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
Technical Details
Message-ID: <3eaf63de$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eaf45c3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a68cd8ac93ff472c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-29 22:59:16 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eaf45c3@newsgroups.borland.com>
Subject: Re: Video for windows API
Date: Tue, 29 Apr 2003 22:50:38 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3eaf63de$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051681758 207.175.226.26 (29 Apr 2003 22:49:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail