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

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 typo, leading to failed video catpure test 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 &header->extension.transmissionTimeOffset); 162 &header->extension.transmissionTimeOffset);
163 header->extension.hasAbsoluteSendTime = 163 header->extension.hasAbsoluteSendTime =
164 GetExtension<AbsoluteSendTime>(&header->extension.absoluteSendTime); 164 GetExtension<AbsoluteSendTime>(&header->extension.absoluteSendTime);
165 header->extension.hasTransportSequenceNumber = 165 header->extension.hasTransportSequenceNumber =
166 GetExtension<TransportSequenceNumber>( 166 GetExtension<TransportSequenceNumber>(
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 =
173 GetExtension<VideoContentTypeExtension>(
174 &header->extension.videoContentType);
172 } 175 }
173 176
174 size_t Packet::headers_size() const { 177 size_t Packet::headers_size() const {
175 return payload_offset_; 178 return payload_offset_;
176 } 179 }
177 180
178 size_t Packet::payload_size() const { 181 size_t Packet::payload_size() const {
179 return payload_size_; 182 return payload_size_;
180 } 183 }
181 184
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 uint8_t* Packet::WriteAt(size_t offset) { 570 uint8_t* Packet::WriteAt(size_t offset) {
568 return buffer_.data() + offset; 571 return buffer_.data() + offset;
569 } 572 }
570 573
571 void Packet::WriteAt(size_t offset, uint8_t byte) { 574 void Packet::WriteAt(size_t offset, uint8_t byte) {
572 buffer_.data()[offset] = byte; 575 buffer_.data()[offset] = byte;
573 } 576 }
574 577
575 } // namespace rtp 578 } // namespace rtp
576 } // namespace webrtc 579 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698