提交 33f74616 authored 作者: blu's avatar blu

evmlmotion fps auto adapting

上级 633fb457
......@@ -512,7 +512,7 @@ private:
if(factor != 0 ){
if(called % factor == 0) {
proc = true;
factor = 0; // reset it open to change
//factor = 0; // reset it open to change
}else{
proc = false;
}
......@@ -528,6 +528,7 @@ private:
spdlog::info("evmlmotion {} pps {}, fpsFactor {}, called {}, lag {}", this->selfId, this->pps, factor, called, this->pktLag);
}
detectMotion(pCodecContext->pix_fmt, pFrame, detect);
factor = 0; // refresh to latest value
}
break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论