Home
last modified time | relevance | path

Searched refs:incomingFrmRate (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/fpscontroller/
H A Dfps_controller_process.cpp252 const int32_t incomingFrmRate = static_cast<int32_t>(incomingFps); in IsDropFrame() local
253 if (incomingFrmRate > targetFrameRate_) { in IsDropFrame()
257 bool isDrop = ReduceFrameRateByUniformStrategy(incomingFrmRate); in IsDropFrame()
262 bool FpsControllerProcess::ReduceFrameRateByUniformStrategy(int32_t incomingFrmRate) in ReduceFrameRateByUniformStrategy() argument
265 if (incomingFrmRate > targetFrameRate_) { in ReduceFrameRateByUniformStrategy()
275 int32_t overshoot = frameRateOvershootMdf_ + (incomingFrmRate - targetFrameRate_); in ReduceFrameRateByUniformStrategy()
280 if (overshoot && DOUBLE_MULTIPLE * overshoot < incomingFrmRate) { in ReduceFrameRateByUniformStrategy()
289 const int32_t dropVar = incomingFrmRate / overshoot; in ReduceFrameRateByUniformStrategy()
292 frameRateOvershootMdf_ = -(incomingFrmRate % overshoot) / OVERSHOOT_MODIFY_COEFFICIENT; in ReduceFrameRateByUniformStrategy()