OLD | NEW |
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 Loading... |
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 |
OLD | NEW |