Example #1
0
 private void OnVideoFrameRecievedEventHandler(VideoFrameRecievedEventArgs args)
 {
     if (VideoFrameRecievedEventHandler != null)
     {
         VideoFrameRecievedEventHandler(this, args);
     }
 }
Example #2
0
        private void ProcessVideoFrame(IntPtr data, int linesize, int width, int height, uint number, uint time, int flag)
        {
            //using (Bitmap bitmap = new Bitmap(DecoderParams.Width, DecoderParams.Height, linesize, PixelFormat.Format24bppRgb, data))
            {
                Bitmap bitmap = new Bitmap(DecoderParams.Width, DecoderParams.Height, linesize, PixelFormat.Format24bppRgb, data);
                VideoFrameRecievedEventArgs args = new VideoFrameRecievedEventArgs {
                    VideoFrame = new VideoFrame {
                        Bitmap = bitmap, Timestamp = time,
                    }
                };

                OnVideoFrameRecievedEventHandler(args);
            }
        }
Example #3
0
 private void presenter_VideoFrameReadyEventHandler(object sender, VideoFrameRecievedEventArgs e)
 {
     OnVideoDataReady(e.VideoFrame.Bitmap);
 }
Example #4
0
        private void ProcessVideoFrame(IntPtr data, int linesize, int width, int height, uint number, uint time, int flag)
        {
            //using (Bitmap bitmap = new Bitmap(DecoderParams.Width, DecoderParams.Height, linesize, PixelFormat.Format24bppRgb, data))
            {
                Bitmap bitmap = new Bitmap(DecoderParams.Width, DecoderParams.Height, linesize, PixelFormat.Format24bppRgb, data);
                VideoFrameRecievedEventArgs args = new VideoFrameRecievedEventArgs { VideoFrame = new VideoFrame { Bitmap = bitmap, Timestamp = time, } };

                OnVideoFrameRecievedEventHandler(args);
            }
        }
Example #5
0
 private void OnVideoFrameRecievedEventHandler(VideoFrameRecievedEventArgs args)
 {
     if (VideoFrameRecievedEventHandler != null)
     {
         VideoFrameRecievedEventHandler(this, args);
     }
 }
Example #6
0
 private void presenter_VideoFrameReadyEventHandler(object sender, VideoFrameRecievedEventArgs e)
 {
     OnVideoDataReady(e.VideoFrame.Bitmap);
 }
Example #7
0
 private void Decoder_VideoFrameRecievedEventHandler(object sender, VideoFrameRecievedEventArgs e)
 {
     //...
     videoBuffer.Add(e.VideoFrame);
 }
Example #8
0
 private void Decoder_VideoFrameRecievedEventHandler(object sender, VideoFrameRecievedEventArgs e)
 {
     //...
     videoBuffer.Add(e.VideoFrame);
 }