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

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

Issue 2741853008: Remove ReceiveCodec() getters from VideoCodingModule. (Closed)
Patch Set: Rebase Created 3 years, 9 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 int32_t RegisterPacketRequestCallback( 213 int32_t RegisterPacketRequestCallback(
214 VCMPacketRequestCallback* callback) override { 214 VCMPacketRequestCallback* callback) override {
215 RTC_DCHECK(construction_thread_.CalledOnValidThread()); 215 RTC_DCHECK(construction_thread_.CalledOnValidThread());
216 return receiver_.RegisterPacketRequestCallback(callback); 216 return receiver_.RegisterPacketRequestCallback(callback);
217 } 217 }
218 218
219 int32_t Decode(uint16_t maxWaitTimeMs) override { 219 int32_t Decode(uint16_t maxWaitTimeMs) override {
220 return receiver_.Decode(maxWaitTimeMs); 220 return receiver_.Decode(maxWaitTimeMs);
221 } 221 }
222 222
223 int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const override {
224 return receiver_.ReceiveCodec(currentReceiveCodec);
225 }
226
227 VideoCodecType ReceiveCodec() const override {
228 return receiver_.ReceiveCodec();
229 }
230
231 int32_t IncomingPacket(const uint8_t* incomingPayload, 223 int32_t IncomingPacket(const uint8_t* incomingPayload,
232 size_t payloadLength, 224 size_t payloadLength,
233 const WebRtcRTPHeader& rtpInfo) override { 225 const WebRtcRTPHeader& rtpInfo) override {
234 return receiver_.IncomingPacket(incomingPayload, payloadLength, rtpInfo); 226 return receiver_.IncomingPacket(incomingPayload, payloadLength, rtpInfo);
235 } 227 }
236 228
237 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs) override { 229 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs) override {
238 return receiver_.SetMinimumPlayoutDelay(minPlayoutDelayMs); 230 return receiver_.SetMinimumPlayoutDelay(minPlayoutDelayMs);
239 } 231 }
240 232
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 EventFactory* event_factory, 312 EventFactory* event_factory,
321 NackSender* nack_sender, 313 NackSender* nack_sender,
322 KeyFrameRequestSender* keyframe_request_sender) { 314 KeyFrameRequestSender* keyframe_request_sender) {
323 RTC_DCHECK(clock); 315 RTC_DCHECK(clock);
324 RTC_DCHECK(event_factory); 316 RTC_DCHECK(event_factory);
325 return new VideoCodingModuleImpl(clock, event_factory, nack_sender, 317 return new VideoCodingModuleImpl(clock, event_factory, nack_sender,
326 keyframe_request_sender, nullptr); 318 keyframe_request_sender, nullptr);
327 } 319 }
328 320
329 } // namespace webrtc 321 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_coding_impl.h ('k') | webrtc/modules/video_coding/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698