VMR9Allocator in fullscreen

Hello,

It seems that the same kind of question has already been asked, but there is no answer yet.

I am using the Directshow sample VMR9Allocator, and I need to display my application in fullscreen. First I simply tried to maximize the main window size in popup mode; it works but I still have the common tearing of the windowed mode. So I would like to implement the vmr9 renderless fullscreen mode, but I don't know how to proceed, I can't find any information about that.

VMR9Allocator is already in renderless mode. Now when creating my device, I changed my D3DPRESENT_PARAMETERS and put Windowed at false ; however in this case it seems that vmr9 reads my video but nothing is diplayed on the screen.

I don't know what I am missing. Could somebody help me

Thank you for your time and consideration.


Answer this question

VMR9Allocator in fullscreen

  • detzX

    Hi. Thank you for your answer.

    Well, in fact, TextureD3D9 was the first sample that I tried : it does not fulfill my particular needs, because my videos are very large, and so the frame rate is very low. I tried different samples and VMR9Allocator seemed to be the best one.

    Now that my frame rate is OK, and that I display exactly what I want, it remains the problem of tearing. I checked with a common directx application, that in windowed mode there is tearing and that in fullscreen (the windowed parameter of the D3DPRESENT_PARAMETERS is set to false) there is none. It seems that there is a VMR9 Renderless Fullscreen mode, but unfortunately I don't succeed in implementing this mode. As I told before, the simple way to explain my problem is : how to put the VMR9Allocator sample in fullscreen mode (not just a popup window with a maximized size).

    I go on searching. Any help is welcome. Thank you.

  • gonzo883

    Hi,
    maybe this can help you:
    http://msdn2.microsoft.com/en-us/library/ms867211.aspx

    If you want to display a movie in a game, as a texture for example, it ist better to use the TextureD3D9 sample from the Platfom SDK. The VMR9 Allocator example has its own rendering methode and this can cause stuttering while plaing the movie.

    If you have problems with the makefiles from the Platfom SDK, you can use this projectfiles
    they work great, even on vs2005 standard edition.

    http://tmhare.mvps.org/downloads.htm

    have fun :)


  • VMR9Allocator in fullscreen