PrabuKumar's WinCE Blog

November 16, 2012

Windows Embedded Compact 2013 is a official name of WEC vNext

Filed under: WinCE 7 — Prabu Kumar @ 7:34 pm
Tags: , ,

Finally the WEC vNext had been named as Windows Embedded Compact 2013.As per the road map released before two days it is expected to be launched by Q2 of 2013. David Campbell has shared this news and as well some of the new features of this WEC 2013 release.Check out the blog post here.

http://blogs.msdn.com/b/windows-embedded/archive/2012/11/14/windows-embedded-compact-v-next-uncovered.aspx

July 30, 2012

OMAP35x\DM37x VRFB and Video Capture in WEC7

Filed under: WinCE 7 — Prabu Kumar @ 4:14 pm
Tags: , , , , , , ,

With OMAP35x/DM37x EVM ,we will face issue of image corruption while rendering the camera output to the screen because of presence of Virtual Rotate Frame Buffer(VRFB). But if we want to use  both VRFB and Camera preview to work together in WinCE 6.0 ,we can set the renderer of the DShow  camera application to use the GDI mode instead of the DirectDraw renderer.The code used in WinCE 6.0,

 

IAMVideoRendererMode::SetMode(DWORD dwMode)

 

Where dwMode   -   AM_VIDEO_RENDERER_MODE_DDRAW (or)  AM_VIDEO_RENDERER_MODE_GDI

 

 

 

But in the WEC7,there is a change in the DShow renderer (i.e., Video Mixing Renderer(VMR)),which does not support the IAMVideoRendererMode interface or method which we used in WinCE 6.0 to switch the GDI mode.

 

In this blog ,I will show how to fix this issue. But it will have a disadvantage of very low frame rate in the rendering because of not using the hardware overlay.

 

In VMR we can control the renderer preferences using the IVMRFilterConfig::SetRenderingPrefs() method.

 

For this issue here is the fix, we can force the VMR to use the RenderPrefs_ForceOffscreen instead of Overlays, which is more or less the same functionality as used in the WinCE 6.0.

 

IVMRFilterConfig    *pVMRConfig;

 

hr = m_pVMRRenderer.QueryInterface(&pVMRConfig );

if(FAILED(hr) || pVMRConfig == NULL)

{

            FAIL(TEXT("Retrieving the IID_IVMRFilterConfig failed."));

}

 

 

hr = pVMRConfig->SetRenderingPrefs( RenderPrefs_ForceOffscreen| RenderPrefs_AllowOffscreen );

if ( FAILED(hr) )

{

FAIL( TEXT("%S: ERROR %d@%S – failed to set the rendering prefs. (0x%08x)" ), __FUNCTION__, __LINE__, __FILE__, hr );

}

 

 

 

 

May 30, 2012

Subscribe to Microsoft Windows Embedded Team Blog

Filed under: WinCE 6.0,WinCE 7 — Prabu Kumar @ 7:56 pm
Tags: , ,

Microsoft Windows embedded team started new blog to update about the presence of Windows Embedded in Intelligent Systems.

"The Windows Embedded Team Blog brings together a range of voices to spotlight Windows Embedded news and information and reflect the evolving world of intelligent systems and specialized devices."

"Approaching Embedded Intelligently"

Follow this blog to check updates on Microsoft Windows Embedded.

November 10, 2011

How to Get USB Camera Working in Windows Embedded Compact 7

Filed under: WinCE 7 — Prabu Kumar @ 12:22 pm
Tags: , ,

As many of you might be using the USB camera on their WinCE device, so for testing this USB camera on the wince device Microsoft had released the source code for the driver. Check in the link for the source of Windows Embedded CE 6.0 version.

To get the USB camera working under WinCE 6.0,check out my other post on the same topic.

So now in order to get the same source code working in Windows Embedded compact 7,it need few changes in the driver because of few additions in the WEC7.To see what are the changes and to get camera working under WEC7,check out my blog post in the following link.

http://www.e-consystems.com/blog/camera/?p=740

Have fun in playing around with USB camera on WEC7.

July 2, 2011

Building a Simple Camera DirectShow Filter graph Application in WEC7

Filed under: Article,WinCE 6.0,WinCE 7 — Prabu Kumar @ 4:34 pm
Tags: , , , ,

Many of you might have noted that your WinCE 6.0 DirectShow camera application was not working with Windows Embedded Compact 7(WEC7). The reason is "In the newly launched Windows Embedded Compact 7 OS, the Video Mixing Renderer (VMR) filter replaces the DirectShow Video renderer filter as a default video renderer".

In this post I will try to give basic idea to start writing the Simple DirectShow Camera application on WEC7 and also "How to" start with the newly added component in WEC7 (i.e., Video Mixing Renderer (VMR)).

One more important thing is Windows Embedded CE 6.0 DirectShow camera Application will not work on Windows Embedded Compact (WEC7) without the changes which I had done in this post.So check out the post here.

http://www.e-consystems.com/blog/windowsce/?p=697

Also check out this codeplex project for the application source code which I mentioned in the above post.

http://dshowcamerawec7.codeplex.com

This is the same application which I uploaded before for  post Working with display controller using DDraw APIs in WinCE / Windows Mobile with the modifications done to work on WEC7.

Blog at WordPress.com.