| Index: webrtc/video/receive_statistics_proxy.h
|
| diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h
|
| index 04777716af9f31fa36909e5fa204556c46ca8271..e473fe7ecbbf5dd59ce80f757f441d7510d87c23 100644
|
| --- a/webrtc/video/receive_statistics_proxy.h
|
| +++ b/webrtc/video/receive_statistics_proxy.h
|
| @@ -21,6 +21,7 @@
|
| #include "webrtc/common_types.h"
|
| #include "webrtc/common_video/include/frame_callback.h"
|
| #include "webrtc/modules/video_coding/include/video_coding_defines.h"
|
| +#include "webrtc/video/bad_call_threshold.h"
|
| #include "webrtc/video/report_block_stats.h"
|
| #include "webrtc/video/video_stream_decoder.h"
|
| #include "webrtc/video_receive_stream.h"
|
| @@ -84,6 +85,7 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
|
| SampleCounter() : sum(0), num_samples(0) {}
|
| void Add(int sample);
|
| int Avg(int min_required_samples) const;
|
| + void Reset();
|
|
|
| private:
|
| int sum;
|
| @@ -95,6 +97,8 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
|
|
|
| void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
|
|
| + void BadCallSample() EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
| +
|
| Clock* const clock_;
|
| // Ownership of this object lies with the owner of the ReceiveStatisticsProxy
|
| // instance. Lifetime is guaranteed to outlive |this|.
|
| @@ -107,6 +111,10 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
|
| const int64_t start_ms_;
|
|
|
| rtc::CriticalSection crit_;
|
| + uint64_t last_sample_time_ GUARDED_BY(crit_);
|
| + BadCallThreshold fps_threshold_ GUARDED_BY(crit_);
|
| + BadCallThreshold qp_threshold_ GUARDED_BY(crit_);
|
| + SampleCounter qp_sample_ GUARDED_BY(crit_);
|
| VideoReceiveStream::Stats stats_ GUARDED_BY(crit_);
|
| RateStatistics decode_fps_estimator_ GUARDED_BY(crit_);
|
| RateStatistics renders_fps_estimator_ GUARDED_BY(crit_);
|
|
|