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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 &header->extension.transportSequenceNumber); | 169 &header->extension.transportSequenceNumber); |
170 header->extension.hasAudioLevel = GetExtension<AudioLevel>( | 170 header->extension.hasAudioLevel = GetExtension<AudioLevel>( |
171 &header->extension.voiceActivity, &header->extension.audioLevel); | 171 &header->extension.voiceActivity, &header->extension.audioLevel); |
172 header->extension.hasVideoRotation = | 172 header->extension.hasVideoRotation = |
173 GetExtension<VideoOrientation>(&header->extension.videoRotation); | 173 GetExtension<VideoOrientation>(&header->extension.videoRotation); |
174 header->extension.hasVideoContentType = | 174 header->extension.hasVideoContentType = |
175 GetExtension<VideoContentTypeExtension>( | 175 GetExtension<VideoContentTypeExtension>( |
176 &header->extension.videoContentType); | 176 &header->extension.videoContentType); |
177 header->extension.has_video_timing = | 177 header->extension.has_video_timing = |
178 GetExtension<VideoTimingExtension>(&header->extension.video_timing); | 178 GetExtension<VideoTimingExtension>(&header->extension.video_timing); |
| 179 header->extension.has_frame_marks = |
| 180 GetExtension<FrameMarking>(&header->extension.frame_marks); |
179 GetExtension<RtpStreamId>(&header->extension.stream_id); | 181 GetExtension<RtpStreamId>(&header->extension.stream_id); |
180 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id); | 182 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id); |
181 GetExtension<RtpMid>(&header->extension.mid); | 183 GetExtension<RtpMid>(&header->extension.mid); |
182 GetExtension<PlayoutDelayLimits>(&header->extension.playout_delay); | 184 GetExtension<PlayoutDelayLimits>(&header->extension.playout_delay); |
183 } | 185 } |
184 | 186 |
185 size_t Packet::headers_size() const { | 187 size_t Packet::headers_size() const { |
186 return payload_offset_; | 188 return payload_offset_; |
187 } | 189 } |
188 | 190 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 uint8_t* Packet::WriteAt(size_t offset) { | 580 uint8_t* Packet::WriteAt(size_t offset) { |
579 return buffer_.data() + offset; | 581 return buffer_.data() + offset; |
580 } | 582 } |
581 | 583 |
582 void Packet::WriteAt(size_t offset, uint8_t byte) { | 584 void Packet::WriteAt(size_t offset, uint8_t byte) { |
583 buffer_.data()[offset] = byte; | 585 buffer_.data()[offset] = byte; |
584 } | 586 } |
585 | 587 |
586 } // namespace rtp | 588 } // namespace rtp |
587 } // namespace webrtc | 589 } // namespace webrtc |
OLD | NEW |