locked
About the setting flag MFT_OUTPUT_STREAM_PROVIDES_SAMPLES on Metro?

    Question

  • Hello everyone,

    I developing video decoder with D3D11 interface on Win8 metro, refer to: http://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx

    I've done by the document steps, but when I set the flag MFT_OUTPUT_STREAM_PROVIDES_SAMPLES in GetOutputStreamInfo(), as below:

    if (m_pDX11Mgr != nullptr)
     {
      pStreamInfo->dwFlags |= MFT_OUTPUT_STREAM_PROVIDES_SAMPLES;
     }

    after this, I cannot receive video stream data, if I delete the flag, I can receive video data, could you give me a help?

    Thanks in advance.

    Jackic


    one work one gain!

    Tuesday, September 11, 2012 8:52 AM

Answers

  • Are you supporting DXVA2? If you are you need to provide samples appropriately. If you are not using DXVA2 you do not need to set this property.

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, September 13, 2012 12:46 AM
    Moderator

All replies

  • Are you supporting DXVA2? If you are you need to provide samples appropriately. If you are not using DXVA2 you do not need to set this property.

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, September 13, 2012 12:46 AM
    Moderator
  • to James,

    Thank you, now i develop video decoder on Win8 Metro, i 've tried to use DXVA2 and D3D9 interface, but failed, maybe not Win8 Metro support DXVA2(i think so), so i use D3D11 interface, could you tell me whether Metro support DXVA2 ?

    Jackic


    one work one gain!

    Thursday, September 13, 2012 1:30 AM