title: How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7?
body: <p>I've been researching all day and not gotten very far. I'm on windows 7, using directx 11. (My final output is to be a frame of video onto a DX11 texture)
  I want to decode some very large H.264 video files, and the CPU (using libav) doesn't cut it.</p>
  <p>I've looked at the hwaccel capabilities of libav using DXVA2, but hit a road block when I need to create a IDirectXVideoDecoder, which can only be created with a D3D9 interface. (which I don't have using DX11)</p>
  <p>Whenever I've looked up DXVA documentation, it doesn't reference DX11, was this removed in DX10 or 11? (Can't find any confirmation of this, nor anywhere that says DXVA2 is redundant, possibly that it's been superceeded by DXVA-HD?)</p>
  <p>Then I've looked into the media foundation SDK as that looks like what I'm supposed to use for DX11... But none of the types exist in my headers (The docs say to just include &lt;d3d11.h&gt;, but this yields nothing). They also specify a minimum of windows 8 to use it.</p>
  <p>I believe to use MF I need the windows 8 SDK, which now includes all the directx libs/headers.</p>
  <p>So this leaves a gap with windows 7... Is it possible to get hardware accelerated video decoding? and if so, which API am I supposed to be using?</p>
  <p>Edit: As another follow up, my MediaFoundation (and AVF, android, magic leap, etc etc) implementation is in my open source project
  <a href="https://github.com/NewChromantics/PopH264" rel="nofollow noreferrer">https://github.com/NewChromantics/PopH264</a>
  Edit2: But I don't know if it supports win7 :)</p>