Exemplo n.º 1
0
        void ReleaseInternalObjects()
        {
            _recv?.Dispose();
            _recv = null;

            _converter?.Dispose();
            _converter = null;
        }
Exemplo n.º 2
0
        public static Interop.VideoFrame?TryCaptureVideoFrame(Interop.Recv recv)
        {
            Interop.VideoFrame video;
            var type = recv.Capture(out video, IntPtr.Zero, IntPtr.Zero, 0);

            if (type != Interop.FrameType.Video)
            {
                return(null);
            }
            return((Interop.VideoFrame?)video);
        }
Exemplo n.º 3
0
 void PrepareInternalObjects()
 {
     if (_recv == null)
     {
         _recv = RecvHelper.TryCreateRecv(_ndiName);
     }
     if (_converter == null)
     {
         _converter = new FormatConverter(_resources);
     }
     if (_override == null)
     {
         _override = new MaterialPropertyBlock();
     }
 }