Lines Matching refs:nowMs
493 VCMLossProtectionLogic::VCMLossProtectionLogic(int64_t nowMs) in VCMLossProtectionLogic() argument
511 Reset(nowMs); in VCMLossProtectionLogic()
573 uint8_t VCMLossProtectionLogic::MaxFilteredLossPr(int64_t nowMs) const { in MaxFilteredLossPr()
582 if (nowMs - _lossPrHistory[i].timeMs > in MaxFilteredLossPr()
595 uint8_t VCMLossProtectionLogic::FilteredLoss(int64_t nowMs, in FilteredLoss() argument
599 UpdateMaxLossHistory(lossPr255, nowMs); in FilteredLoss()
602 _lossPr255.Apply(rtc::saturated_cast<float>(nowMs - _lastPrUpdateT), in FilteredLoss()
604 _lastPrUpdateT = nowMs; in FilteredLoss()
616 filtered_loss = MaxFilteredLossPr(nowMs); in FilteredLoss()
632 int64_t nowMs) { in UpdatePacketsPerFrame() argument
634 rtc::saturated_cast<float>(nowMs - _lastPacketPerFrameUpdateT), nPackets); in UpdatePacketsPerFrame()
635 _lastPacketPerFrameUpdateT = nowMs; in UpdatePacketsPerFrame()
639 int64_t nowMs) { in UpdatePacketsPerFrameKey() argument
641 rtc::saturated_cast<float>(nowMs - _lastPacketPerFrameUpdateTKey), in UpdatePacketsPerFrameKey()
643 _lastPacketPerFrameUpdateTKey = nowMs; in UpdatePacketsPerFrameKey()
685 void VCMLossProtectionLogic::Reset(int64_t nowMs) { in Reset() argument
686 _lastPrUpdateT = nowMs; in Reset()
687 _lastPacketPerFrameUpdateT = nowMs; in Reset()
688 _lastPacketPerFrameUpdateTKey = nowMs; in Reset()