| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 frame_pre_processor_.SetInputFrameResampleMode(resampling_mode); | 128 frame_pre_processor_.SetInputFrameResampleMode(resampling_mode); |
| 129 } | 129 } |
| 130 | 130 |
| 131 int32_t VideoProcessingImpl::SetTargetResolution(uint32_t width, | 131 int32_t VideoProcessingImpl::SetTargetResolution(uint32_t width, |
| 132 uint32_t height, | 132 uint32_t height, |
| 133 uint32_t frame_rate) { | 133 uint32_t frame_rate) { |
| 134 rtc::CritScope cs(&mutex_); | 134 rtc::CritScope cs(&mutex_); |
| 135 return frame_pre_processor_.SetTargetResolution(width, height, frame_rate); | 135 return frame_pre_processor_.SetTargetResolution(width, height, frame_rate); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void VideoProcessingImpl::SetTargetFramerate(int frame_rate) { | |
| 139 rtc::CritScope cs(&mutex_); | |
| 140 frame_pre_processor_.SetTargetFramerate(frame_rate); | |
| 141 } | |
| 142 | |
| 143 uint32_t VideoProcessingImpl::GetDecimatedFrameRate() { | 138 uint32_t VideoProcessingImpl::GetDecimatedFrameRate() { |
| 144 rtc::CritScope cs(&mutex_); | 139 rtc::CritScope cs(&mutex_); |
| 145 return frame_pre_processor_.GetDecimatedFrameRate(); | 140 return frame_pre_processor_.GetDecimatedFrameRate(); |
| 146 } | 141 } |
| 147 | 142 |
| 148 uint32_t VideoProcessingImpl::GetDecimatedWidth() const { | 143 uint32_t VideoProcessingImpl::GetDecimatedWidth() const { |
| 149 rtc::CritScope cs(&mutex_); | 144 rtc::CritScope cs(&mutex_); |
| 150 return frame_pre_processor_.GetDecimatedWidth(); | 145 return frame_pre_processor_.GetDecimatedWidth(); |
| 151 } | 146 } |
| 152 | 147 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 170 rtc::CritScope mutex(&mutex_); | 165 rtc::CritScope mutex(&mutex_); |
| 171 return frame_pre_processor_.GetContentMetrics(); | 166 return frame_pre_processor_.GetContentMetrics(); |
| 172 } | 167 } |
| 173 | 168 |
| 174 void VideoProcessingImpl::EnableContentAnalysis(bool enable) { | 169 void VideoProcessingImpl::EnableContentAnalysis(bool enable) { |
| 175 rtc::CritScope mutex(&mutex_); | 170 rtc::CritScope mutex(&mutex_); |
| 176 frame_pre_processor_.EnableContentAnalysis(enable); | 171 frame_pre_processor_.EnableContentAnalysis(enable); |
| 177 } | 172 } |
| 178 | 173 |
| 179 } // namespace webrtc | 174 } // namespace webrtc |
| OLD | NEW |