コード例 #1
0
ファイル: PreviewWindow.cs プロジェクト: stoth68000/bmsdk
        void IDeckLinkScreenPreviewCallback.DrawFrame(IDeckLinkVideoFrame theFrame)
        {
            // First, pass the frame to the DeckLink screen preview helper
            m_previewHelper.SetFrame(theFrame);
            SetTimecode(theFrame);

            // Then draw the frame to the scene
            Render();

            System.Runtime.InteropServices.Marshal.ReleaseComObject(theFrame);
        }
コード例 #2
0
        void IDeckLinkScreenPreviewCallback.DrawFrame(IDeckLinkVideoFrame theFrame)
        {
            // First, pass the frame to the DeckLink screen preview helper
            //if (theFrame == null)
            //{
            //    return;
            //}

            try
            {
                if (previewHelper != null)
                {
                    previewHelper.SetFrame(theFrame);

                    Render();
                }
            }
            finally
            {
                Marshal.ReleaseComObject(theFrame);
            }
        }