title: Windows media foundation 2D Buffer
body: <p>I am having issues understanding in what instance <code>IMF2DBuffer</code> is available for use. Using <code>QueryInterface</code> on <code>IMFMediaBuffer</code> results in <code>No such interface supported</code>. (I am using Windows 10.)</p>
  
  <p>I found this wording but it's very vague:</p>
  
  <blockquote>
    <p>This interface is designed specifically for image data. To get a
    pointer to this interface, call QueryInterface on the media buffer.
    <strong>Not all media buffer objects expose this interface.</strong> But if a media buffer does expose the IMF2DBuffer interface, you should use that
    interface to access the data, if possible, rather than using
    IMFMediaBuffer. You can still use the IMFMediaBuffer interface, but it
    might be less efficient.</p>
  </blockquote>
  
  <p>I can't find any information on in what cases it does or doesn't expose this. Does it rely on the media? The output format? The codec? OS version? It really doesn't say. </p>