| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 public: | 64 public: |
| 65 explicit QMVideoSettingsCallback(VideoProcessing* vpm); | 65 explicit QMVideoSettingsCallback(VideoProcessing* vpm); |
| 66 | 66 |
| 67 ~QMVideoSettingsCallback(); | 67 ~QMVideoSettingsCallback(); |
| 68 | 68 |
| 69 // Update VPM with QM (quality modes: frame size & frame rate) settings. | 69 // Update VPM with QM (quality modes: frame size & frame rate) settings. |
| 70 int32_t SetVideoQMSettings(const uint32_t frame_rate, | 70 int32_t SetVideoQMSettings(const uint32_t frame_rate, |
| 71 const uint32_t width, | 71 const uint32_t width, |
| 72 const uint32_t height); | 72 const uint32_t height); |
| 73 | 73 |
| 74 // Update target frame rate. | |
| 75 void SetTargetFramerate(int frame_rate); | |
| 76 | |
| 77 private: | 74 private: |
| 78 VideoProcessing* vp_; | 75 VideoProcessing* vp_; |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 ViEEncoder::ViEEncoder(uint32_t number_of_cores, | 78 ViEEncoder::ViEEncoder(uint32_t number_of_cores, |
| 82 const std::vector<uint32_t>& ssrcs, | 79 const std::vector<uint32_t>& ssrcs, |
| 83 ProcessThread* module_process_thread, | 80 ProcessThread* module_process_thread, |
| 84 SendStatisticsProxy* stats_proxy, | 81 SendStatisticsProxy* stats_proxy, |
| 85 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback, | 82 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback, |
| 86 OveruseFrameDetector* overuse_detector, | 83 OveruseFrameDetector* overuse_detector, |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 QMVideoSettingsCallback::~QMVideoSettingsCallback() { | 525 QMVideoSettingsCallback::~QMVideoSettingsCallback() { |
| 529 } | 526 } |
| 530 | 527 |
| 531 int32_t QMVideoSettingsCallback::SetVideoQMSettings( | 528 int32_t QMVideoSettingsCallback::SetVideoQMSettings( |
| 532 const uint32_t frame_rate, | 529 const uint32_t frame_rate, |
| 533 const uint32_t width, | 530 const uint32_t width, |
| 534 const uint32_t height) { | 531 const uint32_t height) { |
| 535 return vp_->SetTargetResolution(width, height, frame_rate); | 532 return vp_->SetTargetResolution(width, height, frame_rate); |
| 536 } | 533 } |
| 537 | 534 |
| 538 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { | |
| 539 vp_->SetTargetFramerate(frame_rate); | |
| 540 } | |
| 541 | |
| 542 } // namespace webrtc | 535 } // namespace webrtc |
| OLD | NEW |