Chromium Code Reviews| Index: webrtc/video/receive_statistics_proxy.h |
| diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h |
| index 445a731f240c61eb257a569ed52a4ba67bd5baab..8c19d25e20fe9acfc0c4a7546c24cf7996f26524 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/quality_threshold.h" |
| #include "webrtc/video/report_block_stats.h" |
| #include "webrtc/video/stats_counter.h" |
| #include "webrtc/video/video_stream_decoder.h" |
| @@ -85,6 +86,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; |
| @@ -96,6 +98,8 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
| void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
| + void QualitySample() 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|. |
| @@ -108,6 +112,11 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
| const int64_t start_ms_; |
| rtc::CriticalSection crit_; |
| + uint64_t last_sample_time_ GUARDED_BY(crit_); |
|
stefan-webrtc
2016/11/28 15:55:25
int64_t is usually used for time in webrtc.
|
| + QualityThreshold fps_threshold_ GUARDED_BY(crit_); |
| + QualityThreshold qp_threshold_ GUARDED_BY(crit_); |
| + QualityThreshold variance_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_); |