OLD | NEW |
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 Loading... |
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 has_video_timing(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 11 matching lines...) Expand all Loading... |
79 maxBitrate(0), | 80 maxBitrate(0), |
80 minBitrate(0), | 81 minBitrate(0), |
81 targetBitrate(0), | 82 targetBitrate(0), |
82 maxFramerate(0), | 83 maxFramerate(0), |
83 qpMax(0), | 84 qpMax(0), |
84 numberOfSimulcastStreams(0), | 85 numberOfSimulcastStreams(0), |
85 simulcastStream(), | 86 simulcastStream(), |
86 spatialLayers(), | 87 spatialLayers(), |
87 mode(kRealtimeVideo), | 88 mode(kRealtimeVideo), |
88 expect_encode_from_texture(false), | 89 expect_encode_from_texture(false), |
| 90 timing_frame_thresholds({0, 0}), |
89 codec_specific_() {} | 91 codec_specific_() {} |
90 | 92 |
91 VideoCodecVP8* VideoCodec::VP8() { | 93 VideoCodecVP8* VideoCodec::VP8() { |
92 RTC_DCHECK_EQ(codecType, kVideoCodecVP8); | 94 RTC_DCHECK_EQ(codecType, kVideoCodecVP8); |
93 return &codec_specific_.VP8; | 95 return &codec_specific_.VP8; |
94 } | 96 } |
95 | 97 |
96 const VideoCodecVP8& VideoCodec::VP8() const { | 98 const VideoCodecVP8& VideoCodec::VP8() const { |
97 RTC_DCHECK_EQ(codecType, kVideoCodecVP8); | 99 RTC_DCHECK_EQ(codecType, kVideoCodecVP8); |
98 return codec_specific_.VP8; | 100 return codec_specific_.VP8; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Get the sum of all the temporal layer for a specific spatial layer. | 203 // Get the sum of all the temporal layer for a specific spatial layer. |
202 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const { | 204 uint32_t BitrateAllocation::GetSpatialLayerSum(size_t spatial_index) const { |
203 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); | 205 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); |
204 uint32_t sum = 0; | 206 uint32_t sum = 0; |
205 for (int i = 0; i < kMaxTemporalStreams; ++i) | 207 for (int i = 0; i < kMaxTemporalStreams; ++i) |
206 sum += bitrates_[spatial_index][i]; | 208 sum += bitrates_[spatial_index][i]; |
207 return sum; | 209 return sum; |
208 } | 210 } |
209 | 211 |
210 } // namespace webrtc | 212 } // namespace webrtc |
OLD | NEW |