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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc

Issue 1290813008: Add RemoteEstimatorProxy for capturing receive times (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed borked Rebase Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 297 }
298 298
299 void TransportFeedback::WithPacketSenderSsrc(uint32_t ssrc) { 299 void TransportFeedback::WithPacketSenderSsrc(uint32_t ssrc) {
300 packet_sender_ssrc_ = ssrc; 300 packet_sender_ssrc_ = ssrc;
301 } 301 }
302 302
303 void TransportFeedback::WithMediaSourceSsrc(uint32_t ssrc) { 303 void TransportFeedback::WithMediaSourceSsrc(uint32_t ssrc) {
304 media_source_ssrc_ = ssrc; 304 media_source_ssrc_ = ssrc;
305 } 305 }
306 306
307 uint32_t TransportFeedback::GetPacketSenderSsrc() const {
308 return packet_sender_ssrc_;
309 }
310
311 uint32_t TransportFeedback::GetMediaSourceSsrc() const {
312 return media_source_ssrc_;
313 }
307 void TransportFeedback::WithBase(uint16_t base_sequence, 314 void TransportFeedback::WithBase(uint16_t base_sequence,
308 int64_t ref_timestamp_us) { 315 int64_t ref_timestamp_us) {
309 DCHECK_EQ(-1, base_seq_); 316 DCHECK_EQ(-1, base_seq_);
310 DCHECK_NE(-1, ref_timestamp_us); 317 DCHECK_NE(-1, ref_timestamp_us);
311 base_seq_ = base_sequence; 318 base_seq_ = base_sequence;
312 last_seq_ = base_sequence; 319 last_seq_ = base_sequence;
313 base_time_ = ref_timestamp_us / kBaseScaleFactor; 320 base_time_ = ref_timestamp_us / kBaseScaleFactor;
314 last_timestamp_ = base_time_ * kBaseScaleFactor; 321 last_timestamp_ = base_time_ * kBaseScaleFactor;
315 } 322 }
316 323
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 "RLE block of size " << rle_chunk->NumSymbols() 796 "RLE block of size " << rle_chunk->NumSymbols()
790 << " but only " << max_size << " left to read."; 797 << " but only " << max_size << " left to read.";
791 delete rle_chunk; 798 delete rle_chunk;
792 return nullptr; 799 return nullptr;
793 } 800 }
794 return rle_chunk; 801 return rle_chunk;
795 } 802 }
796 803
797 } // namespace rtcp 804 } // namespace rtcp
798 } // namespace webrtc 805 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698