Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 17 Jul 2008 01:21:08 +0800,    group: microsoft.public.win32.programmer.directx.video        back       


preview is blocked after still image capturing   
I am writing a program which has a video preview and a button to take still 
image during capturing.

Everything goes well until when I capture a still image using 
VideoControl->SetMode(pStillPin,VideoControlFlag_Trigger), the preview 
stream stops there. However, the capture graph continues to run because I 
can still take photo using SetMode.

The only way to recover from the situation to to use pMediaControl->Stop and 
pMediaControl->Start, which, unfortunately, takes a lot of time (more than 7 
seconds in my case).

Any ideas how I can resume the preview without resetting the graph? Thanks
date: Thu, 17 Jul 2008 01:21:08 +0800   author:   minhdanh

Re: preview is blocked after still image capturing   
On Thu, 17 Jul 2008 01:21:08 +0800, minhdanh wrote:

> I am writing a program which has a video preview and a button to take still 
> image during capturing.

Is there a reason you need to use the Still pin rather than just getting an
image from the existing graph?  (for example, the still pin has higher
resolution and you need that)

If not, you can use:

IVMRWindowlessControl[9]::GetCurrentImage  if you are using the VMR[9] to
display a preview

or the sample grabber.


-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 17 Jul 2008 10:48:08 -0600   author:   The March Hare [MVP] erland

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us