2 Replies Latest reply on Apr 20, 2010 5:11 PM by mattpcomp

    DXVA and Direct3D

    mattpcomp
      using pixel shaders for video processing.

      Hi,


      I have a question regarding DXVA2 and render targets. I am developing a
      video processing application and ultimately I want to use pixel shaders (in
      D3D) to process video that comes out of the DXVA2 decoder.

      I have successfully managed to create an H264 decoder and decode video, but
      I run into problems when I try and change the render targets for the
      decoder. Ideally I want to use IDirect3DTexture9 surfaces created with
      IDirect3DDevice9::CreateTexture because this way I can avoid unnecessary
      video copies or colour space conversions. However, it seems as if only
      surfaces created with IDirectXVideoAccelerationService::CreateSurface will
      work in the decoder (note I have also tried
      IDirect3DDevice9::CreateOffscreenPlainSurface and
      IDirect3DDevice9::CreateRenderTarget but they dont work either). Please can
      you advise if what I am trying to do is possible and if so how.

      Many thanks,

      Matthew