Applications
C\C++ Source Code:
UINT CaptureStream0(WORD wHWCardNo,unsigned char *lpBuffer, DWORD DataLenth, DWORD FrameNo)
{///processing one frame from the video channel 0
int err, nCh = 0;
if(g_bIsOut[nCh])
{
if(tgisVideoSourceOK(nCh))
{
if(g_dwFrameStream0%1==0)
{
err = tgProcessingCardDataFlame(lpBuffer, DataLenth, nCh, (int)FrameNo );
if(0==err)
{///if the one frame data had been processed withnot error, then get the regions of the flame.
tgShowUserOut(nCh);
}
}
g_dwFrameStream0++;
}
}
tgShowUserOut(1);
return 0;
}


