OLD | NEW |
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 Loading... |
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 |
OLD | NEW |