コード例 #1
0
 public int ReleaseDecoderBuffer(IntPtr pDecoder, D3D11_VIDEO_DECODER_BUFFER_TYPE Type)
 {
     if (m_ReleaseDecoderBufferFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_ReleaseDecoderBufferFunc = (ReleaseDecoderBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ReleaseDecoderBufferFunc));
     }
     return(m_ReleaseDecoderBufferFunc(m_ptr, pDecoder, Type));
 }
コード例 #2
0
 public int GetDecoderBuffer(IntPtr pDecoder, D3D11_VIDEO_DECODER_BUFFER_TYPE Type, ref uint pBufferSize, ref IntPtr ppBuffer)
 {
     if (m_GetDecoderBufferFunc == null)
     {
         var fp = GetFunctionPointer(7);
         m_GetDecoderBufferFunc = (GetDecoderBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDecoderBufferFunc));
     }
     return(m_GetDecoderBufferFunc(m_ptr, pDecoder, Type, ref pBufferSize, ref ppBuffer));
 }
コード例 #3
0
 public int ReleaseDecoderBuffer([NativeTypeName("ID3D11VideoDecoder *")] ID3D11VideoDecoder *pDecoder, D3D11_VIDEO_DECODER_BUFFER_TYPE Type)
 {
     return(((delegate * unmanaged <ID3D11VideoContext2 *, ID3D11VideoDecoder *, D3D11_VIDEO_DECODER_BUFFER_TYPE, int>)(lpVtbl[8]))((ID3D11VideoContext2 *)Unsafe.AsPointer(ref this), pDecoder, Type));
 }
コード例 #4
0
 public int GetDecoderBuffer([NativeTypeName("ID3D11VideoDecoder *")] ID3D11VideoDecoder *pDecoder, D3D11_VIDEO_DECODER_BUFFER_TYPE Type, [NativeTypeName("UINT *")] uint *pBufferSize, [NativeTypeName("void **")] void **ppBuffer)
 {
     return(((delegate * unmanaged <ID3D11VideoContext2 *, ID3D11VideoDecoder *, D3D11_VIDEO_DECODER_BUFFER_TYPE, uint *, void **, int>)(lpVtbl[7]))((ID3D11VideoContext2 *)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer));
 }