OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/base/checks.h" | |
12 #include "webrtc/modules/video_processing/util/denoiser_filter.h" | 11 #include "webrtc/modules/video_processing/util/denoiser_filter.h" |
13 #include "webrtc/modules/video_processing/util/denoiser_filter_c.h" | 12 #include "webrtc/modules/video_processing/util/denoiser_filter_c.h" |
14 #include "webrtc/modules/video_processing/util/denoiser_filter_neon.h" | 13 #include "webrtc/modules/video_processing/util/denoiser_filter_neon.h" |
15 #include "webrtc/modules/video_processing/util/denoiser_filter_sse2.h" | 14 #include "webrtc/modules/video_processing/util/denoiser_filter_sse2.h" |
| 15 #include "webrtc/rtc_base/checks.h" |
16 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 16 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 const int kMotionMagnitudeThreshold = 8 * 3; | 20 const int kMotionMagnitudeThreshold = 8 * 3; |
21 const int kSumDiffThreshold = 96; | 21 const int kSumDiffThreshold = 96; |
22 const int kSumDiffThresholdHigh = 448; | 22 const int kSumDiffThresholdHigh = 448; |
23 | 23 |
24 std::unique_ptr<DenoiserFilter> DenoiserFilter::Create( | 24 std::unique_ptr<DenoiserFilter> DenoiserFilter::Create( |
25 bool runtime_cpu_detection, | 25 bool runtime_cpu_detection, |
(...skipping 24 matching lines...) Expand all Loading... |
50 #endif | 50 #endif |
51 } else { | 51 } else { |
52 filter.reset(new DenoiserFilterC()); | 52 filter.reset(new DenoiserFilterC()); |
53 } | 53 } |
54 | 54 |
55 RTC_DCHECK(filter.get() != nullptr); | 55 RTC_DCHECK(filter.get() != nullptr); |
56 return filter; | 56 return filter; |
57 } | 57 } |
58 | 58 |
59 } // namespace webrtc | 59 } // namespace webrtc |
OLD | NEW |