Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Go Back  Xtreme Visual Basic Talk > > > > Configure Video Mixing Renderer for Windowless-Mode


Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2004, 11:17 AM
lama lama is offline
Newcomer
 
Join Date: Dec 2003
Posts: 1
Question Configure Video Mixing Renderer for Windowless-Mode


Hello,

i would like to copy a running video into a larger Bitmap. I'm already able to create and run a FilterGraph with the Video Mixing Renderer (VMR), but there are redraw-problems, if I move the window.

So it might be useful to render to a backbuffer and/or run the VMR in Windowless-Mode. But I don't know how to configure the VMR for "Windowless"-Mode in VB.Net?

The sample in the DirectX-SDK (see below) is only available in C++. How can I access the FilterConfig-Interface in VB.Net?

Many thanx for your help,
Rolf

---- Sample from DirectX9 SDK Documentation-------------

Code:
HRESULT InitializeWindowlessVMR()
{
    IBaseFilter* pVmr = NULL;
    
    // Create the VMR.
    HRESULT hr = CoCreateInstance(CLSID_VideoMixingRenderer, NULL,
                     CLSCTX_INPROC, IID_IBaseFilter, (void**)&pVmr);
    // Add the VMR to the filter graph.
    hr = pGB->AddFilter(pVmr, L"Video Mixing Renderer");

    // Set the rendering mode.  
    IVMRFilterConfig* pConfig;
    hr = pVmr->QueryInterface(IID_IVMRFilterConfig,
                             (void**)&pConfig);
    pConfig->SetRenderingMode(VMRMode_Windowless);
    pConfig->Release();
   
    // Tell VMR which window it should clip to.
    //  Notice we don't release pWC as we use it
    //  for RepaintVideo and DisplayModeChanged
    //  throughout the lifetime of the app.
    hr = pVmr->QueryInterface(IID_IVMRWindowlessControl,
                              (void**)&pWC);
    hr = pWC->SetVideoClippingWindow(ghApp);
    hr = pVmr->Release();

    return hr;
}
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls advise... khtoo Communications 10 02-03-2004 06:13 PM
DirectX (distribute) jeremyrharris DirectX 12 04-04-2003 12:38 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
 
Configure Video Mixing Renderer for Windowless-Mode
Configure Video Mixing Renderer for Windowless-Mode
 
-->