Don't need to get_ref_image anymore. It will block waiting for a capture packet and the ref image will be set by capture thread

pull/3122/head
Isaac Connor 2021-01-07 09:36:18 -05:00
parent 315dccdaec
commit c9641063ca
1 changed files with 1 additions and 10 deletions

View File

@ -7,27 +7,18 @@ AnalysisThread::AnalysisThread(Monitor *p_monitor) {
}
AnalysisThread::~AnalysisThread() {
Debug(2, "THREAD: deleteing");
Debug(2, "THREAD: deleteing analysis thread");
}
int AnalysisThread::run() {
Debug(2, "AnalysisThread::run()");
useconds_t analysis_rate = monitor->GetAnalysisRate();
Debug(2, "after getanalysisrate rate is %u", analysis_rate);
unsigned int analysis_update_delay = monitor->GetAnalysisUpdateDelay();
Debug(2, "after getanalysisUpdateDelay delay is %u", analysis_update_delay);
time_t last_analysis_update_time, cur_time;
monitor->UpdateAdaptiveSkip();
Debug(2, "after UpdateAdaptiveSkip");
last_analysis_update_time = time(0);
if ( monitor->GetFunction() == Monitor::MODECT or monitor->GetFunction() == Monitor::MOCORD ) {
Debug(2, "THREAD: Getting ref image");
monitor->get_ref_image();
Debug(2, "THREAD: after Getting ref image");
}
while ( !(terminate or zm_terminate) ) {
// Some periodic updates are required for variable capturing framerate