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

Side by Side Diff: webrtc/common_types.cc

Issue 2954503002: Implement FrameMarking header extension support
Patch Set: Implement Frame Marking header extension 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) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 hasAbsoluteSendTime(false), 47 hasAbsoluteSendTime(false),
48 absoluteSendTime(0), 48 absoluteSendTime(0),
49 hasTransportSequenceNumber(false), 49 hasTransportSequenceNumber(false),
50 transportSequenceNumber(0), 50 transportSequenceNumber(0),
51 hasAudioLevel(false), 51 hasAudioLevel(false),
52 voiceActivity(false), 52 voiceActivity(false),
53 audioLevel(0), 53 audioLevel(0),
54 hasVideoRotation(false), 54 hasVideoRotation(false),
55 videoRotation(kVideoRotation_0), 55 videoRotation(kVideoRotation_0),
56 hasVideoContentType(false), 56 hasVideoContentType(false),
57 videoContentType(VideoContentType::UNSPECIFIED) {} 57 videoContentType(VideoContentType::UNSPECIFIED),
58 hasFrameMarks(false) {}
58 59
59 RTPHeader::RTPHeader() 60 RTPHeader::RTPHeader()
60 : markerBit(false), 61 : markerBit(false),
61 payloadType(0), 62 payloadType(0),
62 sequenceNumber(0), 63 sequenceNumber(0),
63 timestamp(0), 64 timestamp(0),
64 ssrc(0), 65 ssrc(0),
65 numCSRCs(0), 66 numCSRCs(0),
66 arrOfCSRCs(), 67 arrOfCSRCs(),
67 paddingLength(0), 68 paddingLength(0),
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Get the sum of all the temporal layer for a specific spatial layer. 202 // Get the sum of all the temporal layer for a specific spatial layer.
202 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const { 203 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const {
203 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); 204 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers);
204 uint32_t sum = 0; 205 uint32_t sum = 0;
205 for (int i = 0; i < kMaxTemporalStreams; ++i) 206 for (int i = 0; i < kMaxTemporalStreams; ++i)
206 sum += bitrates_[spatial_index][i]; 207 sum += bitrates_[spatial_index][i];
207 return sum; 208 return sum;
208 } 209 }
209 210
210 } // namespace webrtc 211 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698