Beispiel #1
0
        private void onVideoFrameParsed(VideoFrameEventArgs args)
        {
            var handler = _videoFrameReceived;

            if (handler != null)
            {
                handler(this, args);
            }
        }
 private void VideoSource_VideoFrameReceived(object sender, VideoFrameEventArgs e)
 {
     if (!FlashbackState)
     {
         _lastFrame = e.Frame;
         //TODO:有可能导致数据溢出的强制数据转换。
         _frameBuffer.InputVideoFrame(e.Frame.Width, e.Frame.Height, e.Frame.Data, (int)e.Frame.Timestamp);
     }
     FramePerSec = _fpsCalculator.Calculate(1);
 }
Beispiel #3
0
 private void VideoSource_VideoFrameReceived(object sender, VideoFrameEventArgs e)
 {
 }