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

Unified Diff: webrtc/modules/video_processing/util/denoiser_filter.h

Issue 1822333003: External denoiser based on noise estimation and moving object detection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Raise noise threshold to 200 to be safe for now. Created 4 years, 9 months 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
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

Powered by Google App Engine
This is Rietveld 408576698