locked
About "ID3D11VideoDevice::GetVideoDecoderProfile()".

    Question

  • hello everyone,

    refer to: http://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=VS.85).aspx

    now, i am begin to studying D3D11 or DXVA for video accelerateor for how to decoder mpeg2 video, but when i use the function "GetVideoDecoderProfile()" and get GUID ,such as: D3D11_DECODER_PROFILE_MPEG2_MOCOMP,D3D11_DECODER_PROFILE_MPEG2_IDCT, or D3D11_DECODER_PROFILE_MPEG2_VLD, then i judge it, VS2012 popup error message:

    error LNK2001: unresolved external symbol D3D11_DECODER_PROFILE_MPEG2_MOCOMP

    error LNK2001: unresolved external symbol D3D11_DECODER_PROFILE_MPEG2_IDCT
    error LNK2001: unresolved external symbol D3D11_DECODER_PROFILE_MPEG2_VLD

    i've checked the library "d3d11.lib" included.

    could someone give me a hand or advice.

    Thanks


    one work one gain!

    Wednesday, September 5, 2012 5:42 AM

Answers

  • Do you #include <initguid.h> or #define INITGUID before you #include "d3d11.h"?

    This is necessary to instruct the DEFINE_GUID calls in d3d11.h which module to define the variable in and which to reference it in.

    --Rob

    • Marked as answer by Jesse JiangModerator Friday, September 7, 2012 7:54 AM
    • Unmarked as answer by Jackic Friday, September 14, 2012 2:48 AM
    • Marked as answer by Jackic Friday, September 14, 2012 2:48 AM
    Friday, September 7, 2012 1:55 AM
    Owner
  • Do you #include <initguid.h> or #define INITGUID before you #include "d3d11.h"?

    This is necessary to instruct the DEFINE_GUID calls in d3d11.h which module to define the variable in and which to reference it in.

    --Rob

    Thanks to Rob, after add "#include <initguid.h>", compile successful.

    Jackic


    one work one gain!

    Friday, September 7, 2012 4:46 AM

All replies

  • Do you #include <initguid.h> or #define INITGUID before you #include "d3d11.h"?

    This is necessary to instruct the DEFINE_GUID calls in d3d11.h which module to define the variable in and which to reference it in.

    --Rob

    • Marked as answer by Jesse JiangModerator Friday, September 7, 2012 7:54 AM
    • Unmarked as answer by Jackic Friday, September 14, 2012 2:48 AM
    • Marked as answer by Jackic Friday, September 14, 2012 2:48 AM
    Friday, September 7, 2012 1:55 AM
    Owner
  • Do you #include <initguid.h> or #define INITGUID before you #include "d3d11.h"?

    This is necessary to instruct the DEFINE_GUID calls in d3d11.h which module to define the variable in and which to reference it in.

    --Rob

    Thanks to Rob, after add "#include <initguid.h>", compile successful.

    Jackic


    one work one gain!

    Friday, September 7, 2012 4:46 AM
  • You can also link to the DXGUID.LIB included with the Windows 8.0 SDK which contains many "DirectX" related GUIDs.
    Monday, September 10, 2012 6:55 PM
  • Thanks Chuck.

    Jackic


    one work one gain!

    Thursday, September 13, 2012 2:56 AM