Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VMR9 & SampleGrabber at the same time , how ?

VMR9 & SampleGrabber at the same time , how ?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomannouncement
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Akin Ocal
    wrote on last edited by
    #1

    http://msdn2.microsoft.com/en-us/library/ms786690.aspx It says : Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7. My application must do both VMR9 rendering and sample grabbing. But there are many problems when i include d3d9.h+vmr9.h with qedit.h at the same time , it gives lots of errors when trying to build how can i use vmr9 filter and samplegrabber filter at the same time ?

    M 1 Reply Last reply
    0
    • A Akin Ocal

      http://msdn2.microsoft.com/en-us/library/ms786690.aspx It says : Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7. My application must do both VMR9 rendering and sample grabbing. But there are many problems when i include d3d9.h+vmr9.h with qedit.h at the same time , it gives lots of errors when trying to build how can i use vmr9 filter and samplegrabber filter at the same time ?

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The VMR has a built-in frame grabber that maybe you can use instead. See IBasicVideo::GetCurrentImage()[^] for VMR in windowed mode or IVMRWindowlessControl9::GetCurrentImage()[^] for VMR in windowless mode. Mark

      Mark Salsbery Microsoft MVP - Visual C++

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        The VMR has a built-in frame grabber that maybe you can use instead. See IBasicVideo::GetCurrentImage()[^] for VMR in windowed mode or IVMRWindowlessControl9::GetCurrentImage()[^] for VMR in windowless mode. Mark

        Mark Salsbery Microsoft MVP - Visual C++

        A Offline
        A Offline
        Akin Ocal
        wrote on last edited by
        #3

        Thanks but what about audio streams ? And what about processing imag , will it only give image or can it give chance of processing image buffer just in sample-grabber ?

        M 1 Reply Last reply
        0
        • A Akin Ocal

          Thanks but what about audio streams ? And what about processing imag , will it only give image or can it give chance of processing image buffer just in sample-grabber ?

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Well this is unfortunate, but based on messing with this and searching for an answer... It looks like the only workaround is to separate VMR-related and SampleGrabber-related code into two different source modules. The two modules will need to include a different set of header files (which means including them in a pre-compiled header won't work). Another alternative is to make your own custom grabber filter. The Grabber Filter Sample in the DirectShow SDK implements one that already works. You'd want to change the names and GUIDs to your own to differentiate it from the SDK sample filter. Mark

          Mark Salsbery Microsoft MVP - Visual C++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups