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

Unified Diff: webrtc/modules/video_processing/video_processing_impl.cc

Issue 1508793002: Clang format of video_processing folder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: pbos review Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_processing/video_denoiser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_processing/video_processing_impl.cc
diff --git a/webrtc/modules/video_processing/video_processing_impl.cc b/webrtc/modules/video_processing/video_processing_impl.cc
index f1bd82255bbc039d6dfa79332b8c0ecb9dd889ae..f34886f10f22ca8361bc535d91041388976da300 100644
--- a/webrtc/modules/video_processing/video_processing_impl.cc
+++ b/webrtc/modules/video_processing/video_processing_impl.cc
@@ -16,7 +16,6 @@
#include "webrtc/base/logging.h"
#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
-
namespace webrtc {
namespace {
@@ -62,8 +61,8 @@ void VideoProcessing::GetFrameStats(const VideoFrame& frame,
}
}
- stats->num_pixels = (width * height) /
- ((1 << stats->sub_sampling_factor) * (1 << stats->sub_sampling_factor));
+ stats->num_pixels = (width * height) / ((1 << stats->sub_sampling_factor) *
+ (1 << stats->sub_sampling_factor));
assert(stats->num_pixels > 0);
// Compute mean value of frame
@@ -112,22 +111,19 @@ int32_t VideoProcessingImpl::Deflickering(VideoFrame* frame,
return deflickering_.ProcessFrame(frame, stats);
}
-int32_t VideoProcessingImpl::BrightnessDetection(
- const VideoFrame& frame,
- const FrameStats& stats) {
+int32_t VideoProcessingImpl::BrightnessDetection(const VideoFrame& frame,
+ const FrameStats& stats) {
rtc::CritScope mutex(&mutex_);
return brightness_detection_.ProcessFrame(frame, stats);
}
-
void VideoProcessingImpl::EnableTemporalDecimation(bool enable) {
rtc::CritScope mutex(&mutex_);
frame_pre_processor_.EnableTemporalDecimation(enable);
}
-
-void VideoProcessingImpl::SetInputFrameResampleMode(VideoFrameResampling
- resampling_mode) {
+void VideoProcessingImpl::SetInputFrameResampleMode(
+ VideoFrameResampling resampling_mode) {
rtc::CritScope cs(&mutex_);
frame_pre_processor_.SetInputFrameResampleMode(resampling_mode);
}
@@ -146,7 +142,7 @@ void VideoProcessingImpl::SetTargetFramerate(int frame_rate) {
uint32_t VideoProcessingImpl::GetDecimatedFrameRate() {
rtc::CritScope cs(&mutex_);
- return frame_pre_processor_.GetDecimatedFrameRate();
+ return frame_pre_processor_.GetDecimatedFrameRate();
}
uint32_t VideoProcessingImpl::GetDecimatedWidth() const {
« no previous file with comments | « webrtc/modules/video_processing/video_denoiser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698