Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zheng_s_
Beginner
79 Views

MFX_HANDLE_VA_DISPLAY mfxHandleType even not exist !!!!!!!!

I download the Media sdk Linux version and install on my linux machine.I try to build my first decode-piple code. I just copy the orignial source code with my wrapper. here is the orignal code from sample_decode/pipeline_decode.cpp

sts = m_mfxSession.SetHandle(static_cast<mfxHandleType>(MFX_HANDLE_VA_DISPLAY), va_dpy);

but compiler compalin the MFX_HANDLE_VA_DISPLAY not defined. Then I check the header file definition in /opt/intel/mediasdk/include/mfxstructures.h

typedef enum {
    MFX_HANDLE_DIRECT3D_DEVICE_MANAGER9         =1,      /* IDirect3DDeviceManager9      */
    MFX_HANDLE_D3D9_DEVICE_MANAGER              = MFX_HANDLE_DIRECT3D_DEVICE_MANAGER9,
    MFX_HANDLE_RESERVED1                        = 2,
    MFX_HANDLE_D3D11_DEVICE                     = 3,
    MFX_HANDLE_RESERVED2                        = 4,
    MFX_HANDLE_RESERVED3                        = 5
} mfxHandleType;
The MFX_HANDLE_VA_DISPLAY even dont exist !!!! And looks it supports Windows DirectX Only!!!!!!

here i

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
79 Views

While it is true that the mfxHandleType enum in mfxstructures.h shows its Windows roots, you can find MFX_HANDLE_VA_DISPLAY in mfxlinux.h.

 

 

 

Reply