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#
  4. DirectX (9) Video Renderer

DirectX (9) Video Renderer

Scheduled Pinned Locked Moved C#
graphicsgame-devperformancehelpquestion
3 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.
  • E Offline
    E Offline
    Eduard Keilholz
    wrote on last edited by
    #1

    Hey folks, I'm trying to write a video (multimedia) application. What I want is two video objects running video clips. Once the first one stops, the other fades in and than back. I want to render the video images on a surface, but I'm having problems converting the video image to a Texture. I Have an IVMRWindowlessControl9 (called windowlessCtrl) which is (obviously) my Video Mixing Renderer. Using the GetCurrentImage function, I'll be able to get a pointer to the current video image in memory. windowlessCtrl.GetCurrentImage(out currentImage); Now I need to convert the currentImage pointer (IntPtr) to a texture in order to render the image. Can anybody help me? Thanks!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    M 1 Reply Last reply
    0
    • E Eduard Keilholz

      Hey folks, I'm trying to write a video (multimedia) application. What I want is two video objects running video clips. Once the first one stops, the other fades in and than back. I want to render the video images on a surface, but I'm having problems converting the video image to a Texture. I Have an IVMRWindowlessControl9 (called windowlessCtrl) which is (obviously) my Video Mixing Renderer. Using the GetCurrentImage function, I'll be able to get a pointer to the current video image in memory. windowlessCtrl.GetCurrentImage(out currentImage); Now I need to convert the currentImage pointer (IntPtr) to a texture in order to render the image. Can anybody help me? Thanks!

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      M Offline
      M Offline
      Migounette
      wrote on last edited by
      #2

      1st Check that the currentImage is not null currentImage != IntPtr.Zero and then BitmapInfoHeader bih = (BitmapInfoHeader)Marshal.PtrToStructure(currentImage , typeof(BitmapInfoHeader)); take care it depends of your pin, insure that your media type is a set to video and the output format is a video type.

      E 1 Reply Last reply
      0
      • M Migounette

        1st Check that the currentImage is not null currentImage != IntPtr.Zero and then BitmapInfoHeader bih = (BitmapInfoHeader)Marshal.PtrToStructure(currentImage , typeof(BitmapInfoHeader)); take care it depends of your pin, insure that your media type is a set to video and the output format is a video type.

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        You for president!

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        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