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

Side by Side Diff: webrtc/common_types.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
« no previous file with comments | « webrtc/common_types.h ('k') | webrtc/config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 13 matching lines...) Expand all
24 : hasTransmissionTimeOffset(false), 24 : hasTransmissionTimeOffset(false),
25 transmissionTimeOffset(0), 25 transmissionTimeOffset(0),
26 hasAbsoluteSendTime(false), 26 hasAbsoluteSendTime(false),
27 absoluteSendTime(0), 27 absoluteSendTime(0),
28 hasTransportSequenceNumber(false), 28 hasTransportSequenceNumber(false),
29 transportSequenceNumber(0), 29 transportSequenceNumber(0),
30 hasAudioLevel(false), 30 hasAudioLevel(false),
31 voiceActivity(false), 31 voiceActivity(false),
32 audioLevel(0), 32 audioLevel(0),
33 hasVideoRotation(false), 33 hasVideoRotation(false),
34 videoRotation(kVideoRotation_0) {} 34 videoRotation(kVideoRotation_0),
35 hasVideoContentType(false),
36 videoContentType(VideoContentType::UNSPECIFIED) {}
35 37
36 RTPHeader::RTPHeader() 38 RTPHeader::RTPHeader()
37 : markerBit(false), 39 : markerBit(false),
38 payloadType(0), 40 payloadType(0),
39 sequenceNumber(0), 41 sequenceNumber(0),
40 timestamp(0), 42 timestamp(0),
41 ssrc(0), 43 ssrc(0),
42 numCSRCs(0), 44 numCSRCs(0),
43 arrOfCSRCs(), 45 arrOfCSRCs(),
44 paddingLength(0), 46 paddingLength(0),
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Get the sum of all the temporal layer for a specific spatial layer. 180 // Get the sum of all the temporal layer for a specific spatial layer.
179 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const { 181 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const {
180 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); 182 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers);
181 uint32_t sum = 0; 183 uint32_t sum = 0;
182 for (int i = 0; i < kMaxTemporalStreams; ++i) 184 for (int i = 0; i < kMaxTemporalStreams; ++i)
183 sum += bitrates_[spatial_index][i]; 185 sum += bitrates_[spatial_index][i];
184 return sum; 186 return sum;
185 } 187 }
186 188
187 } // namespace webrtc 189 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_types.h ('k') | webrtc/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698