Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody.

I have a Windows CE 6 powered device with a camera.
A test application from Microsoft CameraDShowApp.exe works partly, it does capture the video and pictures from the camera but doesn't display live video correctly.

I've tried to use a SampleGrabber implementation (downloaded from one article on this site) and it has shown to me that it is possible to change resolution of the output stream from the camera - a callback function registered in SampleGrabber received amount of bytes in the data array corresponding to the selected resolution.

So I have a suspicion that I need to set the same resolution for both video capturing filter and video rendering filter.

The question is - how to do it for the last one ?
The standard video renderer for Windows CE doesn't support IAMStreamConfig interface and has no pins supporting it.

Can anybody help me with an advice ?

Thanks in advance,
Alex
Posted

No need to set resolution for VideoRenderer.

Configure your capture device using IAMStreamconfig interface is enough.

1.First add your filter to the Filter graph and then using capturegraphbuilder object to query interface IAMStreamconfig.

2.using GetFormat(AM_MEDIA_TYPE ) from IAMStreamconfig u can receive camera MediaType

3.Assign obtained mediatype to VideoInfoheader and set its bmiheader.biwidth and bmiHeader.biHeight to ur wish..

4. Then add your renderer to filter graph and connect both capturefilter and renderer and run the graph..
 
Share this answer
 
Comments
premprakash999 23-Oct-12 6:05am    
Hi aasikRAja,

Can u please give us a sample project for this. I have tried the above listed steps but failed.
Hi aasikRAja,

Can u please give us a sample project for this. I have tried the above listed steps but failed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900