OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 protected: | 43 protected: |
44 bool Create(uint8_t* packet, | 44 bool Create(uint8_t* packet, |
45 size_t* index, | 45 size_t* index, |
46 size_t max_length, | 46 size_t max_length, |
47 RtcpPacket::PacketReadyCallback* callback) const override; | 47 RtcpPacket::PacketReadyCallback* callback) const override; |
48 | 48 |
49 private: | 49 private: |
50 static const size_t kRrBaseLength = 4; | 50 static const size_t kRrBaseLength = 4; |
51 static const size_t kMaxNumberOfReportBlocks = 0x1F; | 51 static const size_t kMaxNumberOfReportBlocks = 0x1F; |
52 | 52 |
53 size_t BlockLength() const override { | 53 size_t BlockLength() const { |
54 return kHeaderLength + kRrBaseLength + | 54 return kHeaderLength + kRrBaseLength + |
55 report_blocks_.size() * ReportBlock::kLength; | 55 report_blocks_.size() * ReportBlock::kLength; |
56 } | 56 } |
57 | 57 |
58 uint32_t sender_ssrc_; | 58 uint32_t sender_ssrc_; |
59 std::vector<ReportBlock> report_blocks_; | 59 std::vector<ReportBlock> report_blocks_; |
60 | 60 |
61 RTC_DISALLOW_COPY_AND_ASSIGN(ReceiverReport); | 61 RTC_DISALLOW_COPY_AND_ASSIGN(ReceiverReport); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace rtcp | 64 } // namespace rtcp |
65 } // namespace webrtc | 65 } // namespace webrtc |
66 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_RECEIVER_REPORT_H_ | 66 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_RECEIVER_REPORT_H_ |
OLD | NEW |