Added option to switch off throttling during alarms.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@443 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
0345aae910
commit
9da5287549
|
@ -42,3 +42,5 @@
|
||||||
#define ZM_STRICT_VIDEO_CONFIG <from zmconfig> // Whether to allow errors in setting video config to be fatal
|
#define ZM_STRICT_VIDEO_CONFIG <from zmconfig> // Whether to allow errors in setting video config to be fatal
|
||||||
#define ZM_LOCAL_BGR_INVERT <from zmconfig> // Invert BGR colours to RGB
|
#define ZM_LOCAL_BGR_INVERT <from zmconfig> // Invert BGR colours to RGB
|
||||||
#define ZM_BLEND_ALARMED_IMAGES <from zmconfig> // Whether alarmed images are blended to update the reference image
|
#define ZM_BLEND_ALARMED_IMAGES <from zmconfig> // Whether alarmed images are blended to update the reference image
|
||||||
|
#define ZM_NO_MAX_FPS_ON_ALARM <from zmconfig> // Should any Maximum FPS be ignored if an alarm occurs
|
||||||
|
|
||||||
|
|
|
@ -186,6 +186,12 @@ int main( int argc, char *argv[] )
|
||||||
for ( int i = 0; i < n_monitors; i++ )
|
for ( int i = 0; i < n_monitors; i++ )
|
||||||
{
|
{
|
||||||
long min_delay = MAXINT;
|
long min_delay = MAXINT;
|
||||||
|
if ( ZM_NO_MAX_FPS_ON_ALARM && monitors[i]->GetState() == Monitor::ALARM )
|
||||||
|
{
|
||||||
|
next_delays[i] = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
gettimeofday( &now, &dummy_tz );
|
gettimeofday( &now, &dummy_tz );
|
||||||
for ( int j = 0; j < n_monitors; j++ )
|
for ( int j = 0; j < n_monitors; j++ )
|
||||||
{
|
{
|
||||||
|
@ -212,6 +218,7 @@ int main( int argc, char *argv[] )
|
||||||
min_delay = next_delays[j];
|
min_delay = next_delays[j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ( next_delays[i] <= min_delay || next_delays[i] <= 0 )
|
if ( next_delays[i] <= min_delay || next_delays[i] <= 0 )
|
||||||
{
|
{
|
||||||
gettimeofday( &(last_capture_times[i]), &dummy_tz );
|
gettimeofday( &(last_capture_times[i]), &dummy_tz );
|
||||||
|
|
|
@ -222,10 +222,17 @@ my @options =
|
||||||
{
|
{
|
||||||
name => "ZM_BLEND_ALARMED_IMAGES",
|
name => "ZM_BLEND_ALARMED_IMAGES",
|
||||||
default => "yes",
|
default => "yes",
|
||||||
description => "Whether alarmed images are blended to update the reference image ",
|
description => "Whether alarmed images are blended to update the reference image",
|
||||||
help => "To detect alarms ZoneMinder compares an image with a reference image which is formed from a composite of the previous images. This option determines whether images that cause events are included in this process. Doing so may increase the precision of the alarmed region but can cause problems if wholescale lighting changes cause alarms as this would not get fed back into the image.",
|
help => "To detect alarms ZoneMinder compares an image with a reference image which is formed from a composite of the previous images. This option determines whether images that cause events are included in this process. Doing so may increase the precision of the alarmed region but can cause problems if wholescale lighting changes cause alarms as this would not get fed back into the image.",
|
||||||
type => $types{boolean},
|
type => $types{boolean},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name => "ZM_NO_MAX_FPS_ON_ALARM",
|
||||||
|
default => "yes",
|
||||||
|
description => "Should any Maximum FPS be ignored if an alarm occurs",
|
||||||
|
help => "When configuring monitors you can optionally specify a maximum setting for the capture rate rate in frames per second. This can used to limit your video or network bandwidth or reduce CPU load. This setting tells ZoneMinder to ignore these constraints if an alarm is detected an attempt to capture as fast as possible.",
|
||||||
|
type => $types{boolean},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name => "ZM_OPT_REMOTE_CAMERAS",
|
name => "ZM_OPT_REMOTE_CAMERAS",
|
||||||
default => "no",
|
default => "no",
|
||||||
|
|
Loading…
Reference in New Issue