Пример #1
0
 private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr)
 {
     AviCapture.VIDEOHDR videoHeader = new AviCapture.VIDEOHDR();
     byte[] VideoData;
     videoHeader = (AviCapture.VIDEOHDR)AviCapture.GetStructure(lpVHdr, videoHeader);
     VideoData   = new byte[videoHeader.dwBytesUsed];
     AviCapture.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
     {
         this.RecievedFrame(VideoData);
     }
 }
Пример #2
0
 private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr)
 {
     AviCapture.VIDEOHDR videoHeader = new AviCapture.VIDEOHDR();
     byte[] VideoData;
     videoHeader = (AviCapture.VIDEOHDR)AviCapture.GetStructure(lpVHdr, videoHeader);
     VideoData = new byte[videoHeader.dwBytesUsed];
     AviCapture.Copy(videoHeader.lpData, VideoData);
     if (this.RecievedFrame != null)
         this.RecievedFrame(VideoData);
 }