예제 #1
0
 public void VideoProcessorGetStreamPixelAspectRatio(IntPtr pVideoProcessor, uint StreamIndex, ref int pEnabled, ref DXGI_RATIONAL pSourceAspectRatio, ref DXGI_RATIONAL pDestinationAspectRatio)
 {
     if (m_VideoProcessorGetStreamPixelAspectRatioFunc == null)
     {
         var fp = GetFunctionPointer(47);
         m_VideoProcessorGetStreamPixelAspectRatioFunc = (VideoProcessorGetStreamPixelAspectRatioFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(VideoProcessorGetStreamPixelAspectRatioFunc));
     }
     m_VideoProcessorGetStreamPixelAspectRatioFunc(m_ptr, pVideoProcessor, StreamIndex, ref pEnabled, ref pSourceAspectRatio, ref pDestinationAspectRatio);
 }
예제 #2
0
 public void VideoProcessorGetStreamOutputRate(IntPtr pVideoProcessor, uint StreamIndex, ref D3D11_VIDEO_PROCESSOR_OUTPUT_RATE pOutputRate, ref int pRepeatFrame, ref DXGI_RATIONAL pCustomRate)
 {
     if (m_VideoProcessorGetStreamOutputRateFunc == null)
     {
         var fp = GetFunctionPointer(42);
         m_VideoProcessorGetStreamOutputRateFunc = (VideoProcessorGetStreamOutputRateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(VideoProcessorGetStreamOutputRateFunc));
     }
     m_VideoProcessorGetStreamOutputRateFunc(m_ptr, pVideoProcessor, StreamIndex, ref pOutputRate, ref pRepeatFrame, ref pCustomRate);
 }