OLD | NEW |
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 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 struct QpCounters { | 92 struct QpCounters { |
93 SampleCounter vp8; | 93 SampleCounter vp8; |
94 }; | 94 }; |
95 | 95 |
96 void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 96 void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
97 | 97 |
98 Clock* const clock_; | 98 Clock* const clock_; |
99 // Ownership of this object lies with the owner of the ReceiveStatisticsProxy | 99 // Ownership of this object lies with the owner of the ReceiveStatisticsProxy |
100 // instance. Lifetime is guaranteed to outlive |this|. | 100 // instance. Lifetime is guaranteed to outlive |this|. |
101 // TODO(tommi): In practice the config_ reference is only used for accessing | 101 // TODO(tommi): In practice the config_ reference is only used for accessing |
102 // config_.rtp.fec.ulpfec_payload_type. Instead of holding a pointer back, | 102 // config_.rtp.ulpfec.ulpfec_payload_type. Instead of holding a pointer back, |
103 // we could just store the value of ulpfec_payload_type and change the | 103 // we could just store the value of ulpfec_payload_type and change the |
104 // ReceiveStatisticsProxy() ctor to accept a const& of Config (since we'll | 104 // ReceiveStatisticsProxy() ctor to accept a const& of Config (since we'll |
105 // then no longer store a pointer to the object). | 105 // then no longer store a pointer to the object). |
106 const VideoReceiveStream::Config& config_; | 106 const VideoReceiveStream::Config& config_; |
107 const int64_t start_ms_; | 107 const int64_t start_ms_; |
108 | 108 |
109 rtc::CriticalSection crit_; | 109 rtc::CriticalSection crit_; |
110 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); | 110 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); |
111 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_); | 111 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_); |
112 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_); | 112 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_); |
113 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_); | 113 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_); |
114 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); | 114 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); |
115 SampleCounter render_width_counter_ GUARDED_BY(crit_); | 115 SampleCounter render_width_counter_ GUARDED_BY(crit_); |
116 SampleCounter render_height_counter_ GUARDED_BY(crit_); | 116 SampleCounter render_height_counter_ GUARDED_BY(crit_); |
117 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); | 117 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); |
118 SampleCounter decode_time_counter_ GUARDED_BY(crit_); | 118 SampleCounter decode_time_counter_ GUARDED_BY(crit_); |
119 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_); | 119 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_); |
120 SampleCounter target_delay_counter_ GUARDED_BY(crit_); | 120 SampleCounter target_delay_counter_ GUARDED_BY(crit_); |
121 SampleCounter current_delay_counter_ GUARDED_BY(crit_); | 121 SampleCounter current_delay_counter_ GUARDED_BY(crit_); |
122 SampleCounter delay_counter_ GUARDED_BY(crit_); | 122 SampleCounter delay_counter_ GUARDED_BY(crit_); |
123 SampleCounter e2e_delay_counter_ GUARDED_BY(crit_); | 123 SampleCounter e2e_delay_counter_ GUARDED_BY(crit_); |
124 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); | 124 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); |
125 QpCounters qp_counters_; // Only accessed on the decoding thread. | 125 QpCounters qp_counters_; // Only accessed on the decoding thread. |
126 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); | 126 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace webrtc | 129 } // namespace webrtc |
130 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ | 130 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ |
OLD | NEW |