Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_packet.cc

Issue 2911193002: Implement timing frames. (Closed)
Patch Set: Implement Holmer@ comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
167 header->extension.hasTransportSequenceNumber = 167 header->extension.hasTransportSequenceNumber =
168 GetExtension<TransportSequenceNumber>( 168 GetExtension<TransportSequenceNumber>(
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 =
178 GetExtension<VideoTimingExtension>(&header->extension.video_timing);
177 GetExtension<RtpStreamId>(&header->extension.stream_id); 179 GetExtension<RtpStreamId>(&header->extension.stream_id);
178 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id); 180 GetExtension<RepairedRtpStreamId>(&header->extension.repaired_stream_id);
179 GetExtension<PlayoutDelayLimits>(&header->extension.playout_delay); 181 GetExtension<PlayoutDelayLimits>(&header->extension.playout_delay);
180 } 182 }
181 183
182 size_t Packet::headers_size() const { 184 size_t Packet::headers_size() const {
183 return payload_offset_; 185 return payload_offset_;
184 } 186 }
185 187
186 size_t Packet::payload_size() const { 188 size_t Packet::payload_size() const {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 uint8_t* Packet::WriteAt(size_t offset) { 577 uint8_t* Packet::WriteAt(size_t offset) {
576 return buffer_.data() + offset; 578 return buffer_.data() + offset;
577 } 579 }
578 580
579 void Packet::WriteAt(size_t offset, uint8_t byte) { 581 void Packet::WriteAt(size_t offset, uint8_t byte) {
580 buffer_.data()[offset] = byte; 582 buffer_.data()[offset] = byte;
581 } 583 }
582 584
583 } // namespace rtp 585 } // namespace rtp
584 } // namespace webrtc 586 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698