Пример #1
0
        protected IBMDSwitcherFrame GetFrame()
        {
            IBMDSwitcherFrame frame;

            this.switcherMediaPool.CreateFrame(_BMDSwitcherPixelFormat.bmdSwitcherPixelFormat8BitARGB, (uint)this.switcher.GetVideoWidth(), (uint)this.switcher.GetVideoHeight(), out frame);
            IntPtr buffer;

            frame.GetBytes(out buffer);
            byte[] source = this.ConvertImage();
            Marshal.Copy(source, 0, buffer, source.Length);
            return(frame);
        }
Пример #2
0
        protected IBMDSwitcherFrame GetFrame()
        {
            IBMDSwitcherMediaPool switcherMediaPool = (IBMDSwitcherMediaPool)this.switcher;
            IBMDSwitcherFrame     frame;

            switcherMediaPool.CreateFrame(_BMDSwitcherPixelFormat.bmdSwitcherPixelFormat8BitARGB, 1920, 1080, out frame);
            IntPtr buffer;

            frame.GetBytes(out buffer);
            byte[] source = this.ConvertImage();
            Marshal.Copy(source, 0, buffer, source.Length);
            return(frame);
        }