Exemplo n.º 1
0
 private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr)
 {
     showVideo.VIDEOHDR videoHeader = new showVideo.VIDEOHDR();
     byte[]             VideoData;
     videoHeader = (showVideo.VIDEOHDR)showVideo.GetStructure(lpVHdr, videoHeader);
     VideoData   = new byte[videoHeader.dwBytesUsed];
     showVideo.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
     {
         this.RecievedFrame(VideoData);
     }
 }
Exemplo n.º 2
0
 private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr)
 {
     showVideo.VIDEOHDR videoHeader = new showVideo.VIDEOHDR();
     byte[] VideoData;
     videoHeader = (showVideo.VIDEOHDR)showVideo.GetStructure(lpVHdr, videoHeader);
     VideoData = new byte[videoHeader.dwBytesUsed];
     showVideo.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
         this.RecievedFrame(VideoData);
 }