Full-screen, exclusive-mode video and D3D debugging
- From: Doctor Bonzo <DoctorBonzo@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Sep 2008 10:39:01 -0700
I'm developing a video playback app using using a custom allocator-presenter
for VMR9, developed from one of the Dx9 SDK samples. On the release system,
this will be a full-screen, single-monitor display controlled via TCP. My
development system is dual monitor with a single graphics card (this means
single 'adapter', yes?). I would like to test the app by having the video
display full screen (exclusive mode) on one monitor and control it from a
telnet window on the other monitor. Video display is OK on one monitor until
I activate the telnet window on the other. At this point I get 'device lost'
and the video window minimizes itself. I sort of understand where the
'device lost' is coming from - though I'm not sure where the minimization is
happening. Exclusive-mode seems to be necessary for smooth video playback -
windowed mode playback is stuttery, though only slightly.
So I have two questions: First, is it possible to switch between exclusive
and windowed modes without having to completely re-create the Direct3D
device? As an aside, I find myself confused with the 'exclusive mode'
terminology - this seems to come from DirectDraw. Is it the same as the
state of the 'Windowed' member of the D3DPRESENTATION_PARAMETERS?
I'll also need to make the video window visible and invisible to let other
apps show through from time to time. With windowed mode, ::ShowWindow(..)
works fine, but with a full-screen window, this doesn't seem to work. So my
second question is: Should ::ShowWindow(..) work on a full-screen,
exclusive-mode window, or do I need to use some other approach?
.
- Follow-Ups:
- Prev by Date: Screen shots with OPenGL
- Next by Date: Re: No textures with D3DPOOL_MANAGED under Vista?
- Previous by thread: Screen shots with OPenGL
- Next by thread: RE: Full-screen, exclusive-mode video and D3D debugging
- Index(es):
Relevant Pages
|