public virtual int GetCreationParameters( out D3D11_VIDEO_DECODER_DESC pVideoDesc, out D3D11_VIDEO_DECODER_CONFIG pConfig ) { var fp = GetFunctionPointer(7); if (m_GetCreationParametersFunc == null) { m_GetCreationParametersFunc = (GetCreationParametersFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetCreationParametersFunc)); } return(m_GetCreationParametersFunc(m_ptr, out pVideoDesc, out pConfig)); }
public virtual int GetVideoDecoderConfig( ref D3D11_VIDEO_DECODER_DESC pDesc, uint Index, out D3D11_VIDEO_DECODER_CONFIG pConfig ) { var fp = GetFunctionPointer(15); if (m_GetVideoDecoderConfigFunc == null) { m_GetVideoDecoderConfigFunc = (GetVideoDecoderConfigFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetVideoDecoderConfigFunc)); } return(m_GetVideoDecoderConfigFunc(m_ptr, ref pDesc, Index, out pConfig)); }
public virtual int CreateVideoDecoder( ref D3D11_VIDEO_DECODER_DESC pVideoDesc, ref D3D11_VIDEO_DECODER_CONFIG pConfig, out ID3D11VideoDecoder ppDecoder ) { var fp = GetFunctionPointer(3); if (m_CreateVideoDecoderFunc == null) { m_CreateVideoDecoderFunc = (CreateVideoDecoderFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateVideoDecoderFunc)); } ppDecoder = new ID3D11VideoDecoder(); return(m_CreateVideoDecoderFunc(m_ptr, ref pVideoDesc, ref pConfig, out ppDecoder.PtrForNew)); }