|
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
|