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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: Implement Hbos@ comments Created 3 years, 5 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ss << "cur_delay_ms: " << current_delay_ms << ", "; 125 ss << "cur_delay_ms: " << current_delay_ms << ", ";
126 ss << "targ_delay_ms: " << target_delay_ms << ", "; 126 ss << "targ_delay_ms: " << target_delay_ms << ", ";
127 ss << "jb_delay_ms: " << jitter_buffer_ms << ", "; 127 ss << "jb_delay_ms: " << jitter_buffer_ms << ", ";
128 ss << "min_playout_delay_ms: " << min_playout_delay_ms << ", "; 128 ss << "min_playout_delay_ms: " << min_playout_delay_ms << ", ";
129 ss << "discarded: " << discarded_packets << ", "; 129 ss << "discarded: " << discarded_packets << ", ";
130 ss << "sync_offset_ms: " << sync_offset_ms << ", "; 130 ss << "sync_offset_ms: " << sync_offset_ms << ", ";
131 ss << "cum_loss: " << rtcp_stats.cumulative_lost << ", "; 131 ss << "cum_loss: " << rtcp_stats.cumulative_lost << ", ";
132 ss << "max_ext_seq: " << rtcp_stats.extended_max_sequence_number << ", "; 132 ss << "max_ext_seq: " << rtcp_stats.extended_max_sequence_number << ", ";
133 ss << "nack: " << rtcp_packet_type_counts.nack_packets << ", "; 133 ss << "nack: " << rtcp_packet_type_counts.nack_packets << ", ";
134 ss << "fir: " << rtcp_packet_type_counts.fir_packets << ", "; 134 ss << "fir: " << rtcp_packet_type_counts.fir_packets << ", ";
135 ss << "pli: " << rtcp_packet_type_counts.pli_packets; 135 ss << "pli: " << rtcp_packet_type_counts.pli_packets << ", ";
136 ss << "timing_frame_info: " << (
137 timing_frame_info ? timing_frame_info->ToString() : "N/A");
136 ss << '}'; 138 ss << '}';
137 return ss.str(); 139 return ss.str();
138 } 140 }
139 141
140 namespace { 142 namespace {
141 VideoCodec CreateDecoderVideoCodec(const VideoReceiveStream::Decoder& decoder) { 143 VideoCodec CreateDecoderVideoCodec(const VideoReceiveStream::Decoder& decoder) {
142 VideoCodec codec; 144 VideoCodec codec;
143 memset(&codec, 0, sizeof(codec)); 145 memset(&codec, 0, sizeof(codec));
144 146
145 codec.plType = decoder.payload_type; 147 codec.plType = decoder.payload_type;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 if (stream_is_active && !receiving_keyframe) { 514 if (stream_is_active && !receiving_keyframe) {
513 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs 515 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs
514 << " ms, requesting keyframe."; 516 << " ms, requesting keyframe.";
515 RequestKeyFrame(); 517 RequestKeyFrame();
516 } 518 }
517 } 519 }
518 return true; 520 return true;
519 } 521 }
520 } // namespace internal 522 } // namespace internal
521 } // namespace webrtc 523 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698