User`s manual

Function Library • 57
AngeloMPEG4_Decode_Set_Motion_Detection–
@ Syntax
C/C++ (Windows 98/NT/2000/XP)
int AngeloMPEG4_Decode_Set_Motion_Detection(int Decoder_Index,int Area,int
enable, int Threshold,int interval,int action,int X_Start,int Y_Start,int Width,int
Height);
Visual Basic (Windows 98/NT/2000/XP)
AngeloMPEG4_Decode_Set_Motion_Detection(ByVal
Decoder_Index
As Long,
ByVal enable As Long, ByVal Threshold As Long, ByVal interval As Long, ByVal
action As Long) As Long
Delphi (Windows 98/NT/2000/XP)
AngeloMPEG4_Decode_Set_Motion_Detection(Decoder_Index:Longint;
Area :Longint; enable:Longint; Threshold:Longint; interval:Longint; action:Longint;
X_Start:Longint; Y_Start:Longint; Width:Longint; Height:Longint):Longint;
@ Argument
Decoder_Index:
Indicates the channel index of the decoder. The range of channels is 0 - 15.
Area:
User can assign up to 4 motion detection areas in one frame, the valid values
are from 1-4.
enable:
1: enable Motion Detection
0: disable Motion Detection
Threshold:
Determines the sensitivity of motion detection measurement. The valid values are
from 0 - 15, with 0 being the highest sensitivity.
interval:
The time interval between measurements of motion detection.
action:
This argument describes what actions the function will do.
bit 0: Callback,
bit 1: Reserved,
bit 2: Send motion frame
For example: when action = 1+4, the function will do callback and send motion
image
X_Start, Y_Start, Width, Height:
Sets the boundary of motion detection area
@ Return Code