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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 &header->extension.transportSequenceNumber); | 167 &header->extension.transportSequenceNumber); |
168 header->extension.hasAudioLevel = GetExtension<AudioLevel>( | 168 header->extension.hasAudioLevel = GetExtension<AudioLevel>( |
169 &header->extension.voiceActivity, &header->extension.audioLevel); | 169 &header->extension.voiceActivity, &header->extension.audioLevel); |
170 header->extension.hasVideoRotation = | 170 header->extension.hasVideoRotation = |
171 GetExtension<VideoOrientation>(&header->extension.videoRotation); | 171 GetExtension<VideoOrientation>(&header->extension.videoRotation); |
172 header->extension.hasVideoContentType = | 172 header->extension.hasVideoContentType = |
173 GetExtension<VideoContentTypeExtension>( | 173 GetExtension<VideoContentTypeExtension>( |
174 &header->extension.videoContentType); | 174 &header->extension.videoContentType); |
175 GetExtension<RtpStreamId>(&header->extension.stream_id); | 175 GetExtension<RtpStreamId>(&header->extension.stream_id); |
176 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id); | 176 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id); |
| 177 GetExtension<PlayoutDelayLimits>(&header->extension.playout_delay); |
177 } | 178 } |
178 | 179 |
179 size_t Packet::headers_size() const { | 180 size_t Packet::headers_size() const { |
180 return payload_offset_; | 181 return payload_offset_; |
181 } | 182 } |
182 | 183 |
183 size_t Packet::payload_size() const { | 184 size_t Packet::payload_size() const { |
184 return payload_size_; | 185 return payload_size_; |
185 } | 186 } |
186 | 187 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 uint8_t* Packet::WriteAt(size_t offset) { | 573 uint8_t* Packet::WriteAt(size_t offset) { |
573 return buffer_.data() + offset; | 574 return buffer_.data() + offset; |
574 } | 575 } |
575 | 576 |
576 void Packet::WriteAt(size_t offset, uint8_t byte) { | 577 void Packet::WriteAt(size_t offset, uint8_t byte) { |
577 buffer_.data()[offset] = byte; | 578 buffer_.data()[offset] = byte; |
578 } | 579 } |
579 | 580 |
580 } // namespace rtp | 581 } // namespace rtp |
581 } // namespace webrtc | 582 } // namespace webrtc |
OLD | NEW |