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

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

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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_delay_stats.h » ('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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 configuration.intra_frame_callback = nullptr; 46 configuration.intra_frame_callback = nullptr;
47 configuration.rtt_stats = rtt_stats; 47 configuration.rtt_stats = rtt_stats;
48 configuration.rtcp_packet_type_counter_observer = 48 configuration.rtcp_packet_type_counter_observer =
49 rtcp_packet_type_counter_observer; 49 rtcp_packet_type_counter_observer;
50 configuration.paced_sender = paced_sender; 50 configuration.paced_sender = paced_sender;
51 configuration.transport_sequence_number_allocator = 51 configuration.transport_sequence_number_allocator =
52 transport_sequence_number_allocator; 52 transport_sequence_number_allocator;
53 configuration.send_bitrate_observer = nullptr; 53 configuration.send_bitrate_observer = nullptr;
54 configuration.send_frame_count_observer = nullptr; 54 configuration.send_frame_count_observer = nullptr;
55 configuration.send_side_delay_observer = nullptr; 55 configuration.send_side_delay_observer = nullptr;
56 configuration.send_packet_observer = nullptr;
56 configuration.bandwidth_callback = nullptr; 57 configuration.bandwidth_callback = nullptr;
57 configuration.transport_feedback_callback = nullptr; 58 configuration.transport_feedback_callback = nullptr;
58 59
59 std::unique_ptr<RtpRtcp> rtp_rtcp(RtpRtcp::CreateRtpRtcp(configuration)); 60 std::unique_ptr<RtpRtcp> rtp_rtcp(RtpRtcp::CreateRtpRtcp(configuration));
60 rtp_rtcp->SetSendingStatus(false); 61 rtp_rtcp->SetSendingStatus(false);
61 rtp_rtcp->SetSendingMediaStatus(false); 62 rtp_rtcp->SetSendingMediaStatus(false);
62 rtp_rtcp->SetRTCPStatus(RtcpMode::kCompound); 63 rtp_rtcp->SetRTCPStatus(RtcpMode::kCompound);
63 64
64 return rtp_rtcp; 65 return rtp_rtcp;
65 } 66 }
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 rtp_receive_statistics_->GetStatistician(header.ssrc); 448 rtp_receive_statistics_->GetStatistician(header.ssrc);
448 if (!statistician) 449 if (!statistician)
449 return false; 450 return false;
450 // Check if this is a retransmission. 451 // Check if this is a retransmission.
451 int64_t min_rtt = 0; 452 int64_t min_rtt = 0;
452 rtp_rtcp_->RTT(rtp_receiver_->SSRC(), nullptr, nullptr, &min_rtt, nullptr); 453 rtp_rtcp_->RTT(rtp_receiver_->SSRC(), nullptr, nullptr, &min_rtt, nullptr);
453 return !in_order && 454 return !in_order &&
454 statistician->IsRetransmitOfOldPacket(header, min_rtt); 455 statistician->IsRetransmitOfOldPacket(header, min_rtt);
455 } 456 }
456 } // namespace webrtc 457 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_delay_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698