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

Side by Side Diff: webrtc/modules/video_processing/video_processing_impl.cc

Issue 1885893002: Remove QualityScaler framerate reduction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « webrtc/modules/video_processing/video_processing_impl.h ('k') | webrtc/video/video_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/video_processing_impl.h ('k') | webrtc/video/video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698