Beispiel #1
0
 private void FrameCallback(IntPtr lwnd, IntPtr lpvhdr)
 {
     VideoAPI.VIDEOHDR videoHeader = new VideoAPI.VIDEOHDR();
     byte[]            VideoData;
     videoHeader = (VideoAPI.VIDEOHDR)VideoAPI.GetStructure(lpvhdr, videoHeader);
     VideoData   = new byte[videoHeader.dwBytesUsed];
     VideoAPI.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
     {
         this.RecievedFrame(VideoData);
     }
 }
Beispiel #2
0
 private void FrameCallback(IntPtr lwnd, IntPtr lpvhdr)
 {
     VideoAPI.VIDEOHDR videoHeader = new VideoAPI.VIDEOHDR();
     byte[] VideoData;
     videoHeader = (VideoAPI.VIDEOHDR)VideoAPI.GetStructure(lpvhdr, videoHeader);
     VideoData = new byte[videoHeader.dwBytesUsed];
     VideoAPI.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
         this.RecievedFrame(VideoData);
 }