User`s manual

Function Library 48
Result =
AngeloMPEG4_Encode_Set_Motion_Detection
(Encoder_I
ndex, area, enable, Threshold, interval, action,
X_Start, Y_Start, Width, Height)
<Delphi >
var
Encoder_Index, Result: Longint;
enable, Threshold, interval, action: Longint,
area:Longint, X_Star:Longint, Y_Start:Longint,
Width: Longint, Height:Longint;
begin
Encoder_Index:= 0;
enable := 1;
Threshold := 5;
Interval := 3; // 3 sec
Action := 1; // callback
area =1;
X_Start = 0;
Y_Start =0;
Width = 160;
Height = 120;
if (enable = 1) then
Result =
AngeloMPEG4_Encode_Set_Motion_Detection
(Encod
er_Index, area, enable, Threshold, interval,
action, X_Start, Y_Start, Width, Height)
else // disable motion detection
Result =
AngeloMPEG4_Encode_Set_Motion_Detection
(Encod
er_Index, area, 0, Threshold, interval, action,
X_Start, Y_Start, Width, Height);
end;