| Index: webrtc/video/receive_statistics_proxy.h
|
| diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h
|
| index 2e93d70f153770d775a3fd08112b7570ca7cb518..195ee792de831ba1de5b575bc850c23ac0f77ae4 100644
|
| --- a/webrtc/video/receive_statistics_proxy.h
|
| +++ b/webrtc/video/receive_statistics_proxy.h
|
| @@ -20,6 +20,7 @@
|
| #include "webrtc/modules/video_coding/include/video_coding_defines.h"
|
| #include "webrtc/rtc_base/criticalsection.h"
|
| #include "webrtc/rtc_base/moving_max_counter.h"
|
| +#include "webrtc/rtc_base/optional.h"
|
| #include "webrtc/rtc_base/rate_statistics.h"
|
| #include "webrtc/rtc_base/ratetracker.h"
|
| #include "webrtc/rtc_base/thread_annotations.h"
|
| @@ -98,16 +99,28 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
|
| SampleCounter() : sum(0), num_samples(0) {}
|
| void Add(int sample);
|
| int Avg(int64_t min_required_samples) const;
|
| + int Max() const;
|
| void Reset();
|
|
|
| private:
|
| int64_t sum;
|
| int64_t num_samples;
|
| + rtc::Optional<int> max;
|
| };
|
| struct QpCounters {
|
| SampleCounter vp8;
|
| };
|
|
|
| + struct ContentSpecificStats {
|
| + SampleCounter e2e_delay_counter;
|
| + SampleCounter interframe_delay_counter;
|
| + int64_t flow_duration_ms = 0;
|
| + int64_t total_media_bytes = 0;
|
| + SampleCounter received_width;
|
| + SampleCounter received_height;
|
| + SampleCounter qp_counter;
|
| + };
|
| +
|
| void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
|
|
| void QualitySample() EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
| @@ -148,16 +161,12 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
|
| SampleCounter target_delay_counter_ GUARDED_BY(crit_);
|
| SampleCounter current_delay_counter_ GUARDED_BY(crit_);
|
| SampleCounter delay_counter_ GUARDED_BY(crit_);
|
| - SampleCounter e2e_delay_counter_video_ GUARDED_BY(crit_);
|
| - SampleCounter e2e_delay_counter_screenshare_ GUARDED_BY(crit_);
|
| - SampleCounter interframe_delay_counter_video_ GUARDED_BY(crit_);
|
| - SampleCounter interframe_delay_counter_screenshare_ GUARDED_BY(crit_);
|
| - int64_t e2e_delay_max_ms_video_ GUARDED_BY(crit_);
|
| - int64_t e2e_delay_max_ms_screenshare_ GUARDED_BY(crit_);
|
| - int64_t interframe_delay_max_ms_video_ GUARDED_BY(crit_);
|
| - int64_t interframe_delay_max_ms_screenshare_ GUARDED_BY(crit_);
|
| mutable rtc::MovingMaxCounter<int> interframe_delay_max_moving_
|
| GUARDED_BY(crit_);
|
| + std::map<VideoContentType, ContentSpecificStats> content_specific_stats_
|
| + GUARDED_BY(crit_);
|
| + SampleCounter e2e_delay_counter GUARDED_BY(crit_);
|
| + SampleCounter interframe_delay_counter GUARDED_BY(crit_);
|
| MaxCounter freq_offset_counter_ GUARDED_BY(crit_);
|
| int64_t first_report_block_time_ms_ GUARDED_BY(crit_);
|
| ReportBlockStats report_block_stats_ GUARDED_BY(crit_);
|
|
|