Migrate VCMInterFrameDelay to use Time units
Additionally, * Moved to its own GN target. * Added unittests. * Removed unused variable `_zeroWallClock`. * Renamed variables to match style guide. * Moved fields _dTS and _wrapArounds to variables. Change-Id: I7aa8b8dec55abab49ceabe838dabf2a7e13d685d Bug: webrtc:13756 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253580 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36147}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
773205dfb2
commit
e9126c18bf
@ -64,7 +64,6 @@ FrameBuffer::FrameBuffer(Clock* clock,
|
||||
callback_queue_(nullptr),
|
||||
jitter_estimator_(clock),
|
||||
timing_(timing),
|
||||
inter_frame_delay_(clock_->TimeInMilliseconds()),
|
||||
stopped_(false),
|
||||
protection_mode_(kProtectionNack),
|
||||
stats_callback_(stats_callback),
|
||||
@ -295,12 +294,11 @@ std::unique_ptr<EncodedFrame> FrameBuffer::GetNextFrame() {
|
||||
}
|
||||
|
||||
if (!superframe_delayed_by_retransmission) {
|
||||
int64_t frame_delay;
|
||||
auto frame_delay = inter_frame_delay_.CalculateDelay(
|
||||
first_frame.Timestamp(), Timestamp::Millis(receive_time_ms));
|
||||
|
||||
if (inter_frame_delay_.CalculateDelay(first_frame.Timestamp(), &frame_delay,
|
||||
receive_time_ms)) {
|
||||
jitter_estimator_.UpdateEstimate(TimeDelta::Millis(frame_delay),
|
||||
superframe_size);
|
||||
if (frame_delay) {
|
||||
jitter_estimator_.UpdateEstimate(*frame_delay, superframe_size);
|
||||
}
|
||||
|
||||
float rtt_mult = protection_mode_ == kProtectionNackFEC ? 0.0 : 1.0;
|
||||
|
||||
Reference in New Issue
Block a user