| Index: webrtc/video/receive_statistics_proxy.h
|
| diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h
|
| index 1ed95cdd289a43b56a35f33fe191632e1365740f..c1e81c9925be70fa15954db4fd13d95b240924c0 100644
|
| --- a/webrtc/video/receive_statistics_proxy.h
|
| +++ b/webrtc/video/receive_statistics_proxy.h
|
| @@ -19,6 +19,7 @@
|
| #include "webrtc/common_video/include/frame_callback.h"
|
| #include "webrtc/modules/video_coding/include/video_coding_defines.h"
|
| #include "webrtc/rtc_base/criticalsection.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"
|
| @@ -97,16 +98,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_);
|
| @@ -147,14 +160,10 @@ 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_);
|
| + 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_);
|
|
|