VCMCodecTimer: Change filter from max to 95th percentile
The purpose with this change is to make the filter more robust against anomalies. googMaxDecodeMs is expected to drop a litte by this. BUG=b/27306053 Review URL: https://codereview.webrtc.org/1742323002 Cr-Commit-Position: refs/heads/master@{#11952}
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_VIDEO_CODING_TIMING_H_
|
||||
#define WEBRTC_MODULES_VIDEO_CODING_TIMING_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/base/thread_annotations.h"
|
||||
#include "webrtc/modules/video_coding/codec_timer.h"
|
||||
#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
|
||||
@ -94,7 +96,7 @@ class VCMTiming {
|
||||
enum { kDelayMaxChangeMsPerS = 100 };
|
||||
|
||||
protected:
|
||||
int32_t MaxDecodeTimeMs(FrameType frame_type = kVideoFrameDelta) const
|
||||
int64_t RequiredDecodeTimeMs() const
|
||||
EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
|
||||
int64_t RenderTimeMsInternal(uint32_t frame_timestamp, int64_t now_ms) const
|
||||
EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
|
||||
@ -107,7 +109,7 @@ class VCMTiming {
|
||||
Clock* const clock_;
|
||||
bool master_ GUARDED_BY(crit_sect_);
|
||||
TimestampExtrapolator* ts_extrapolator_ GUARDED_BY(crit_sect_);
|
||||
VCMCodecTimer codec_timer_ GUARDED_BY(crit_sect_);
|
||||
std::unique_ptr<VCMCodecTimer> codec_timer_ GUARDED_BY(crit_sect_);
|
||||
uint32_t render_delay_ms_ GUARDED_BY(crit_sect_);
|
||||
uint32_t min_playout_delay_ms_ GUARDED_BY(crit_sect_);
|
||||
uint32_t jitter_delay_ms_ GUARDED_BY(crit_sect_);
|
||||
|
||||
Reference in New Issue
Block a user