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

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

Issue 3008983002: Change reporting of timing frames conditions in GetStats on receive side (Closed)
Patch Set: Implement Tommi@ comments Created 3 years, 3 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/receive_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
(...skipping 29 matching lines...) Expand all
40 public RtcpPacketTypeCounterObserver, 40 public RtcpPacketTypeCounterObserver,
41 public StreamDataCountersCallback, 41 public StreamDataCountersCallback,
42 public CallStatsObserver { 42 public CallStatsObserver {
43 public: 43 public:
44 ReceiveStatisticsProxy(const VideoReceiveStream::Config* config, 44 ReceiveStatisticsProxy(const VideoReceiveStream::Config* config,
45 Clock* clock); 45 Clock* clock);
46 virtual ~ReceiveStatisticsProxy(); 46 virtual ~ReceiveStatisticsProxy();
47 47
48 VideoReceiveStream::Stats GetStats() const; 48 VideoReceiveStream::Stats GetStats() const;
49 49
50 rtc::Optional<TimingFrameInfo> GetAndResetTimingFrameInfo();
51
52 void OnDecodedFrame(rtc::Optional<uint8_t> qp, VideoContentType content_type); 50 void OnDecodedFrame(rtc::Optional<uint8_t> qp, VideoContentType content_type);
53 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz); 51 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz);
54 void OnRenderedFrame(const VideoFrame& frame); 52 void OnRenderedFrame(const VideoFrame& frame);
55 void OnIncomingPayloadType(int payload_type); 53 void OnIncomingPayloadType(int payload_type);
56 void OnDecoderImplementationName(const char* implementation_name); 54 void OnDecoderImplementationName(const char* implementation_name);
57 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); 55 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps);
58 56
59 void OnPreDecode(const EncodedImage& encoded_image, 57 void OnPreDecode(const EncodedImage& encoded_image,
60 const CodecSpecificInfo* codec_specific_info); 58 const CodecSpecificInfo* codec_specific_info);
61 59
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 GUARDED_BY(crit_); 158 GUARDED_BY(crit_);
161 MaxCounter freq_offset_counter_ GUARDED_BY(crit_); 159 MaxCounter freq_offset_counter_ GUARDED_BY(crit_);
162 int64_t first_report_block_time_ms_ GUARDED_BY(crit_); 160 int64_t first_report_block_time_ms_ GUARDED_BY(crit_);
163 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); 161 ReportBlockStats report_block_stats_ GUARDED_BY(crit_);
164 QpCounters qp_counters_; // Only accessed on the decoding thread. 162 QpCounters qp_counters_; // Only accessed on the decoding thread.
165 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); 163 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_);
166 int64_t avg_rtt_ms_ GUARDED_BY(crit_); 164 int64_t avg_rtt_ms_ GUARDED_BY(crit_);
167 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_); 165 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_);
168 VideoContentType last_content_type_ GUARDED_BY(&crit_); 166 VideoContentType last_content_type_ GUARDED_BY(&crit_);
169 rtc::Optional<int64_t> last_decoded_frame_time_ms_ GUARDED_BY(&crit_); 167 rtc::Optional<int64_t> last_decoded_frame_time_ms_ GUARDED_BY(&crit_);
170 rtc::Optional<TimingFrameInfo> timing_frame_info_ GUARDED_BY(&crit_); 168 // Mutable because calling Max() on MovingMaxCounter is not const. Yet it is
169 // called from const GetStats().
170 mutable rtc::MovingMaxCounter<TimingFrameInfo> timing_frame_info_counter_
171 GUARDED_BY(&crit_);
171 }; 172 };
172 173
173 } // namespace webrtc 174 } // namespace webrtc
174 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ 175 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/receive_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698