Index: webrtc/modules/video_processing/util/denoiser_filter.h |
diff --git a/webrtc/modules/video_processing/util/denoiser_filter.h b/webrtc/modules/video_processing/util/denoiser_filter.h |
index 40745853de2dadd4b04a29a30bd353175a0aa745..3c046595efd20fc517ab67aa3a216a6c4a6f670d 100644 |
--- a/webrtc/modules/video_processing/util/denoiser_filter.h |
+++ b/webrtc/modules/video_processing/util/denoiser_filter.h |
@@ -11,6 +11,7 @@ |
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_H_ |
#define WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_H_ |
+#include <climits> |
#include <memory> |
#include "webrtc/modules/include/module_common_types.h" |
@@ -21,8 +22,10 @@ namespace webrtc { |
extern const int kMotionMagnitudeThreshold; |
extern const int kSumDiffThreshold; |
extern const int kSumDiffThresholdHigh; |
+extern const int kSumDiffThresholdMax; |
marpan
2016/03/30 18:27:20
do we need this parameter?
jackychen_
2016/03/30 22:36:37
Done.
|
enum DenoiserDecision { COPY_BLOCK, FILTER_BLOCK }; |
+enum CpuType { CPU_NEON, CPU_NOT_NEON }; |
struct DenoiseMetrics { |
uint32_t var; |
uint32_t sad; |
@@ -32,7 +35,8 @@ struct DenoiseMetrics { |
class DenoiserFilter { |
public: |
- static std::unique_ptr<DenoiserFilter> Create(bool runtime_cpu_detection); |
+ static std::unique_ptr<DenoiserFilter> Create(bool runtime_cpu_detection, |
+ CpuType* cpu_type); |
virtual ~DenoiserFilter() {} |
@@ -56,7 +60,8 @@ class DenoiserFilter { |
const uint8_t* sig, |
int sig_stride, |
uint8_t motion_magnitude, |
- int increase_denoising) = 0; |
+ int increase_denoising, |
+ bool denoise_always) = 0; |
}; |
} // namespace webrtc |