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

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

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Fix android CE Created 3 years, 8 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 &header->extension.transmissionTimeOffset); 157 &header->extension.transmissionTimeOffset);
158 header->extension.hasAbsoluteSendTime = 158 header->extension.hasAbsoluteSendTime =
159 GetExtension<AbsoluteSendTime>(&header->extension.absoluteSendTime); 159 GetExtension<AbsoluteSendTime>(&header->extension.absoluteSendTime);
160 header->extension.hasTransportSequenceNumber = 160 header->extension.hasTransportSequenceNumber =
161 GetExtension<TransportSequenceNumber>( 161 GetExtension<TransportSequenceNumber>(
162 &header->extension.transportSequenceNumber); 162 &header->extension.transportSequenceNumber);
163 header->extension.hasAudioLevel = GetExtension<AudioLevel>( 163 header->extension.hasAudioLevel = GetExtension<AudioLevel>(
164 &header->extension.voiceActivity, &header->extension.audioLevel); 164 &header->extension.voiceActivity, &header->extension.audioLevel);
165 header->extension.hasVideoRotation = 165 header->extension.hasVideoRotation =
166 GetExtension<VideoOrientation>(&header->extension.videoRotation); 166 GetExtension<VideoOrientation>(&header->extension.videoRotation);
167 header->extension.hasVideoContentType =
168 GetExtension<VideoContentTypeExtension>(
169 &header->extension.videoContentType);
167 } 170 }
168 171
169 size_t Packet::headers_size() const { 172 size_t Packet::headers_size() const {
170 return payload_offset_; 173 return payload_offset_;
171 } 174 }
172 175
173 size_t Packet::payload_size() const { 176 size_t Packet::payload_size() const {
174 return payload_size_; 177 return payload_size_;
175 } 178 }
176 179
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 uint8_t* Packet::WriteAt(size_t offset) { 551 uint8_t* Packet::WriteAt(size_t offset) {
549 return buffer_.data() + offset; 552 return buffer_.data() + offset;
550 } 553 }
551 554
552 void Packet::WriteAt(size_t offset, uint8_t byte) { 555 void Packet::WriteAt(size_t offset, uint8_t byte) {
553 buffer_.data()[offset] = byte; 556 buffer_.data()[offset] = byte;
554 } 557 }
555 558
556 } // namespace rtp 559 } // namespace rtp
557 } // namespace webrtc 560 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698