User`s manual

Appendix: GEME-VM3000 Series Introduction 129
Delphi (Windows 98/NT/2000/XP)
AngeloMPEG4_Decode_Set_Callback(Decoder_Index:Lo
ngint;
lpDecodeCallBackProc:DecodeCallBackProc):Longint
;
@ Argument
Decoder_Index: Indicates the channel number of Decoder.
The range of channel is 0 - 15.
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);