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

Side by Side Diff: webrtc/modules/video_coding/video_coding_impl.cc

Issue 2434073003: Extract bitrate allocation of spatial/temporal layers out of codec impl. (Closed)
Patch Set: Addressed comments. Moved VideoCodec creation to factory class. Created 4 years, 1 month 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return sender_.Bitrate(bitrate); 119 return sender_.Bitrate(bitrate);
120 } 120 }
121 121
122 int FrameRate(unsigned int* framerate) const override { 122 int FrameRate(unsigned int* framerate) const override {
123 return sender_.FrameRate(framerate); 123 return sender_.FrameRate(framerate);
124 } 124 }
125 125
126 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s. 126 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s.
127 uint8_t lossRate, 127 uint8_t lossRate,
128 int64_t rtt) override { 128 int64_t rtt) override {
129 return sender_.SetChannelParameters(target_bitrate, lossRate, rtt); 129 return sender_.SetChannelParameters(target_bitrate, lossRate, rtt, nullptr);
130 } 130 }
131 131
132 int32_t RegisterProtectionCallback( 132 int32_t RegisterProtectionCallback(
133 VCMProtectionCallback* protection) override { 133 VCMProtectionCallback* protection) override {
134 return sender_.RegisterProtectionCallback(protection); 134 return sender_.RegisterProtectionCallback(protection);
135 } 135 }
136 136
137 int32_t SetVideoProtection(VCMVideoProtection videoProtection, 137 int32_t SetVideoProtection(VCMVideoProtection videoProtection,
138 bool enable) override { 138 bool enable) override {
139 // TODO(pbos): Remove enable from receive-side protection modes as well. 139 // TODO(pbos): Remove enable from receive-side protection modes as well.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 EventFactory* event_factory, 291 EventFactory* event_factory,
292 NackSender* nack_sender, 292 NackSender* nack_sender,
293 KeyFrameRequestSender* keyframe_request_sender) { 293 KeyFrameRequestSender* keyframe_request_sender) {
294 assert(clock); 294 assert(clock);
295 assert(event_factory); 295 assert(event_factory);
296 return new VideoCodingModuleImpl(clock, event_factory, nack_sender, 296 return new VideoCodingModuleImpl(clock, event_factory, nack_sender,
297 keyframe_request_sender, nullptr); 297 keyframe_request_sender, nullptr);
298 } 298 }
299 299
300 } // namespace webrtc 300 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698