Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: webrtc/video/send_statistics_proxy.h

Issue 1669623004: Use CallStats for RTT in Call, rather than VideoSendStream::GetRtt() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comment, rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 11 #ifndef WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
12 #define WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 12 #define WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
13 13
14 #include <map> 14 #include <map>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/base/criticalsection.h" 17 #include "webrtc/base/criticalsection.h"
18 #include "webrtc/base/exp_filter.h" 18 #include "webrtc/base/exp_filter.h"
19 #include "webrtc/base/ratetracker.h" 19 #include "webrtc/base/ratetracker.h"
20 #include "webrtc/base/scoped_ptr.h" 20 #include "webrtc/base/scoped_ptr.h"
21 #include "webrtc/base/thread_annotations.h" 21 #include "webrtc/base/thread_annotations.h"
22 #include "webrtc/common_types.h" 22 #include "webrtc/common_types.h"
23 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 23 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
24 #include "webrtc/modules/video_coding/include/video_coding_defines.h" 24 #include "webrtc/modules/video_coding/include/video_coding_defines.h"
25 #include "webrtc/system_wrappers/include/clock.h" 25 #include "webrtc/system_wrappers/include/clock.h"
26 #include "webrtc/video/overuse_frame_detector.h" 26 #include "webrtc/video/overuse_frame_detector.h"
27 #include "webrtc/video/report_block_stats.h"
27 #include "webrtc/video/vie_encoder.h" 28 #include "webrtc/video/vie_encoder.h"
28 #include "webrtc/video_send_stream.h" 29 #include "webrtc/video_send_stream.h"
29 30
30 namespace webrtc { 31 namespace webrtc {
31 32
32 class SendStatisticsProxy : public CpuOveruseMetricsObserver, 33 class SendStatisticsProxy : public CpuOveruseMetricsObserver,
33 public RtcpStatisticsCallback, 34 public RtcpStatisticsCallback,
34 public RtcpPacketTypeCounterObserver, 35 public RtcpPacketTypeCounterObserver,
35 public StreamDataCountersCallback, 36 public StreamDataCountersCallback,
36 public BitrateStatisticsObserver, 37 public BitrateStatisticsObserver,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 SampleCounter encode_time_counter_; 157 SampleCounter encode_time_counter_;
157 BoolSampleCounter key_frame_counter_; 158 BoolSampleCounter key_frame_counter_;
158 BoolSampleCounter quality_limited_frame_counter_; 159 BoolSampleCounter quality_limited_frame_counter_;
159 SampleCounter quality_downscales_counter_; 160 SampleCounter quality_downscales_counter_;
160 BoolSampleCounter bw_limited_frame_counter_; 161 BoolSampleCounter bw_limited_frame_counter_;
161 SampleCounter bw_resolutions_disabled_counter_; 162 SampleCounter bw_resolutions_disabled_counter_;
162 SampleCounter delay_counter_; 163 SampleCounter delay_counter_;
163 SampleCounter max_delay_counter_; 164 SampleCounter max_delay_counter_;
164 rtc::RateTracker input_frame_rate_tracker_; 165 rtc::RateTracker input_frame_rate_tracker_;
165 rtc::RateTracker sent_frame_rate_tracker_; 166 rtc::RateTracker sent_frame_rate_tracker_;
167 int64_t first_rtcp_stats_time_ms_;
168 ReportBlockStats report_block_stats_;
166 }; 169 };
167 170
168 rtc::scoped_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); 171 rtc::scoped_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_);
169 }; 172 };
170 173
171 } // namespace webrtc 174 } // namespace webrtc
172 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 175 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698