| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 24 matching lines...) Expand all Loading... |
| 35 void SetNtp(NtpTime ntp) { ntp_ = ntp; } | 35 void SetNtp(NtpTime ntp) { ntp_ = ntp; } |
| 36 void SetRtpTimestamp(uint32_t rtp_timestamp) { | 36 void SetRtpTimestamp(uint32_t rtp_timestamp) { |
| 37 rtp_timestamp_ = rtp_timestamp; | 37 rtp_timestamp_ = rtp_timestamp; |
| 38 } | 38 } |
| 39 void SetPacketCount(uint32_t packet_count) { | 39 void SetPacketCount(uint32_t packet_count) { |
| 40 sender_packet_count_ = packet_count; | 40 sender_packet_count_ = packet_count; |
| 41 } | 41 } |
| 42 void SetOctetCount(uint32_t octet_count) { | 42 void SetOctetCount(uint32_t octet_count) { |
| 43 sender_octet_count_ = octet_count; | 43 sender_octet_count_ = octet_count; |
| 44 } | 44 } |
| 45 bool SetReportBlocks(std::vector<ReportBlock> blocks); |
| 45 bool AddReportBlock(const ReportBlock& block); | 46 bool AddReportBlock(const ReportBlock& block); |
| 46 void ClearReportBlocks() { report_blocks_.clear(); } | 47 void ClearReportBlocks() { report_blocks_.clear(); } |
| 47 | 48 |
| 48 uint32_t sender_ssrc() const { return sender_ssrc_; } | 49 uint32_t sender_ssrc() const { return sender_ssrc_; } |
| 49 NtpTime ntp() const { return ntp_; } | 50 NtpTime ntp() const { return ntp_; } |
| 50 uint32_t rtp_timestamp() const { return rtp_timestamp_; } | 51 uint32_t rtp_timestamp() const { return rtp_timestamp_; } |
| 51 uint32_t sender_packet_count() const { return sender_packet_count_; } | 52 uint32_t sender_packet_count() const { return sender_packet_count_; } |
| 52 uint32_t sender_octet_count() const { return sender_octet_count_; } | 53 uint32_t sender_octet_count() const { return sender_octet_count_; } |
| 53 | 54 |
| 54 const std::vector<ReportBlock>& report_blocks() const { | 55 const std::vector<ReportBlock>& report_blocks() const { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 NtpTime ntp_; | 71 NtpTime ntp_; |
| 71 uint32_t rtp_timestamp_; | 72 uint32_t rtp_timestamp_; |
| 72 uint32_t sender_packet_count_; | 73 uint32_t sender_packet_count_; |
| 73 uint32_t sender_octet_count_; | 74 uint32_t sender_octet_count_; |
| 74 std::vector<ReportBlock> report_blocks_; | 75 std::vector<ReportBlock> report_blocks_; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace rtcp | 78 } // namespace rtcp |
| 78 } // namespace webrtc | 79 } // namespace webrtc |
| 79 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SENDER_REPORT_H_ | 80 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SENDER_REPORT_H_ |
| OLD | NEW |