Click here to get back home

WM 5.0 DirectShow - How to set the best quality for image capture?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WM 5.0 DirectShow - How to set the best quality for image capture? asai@lycos.com 03-28-2006
Get Chitika Premium
Posted by asai@lycos.com on March 28, 2006, 1:40 pm
Please log in for more thread options
Hi,

I had earlier posted this question by mistake to the eVC group...Sorry
about that...

In my DirectShow , WM 5.0 project, on PPC 6700 w/ 1.3 M pixel camera.
adapted from CameraCapture MSDN sample.

I RenderStream using PIN_CATEGORY_STILL and trigger the STILL Pin using

SetMode(pPin, VideoControlFlag_Trigger)

hResult = pCaptureGraphBuilder->RenderStream( &PIN_CATEGORY_STILL,
&MEDIATYPE_Video, pVideoCapture, NULL, pImageSinkFilter );

When I query the GetNumberOfCapabilities on PPC 6700 I get only "2"
modes..and I can capture images in these two modes....240x320 and
480x640.

CComPtr<IAMStreamConfig> pConfig ;
hResult = pConfig->GetNumberOfCapabilities(&iCount, &iSize);

//and setting the highest of resolutions from above capabilities...
hResult = pConfig->SetFormat(pmtConfig);

However, the device supports resolutions upto 1280x1024 (using OEM's
Camera application)

How can I make DirectShow take images at such higher resolutions? Why
isn't highest resolution mentioned as one of the capabilities ? Does it
mean the camera driver only exposes these two resolution through the
STILL Pin?

Is there anything wrong in my approach ? or Am I totally off course?!

Please advice.

Thank you.

- Sai


Similar ThreadsPosted
DirectShow audio capture December 13, 2006, 7:28 am
About 'Capture Device Selection' in DirectShow February 7, 2006, 4:34 am
Video Capture Performance with directshow June 2, 2007, 11:05 am
DirectShow Audio Capture Dropping Samples June 3, 2005, 2:30 am
DirectShow Access to Image Buffer November 3, 2006, 12:14 pm
Audiostream from phone in high quality August 30, 2005, 6:44 am
Capture END key in smartphone using C# June 18, 2008, 9:45 am
How to capture notification data? April 16, 2006, 9:45 pm
does anyone know photo frame capture mode in WM5? October 8, 2005, 8:20 pm
Audio Capture In Windows Mobile January 16, 2006, 6:32 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap