User`s manual

82 Function Library
int_status:
Interrupt status:
Bit 0: Image ready
Bit 1: Motion Detection occur
Bit 2: Connection establish
@ Return Code
0: ERROR_NoError
@ Example
< VC/BCB >
int Result;
int channel = 0;
void __stdcall Decode_Callback(int channel, long
int_status, long VideoBufferaddress)
{
if((int_status & 0x01) == 1) //Image Ready
{
//Start Drawing
memcpy(Temp,(PVOID)VideoBufferaddress,iWidt
h*iHeight*3);
gpDC-
>BitBlt(10,10,iWidth,iHeight,MemDC,0,0,SRCC
OPY);
}
if((int_status>>1 & 0x01) == 1) //
MotionDetection Occur
{
//Deal with MotionDetection
Beep(1024, 100);
}
if((int_status>>2 & 0x01) == 1) //Connection
establish
{
//Prepare DC for Preview