🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #257

Re: select video source

#257
From: Remy Lebeau (TeamB)
Date: Mon, 13 Dec 2004 19:20
29 lines
1911 bytes
"luca" <lct@tele2.it> wrote in message
news:41bdc99f$1@newsgroups.borland.com...

> We must distinguish bitween driver and video source.
>
> Logitech USB Video Camera,   Version:  5.4.4.1005
> Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649
>
> are two drivers, the first one from Logitech  the second from
> Microsoft. changing the driver dont't affect the video source.
> the only way that I found to change the  video source is to use
> capDlgVideoSource(), but this is a dialog window, I need to do
> this by code.

You already know how to select the source programmally.  That is what the
capGetDriverDescription() and capDriverConnect() functions are for.  Despite
their names, they enumerate/connect *devices and drivers*, not just drivers
alone.  Even Microsoft says that to connect to a particular device, you use
these functions.

Alternatively, look at the capSetMCIDeviceName() macro.  This works only if
you are using MCI-enabled devices, though.

Alternatively, maybe you can look at using DirectX instead - specially,
DirectShow.


Gambit
Technical Details
Message-ID: <41bdec9b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41bdc99f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,dc8a50238942ec8c
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.multimedia
References: <41bdc99f$1@newsgroups.borland.com>
Subject: Re: select video source
Date: Mon, 13 Dec 2004 11:20:54 -0800
Lines: 31
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: 68.69.17.41
Message-ID: <41bdec9b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102965915 68.69.17.41 (13 Dec 2004 11:25:15 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail