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 3002103002: Ignore inter-frame delay stats samples when stream is inactive (Closed)
Patch Set: remove missed copy/paste comment that makes no sense Created 3 years, 4 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 | « no previous file | 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void OnDecodedFrame(rtc::Optional<uint8_t> qp, VideoContentType content_type); 51 void OnDecodedFrame(rtc::Optional<uint8_t> qp, VideoContentType content_type);
52 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz); 52 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz);
53 void OnRenderedFrame(const VideoFrame& frame); 53 void OnRenderedFrame(const VideoFrame& frame);
54 void OnIncomingPayloadType(int payload_type); 54 void OnIncomingPayloadType(int payload_type);
55 void OnDecoderImplementationName(const char* implementation_name); 55 void OnDecoderImplementationName(const char* implementation_name);
56 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); 56 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps);
57 57
58 void OnPreDecode(const EncodedImage& encoded_image, 58 void OnPreDecode(const EncodedImage& encoded_image,
59 const CodecSpecificInfo* codec_specific_info); 59 const CodecSpecificInfo* codec_specific_info);
60 60
61 // Indicates video stream has been paused (no incoming packets).
62 void OnStreamInactive();
63
61 // Overrides VCMReceiveStatisticsCallback. 64 // Overrides VCMReceiveStatisticsCallback.
62 void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) override; 65 void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) override;
63 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override; 66 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override;
64 void OnDiscardedPacketsUpdated(int discarded_packets) override; 67 void OnDiscardedPacketsUpdated(int discarded_packets) override;
65 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override; 68 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override;
66 void OnFrameBufferTimingsUpdated(int decode_ms, 69 void OnFrameBufferTimingsUpdated(int decode_ms,
67 int max_decode_ms, 70 int max_decode_ms,
68 int current_delay_ms, 71 int current_delay_ms,
69 int target_delay_ms, 72 int target_delay_ms,
70 int jitter_buffer_ms, 73 int jitter_buffer_ms,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 int64_t interframe_delay_max_ms_video_ GUARDED_BY(crit_); 156 int64_t interframe_delay_max_ms_video_ GUARDED_BY(crit_);
154 int64_t interframe_delay_max_ms_screenshare_ GUARDED_BY(crit_); 157 int64_t interframe_delay_max_ms_screenshare_ GUARDED_BY(crit_);
155 MaxCounter freq_offset_counter_ GUARDED_BY(crit_); 158 MaxCounter freq_offset_counter_ GUARDED_BY(crit_);
156 int64_t first_report_block_time_ms_ GUARDED_BY(crit_); 159 int64_t first_report_block_time_ms_ GUARDED_BY(crit_);
157 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); 160 ReportBlockStats report_block_stats_ GUARDED_BY(crit_);
158 QpCounters qp_counters_; // Only accessed on the decoding thread. 161 QpCounters qp_counters_; // Only accessed on the decoding thread.
159 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); 162 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_);
160 int64_t avg_rtt_ms_ GUARDED_BY(crit_); 163 int64_t avg_rtt_ms_ GUARDED_BY(crit_);
161 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_); 164 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_);
162 VideoContentType last_content_type_ GUARDED_BY(&crit_); 165 VideoContentType last_content_type_ GUARDED_BY(&crit_);
163 rtc::Optional<int64_t> last_decoded_frame_time_ms_; 166 rtc::Optional<int64_t> last_decoded_frame_time_ms_ GUARDED_BY(&crit_);
164 rtc::Optional<TimingFrameInfo> timing_frame_info_ GUARDED_BY(&crit_); 167 rtc::Optional<TimingFrameInfo> timing_frame_info_ GUARDED_BY(&crit_);
165 }; 168 };
166 169
167 } // namespace webrtc 170 } // namespace webrtc
168 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ 171 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/receive_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698