Answered by:
Problem playing video with DX9

Question
-
I have writting a video playback window using DirectX9. For every frame of the video, I render the video to an off screen surface, then Stretch it to window size to the devices back buffer and then uses the devices Present to paint it to the actual window. Most of the time this works correctly. But sometimes it will not paint the entire window. I've seen this when another window comes up and obscures part of the video window while the video is playing. When the second window goes away, the Present only paints the portion that was obscured. The rest of the window stops painting. Usually, if you click on the window, then the entire window starts painting again. So it is like DX9 is clipping the paint in this instance to only the portion that was obscured.
Is there any way to always just paint the entire window? I have set the Video hint when creating the device. I have set very setting I could find in the help file regarding clipping and nothing helps this problem.
Jeff- Moved by Yan-Fei Wei Monday, June 23, 2008 5:46 AM off-topic off C++
Thursday, June 19, 2008 2:11 PM
Answers
-
Hi,
Thanks for participating on the MSDN Forum! I think your question is mainly related with DirectX, but not Visual C++. Thus, I suggest you post your question on the microsoft.public.win32.programmer.directx.video newsgroup, there you find DirectX experts and your question should be answered in no time.
The people there will have enough experience with DirectX to give you the best advice or answer!Thanks!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
Monday, June 23, 2008 5:45 AM -
- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
Sunday, May 13, 2012 3:56 AM
All replies
-
Hi,
Thanks for participating on the MSDN Forum! I think your question is mainly related with DirectX, but not Visual C++. Thus, I suggest you post your question on the microsoft.public.win32.programmer.directx.video newsgroup, there you find DirectX experts and your question should be answered in no time.
The people there will have enough experience with DirectX to give you the best advice or answer!Thanks!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
Monday, June 23, 2008 5:45 AM -
- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, May 13, 2012 3:56 AM
Sunday, May 13, 2012 3:56 AM