Re: Detecting Available Resolutions Part Deux
From: Iain (idownsXXXX_at_dircon.co.uk)
Date: 03/16/04
- Next message: Alex: "how to make VMR9 use several buffers-surfaces"
- Previous message: The March Hare \(MVP\): "Re: Problem with custom compression video filter"
- In reply to: Jon Evans: "Detecting Available Resolutions Part Deux"
- Next in thread: Jon Evans: "Re: Detecting Available Resolutions Part Deux"
- Reply: Jon Evans: "Re: Detecting Available Resolutions Part Deux"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 14:51:07 -0000
There are 2 ways of getting this information.
With older drivers - Video For Windows - you have the choice of the dialog
or nothing.
with newer drivers WDM compliant there is (usually? always?) an interface
IAMStreamConfig defined which lets you enumerate formats..
The way I tackled the VFW mess is simply to prepare a list of formats that
the device MIGHT support and attempt to set them.
If this succeeded I ticked the format and could use it in a selection list.
Iain
"Jon Evans" <anonymous@discussions.microsoft.com> wrote in message
news:BFA26C28-345D-46B2-8C66-BA1EB0F9162D@microsoft.com...
> I have a capture device that if you bring up the properties of its pin you
get a dialog with 16 different resolutions available.
>
> Programatically I can get the capture device's capabilities, but according
to them there are only 3 resolutions.
>
> I know I've posted a similar question recently, so am I now correct in
assuming that it is IMPOSSIBLE programatically build your own list of such
resolutions ?
>
> Maybe I'm tackling this the wrong way. Is it possible to save the entire
config of a capture device and then force it to use that config next time
your app starts e.g. a service engineer initially configures the system,
goes away and from then on every time the app starts (after a power cut for
example) the app will use the engineers settings ? Or should I be using
something other than DirectShow for industrial applications ?
>
> TTFN,
> Jon
- Next message: Alex: "how to make VMR9 use several buffers-surfaces"
- Previous message: The March Hare \(MVP\): "Re: Problem with custom compression video filter"
- In reply to: Jon Evans: "Detecting Available Resolutions Part Deux"
- Next in thread: Jon Evans: "Re: Detecting Available Resolutions Part Deux"
- Reply: Jon Evans: "Re: Detecting Available Resolutions Part Deux"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|