| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 uint8_t* buffer, | 109 uint8_t* buffer, |
| 110 size_t* pos); | 110 size_t* pos); |
| 111 | 111 |
| 112 bool OnBufferFull(uint8_t* packet, | 112 bool OnBufferFull(uint8_t* packet, |
| 113 size_t* index, | 113 size_t* index, |
| 114 RtcpPacket::PacketReadyCallback* callback) const; | 114 RtcpPacket::PacketReadyCallback* callback) const; |
| 115 | 115 |
| 116 size_t HeaderLength() const; | 116 size_t HeaderLength() const; |
| 117 | 117 |
| 118 static const size_t kHeaderLength = 4; | 118 static const size_t kHeaderLength = 4; |
| 119 std::vector<RtcpPacket*> appended_packets_; |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 bool CreateAndAddAppended(uint8_t* packet, | 122 bool CreateAndAddAppended(uint8_t* packet, |
| 122 size_t* index, | 123 size_t* index, |
| 123 size_t max_length, | 124 size_t max_length, |
| 124 PacketReadyCallback* callback) const; | 125 PacketReadyCallback* callback) const; |
| 125 | |
| 126 std::vector<RtcpPacket*> appended_packets_; | |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 // TODO(sprang): Move RtcpPacket subclasses out to separate files. | 128 // TODO(sprang): Move RtcpPacket subclasses out to separate files. |
| 130 | 129 |
| 131 class Empty : public RtcpPacket { | 130 class Empty : public RtcpPacket { |
| 132 public: | 131 public: |
| 133 Empty() : RtcpPacket() {} | 132 Empty() : RtcpPacket() {} |
| 134 | 133 |
| 135 virtual ~Empty() {} | 134 virtual ~Empty() {} |
| 136 | 135 |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 895 |
| 897 private: | 896 private: |
| 898 const size_t buffer_length_; | 897 const size_t buffer_length_; |
| 899 size_t length_; | 898 size_t length_; |
| 900 rtc::scoped_ptr<uint8_t[]> buffer_; | 899 rtc::scoped_ptr<uint8_t[]> buffer_; |
| 901 }; | 900 }; |
| 902 | 901 |
| 903 } // namespace rtcp | 902 } // namespace rtcp |
| 904 } // namespace webrtc | 903 } // namespace webrtc |
| 905 #endif // WEBRTC_MODULES_RTP_RTCP_RTCP_PACKET_H_ | 904 #endif // WEBRTC_MODULES_RTP_RTCP_RTCP_PACKET_H_ |
| OLD | NEW |