User`s manual
Function Library • 41
AngeloMPEG4_Encode_Set_Callback(Encoder_Index:Longint;
lpEncodeCallBackProc:EncodeCallBackProc):Longint;
@ Argument
Encoder_Index:
Indicates the channel Index for the MPEG4 encoder. The range of channels is 0 –
15.
@ Return Code
@ Example
<VC/BCB >
int Result;
int Encoder_Index = 0;
void __stdcall Encode_Callback(int Encoder_Index,
long int_status, param_str *param_struct)
{
if(int_status & 0x01 ==1) //Image Ready
{
}
if(int_status >> 4 & 0x01 ==1) //Motion Dection
{
}
}
Result =
AngeloMPEG4_Encode_Set_Callback
(Encoder_Index,
Encode_Callback);
< Visual Basic >
Dim Encoder_Index As Long, Result As Long
Public Sub encode_callback(ByVal Encoder_Index As
Long, ByVal int_status As Long, param_str As
param_struct)
Select Case (int_status)
Case 1: “preview
Case 16: “ motion detection
End Select
End Sub
Channel =0
Result =
AngeloMPEG4_Encode_Set_Callback
(Encoder_Index,
Encode_Callback)