| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 bool CreateAndAddAppended(uint8_t* packet, | 122 bool CreateAndAddAppended(uint8_t* packet, |
| 123 size_t* index, | 123 size_t* index, |
| 124 size_t max_length, | 124 size_t max_length, |
| 125 PacketReadyCallback* callback) const; | 125 PacketReadyCallback* callback) const; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 // TODO(sprang): Move RtcpPacket subclasses out to separate files. | 128 // TODO(sprang): Move RtcpPacket subclasses out to separate files. |
| 129 | 129 |
| 130 class Empty : public RtcpPacket { | |
| 131 public: | |
| 132 Empty() : RtcpPacket() {} | |
| 133 | |
| 134 virtual ~Empty() {} | |
| 135 | |
| 136 protected: | |
| 137 bool Create(uint8_t* packet, | |
| 138 size_t* index, | |
| 139 size_t max_length, | |
| 140 RtcpPacket::PacketReadyCallback* callback) const override; | |
| 141 | |
| 142 size_t BlockLength() const override; | |
| 143 | |
| 144 private: | |
| 145 RTC_DISALLOW_COPY_AND_ASSIGN(Empty); | |
| 146 }; | |
| 147 | |
| 148 // RTCP sender report (RFC 3550). | 130 // RTCP sender report (RFC 3550). |
| 149 // | 131 // |
| 150 // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | 132 // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
| 151 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 133 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 152 // |V=2|P| RC | PT=SR=200 | length | | 134 // |V=2|P| RC | PT=SR=200 | length | |
| 153 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 135 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 154 // | SSRC of sender | | 136 // | SSRC of sender | |
| 155 // +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | 137 // +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ |
| 156 // | NTP timestamp, most significant word | | 138 // | NTP timestamp, most significant word | |
| 157 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 139 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 | 550 |
| 569 private: | 551 private: |
| 570 const size_t buffer_length_; | 552 const size_t buffer_length_; |
| 571 size_t length_; | 553 size_t length_; |
| 572 rtc::scoped_ptr<uint8_t[]> buffer_; | 554 rtc::scoped_ptr<uint8_t[]> buffer_; |
| 573 }; | 555 }; |
| 574 | 556 |
| 575 } // namespace rtcp | 557 } // namespace rtcp |
| 576 } // namespace webrtc | 558 } // namespace webrtc |
| 577 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_H_ | 559 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_H_ |
| OLD | NEW |