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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc

Issue 1885893002: Remove QualityScaler framerate reduction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 } 487 }
488 488
489 bool SimulcastEncoderAdapter::Initialized() const { 489 bool SimulcastEncoderAdapter::Initialized() const {
490 return !streaminfos_.empty(); 490 return !streaminfos_.empty();
491 } 491 }
492 492
493 void SimulcastEncoderAdapter::OnDroppedFrame() { 493 void SimulcastEncoderAdapter::OnDroppedFrame() {
494 streaminfos_[0].encoder->OnDroppedFrame(); 494 streaminfos_[0].encoder->OnDroppedFrame();
495 } 495 }
496 496
497 int SimulcastEncoderAdapter::GetTargetFramerate() {
498 return streaminfos_[0].encoder->GetTargetFramerate();
499 }
500
501 bool SimulcastEncoderAdapter::SupportsNativeHandle() const { 497 bool SimulcastEncoderAdapter::SupportsNativeHandle() const {
502 // We should not be calling this method before streaminfos_ are configured. 498 // We should not be calling this method before streaminfos_ are configured.
503 RTC_DCHECK(!streaminfos_.empty()); 499 RTC_DCHECK(!streaminfos_.empty());
504 // TODO(pbos): Support textures when using more than one encoder. 500 // TODO(pbos): Support textures when using more than one encoder.
505 if (streaminfos_.size() != 1) 501 if (streaminfos_.size() != 1)
506 return false; 502 return false;
507 return streaminfos_[0].encoder->SupportsNativeHandle(); 503 return streaminfos_[0].encoder->SupportsNativeHandle();
508 } 504 }
509 505
510 const char* SimulcastEncoderAdapter::ImplementationName() const { 506 const char* SimulcastEncoderAdapter::ImplementationName() const {
511 return implementation_name_.c_str(); 507 return implementation_name_.c_str();
512 } 508 }
513 509
514 } // namespace webrtc 510 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h ('k') | webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698