refactor: remove the FrameSkip control and its unread member refs #3570

This commit is contained in:
singhharsh1708 committed 2026-09-02 20:10:36 +05:30
1 parent 9f6f8338e6
commit 58ea7e3bb5
4 files changed
+2 -13

No files matched your search

+2 -5
View File
@@ -101,7 +101,7 @@ std::string load_monitor_sql =
"`ImageBufferCount`, `MaxImageBufferCount`, `WarmupCount`, `PreEventCount`, "
"`PostEventCount`, `StreamReplayBuffer`, `AlarmFrameCount`, "
"`SectionLength`, `SectionLengthWarn`, `MinSectionLength`, `EventCloseMode`+0, "
"`FrameSkip`, `MotionFrameSkip`, "
"`MotionFrameSkip`, "
"`FPSReportInterval`, `RefBlendPerc`, `AlarmRefBlendPerc`, `TrackMotion`, `Exif`, "
"`Latitude`, `Longitude`, "
"`RTSPServer`, `RTSPStreamName`, `SOAP_wsa_compl`, `ONVIF_Alarm_Text`,"
@@ -245,7 +245,6 @@ Monitor::Monitor() :
min_section_length(0),
startstop_on_section_length(false),
adaptive_skip(false),
frame_skip(0),
motion_frame_skip(0),
analysis_fps_limit(0),
analysis_update_delay(0),
@@ -618,7 +617,7 @@ void Monitor::Load(MYSQL_ROW dbrow, bool load_zones=true, Purpose p = QUERY) {
packetqueue.setMaxVideoPackets(max_image_buffer_count);
packetqueue.setKeepKeyframes((videowriter == PASSTHROUGH) && (recording != RECORDING_NONE));
/* "SectionLength, SectionLengthWarn, MinSectionLength, EventCloseMode, FrameSkip, MotionFrameSkip, " */
/* "SectionLength, SectionLengthWarn, MinSectionLength, EventCloseMode, MotionFrameSkip, " */
section_length = Seconds(atoi(dbrow[col]));
col++;
section_length_warn = dbrow[col] ? atoi(dbrow[col]) : false;
@@ -661,8 +660,6 @@ void Monitor::Load(MYSQL_ROW dbrow, bool load_zones=true, Purpose p = QUERY) {
event_close_mode = CLOSE_IDLE;
}
frame_skip = atoi(dbrow[col]);
col++;
motion_frame_skip = atoi(dbrow[col]);
col++;
-1
View File
@@ -625,7 +625,6 @@ class Monitor : public std::enable_shared_from_this<Monitor> {
Seconds min_section_length; // Minimum event length when using event_close_mode == ALARM
bool startstop_on_section_length; // Whether to start/stop events on time % section_length
bool adaptive_skip; // Whether to use the newer adaptive algorithm for this monitor
int frame_skip; // How many frames to skip in continuous modes
int motion_frame_skip; // How many frames to skip in motion detection
double analysis_fps_limit; // Target framerate for video analysis
Microseconds analysis_update_delay; // How long we wait before updating analysis parameters