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

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

Issue 1410663004: modules/video_processing: refactor interface->include + more. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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
11 #include "webrtc/modules/video_processing/main/interface/video_processing.h" 11 #include "webrtc/modules/video_processing/include/video_processing.h"
12 #include "webrtc/modules/video_processing/main/source/brightness_detection.h" 12 #include "webrtc/modules/video_processing/brightness_detection.h"
13 13
14 #include <math.h> 14 #include <math.h>
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 VPMBrightnessDetection::VPMBrightnessDetection() { 18 VPMBrightnessDetection::VPMBrightnessDetection() {
19 Reset(); 19 Reset();
20 } 20 }
21 21
22 VPMBrightnessDetection::~VPMBrightnessDetection() {} 22 VPMBrightnessDetection::~VPMBrightnessDetection() {}
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (frame_cnt_dark_ > frame_cnt_alarm) { 124 if (frame_cnt_dark_ > frame_cnt_alarm) {
125 return VideoProcessingModule::kDarkWarning; 125 return VideoProcessingModule::kDarkWarning;
126 } else if (frame_cnt_bright_ > frame_cnt_alarm) { 126 } else if (frame_cnt_bright_ > frame_cnt_alarm) {
127 return VideoProcessingModule::kBrightWarning; 127 return VideoProcessingModule::kBrightWarning;
128 } else { 128 } else {
129 return VideoProcessingModule::kNoWarning; 129 return VideoProcessingModule::kNoWarning;
130 } 130 }
131 } 131 }
132 132
133 } // namespace webrtc 133 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/brightness_detection.h ('k') | webrtc/modules/video_processing/content_analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698