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

Side by Side Diff: webrtc/modules/video_processing/video_denoiser.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: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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 #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_
12 #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_ 12 #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/modules/video_processing/util/denoiser_filter.h" 16 #include "webrtc/modules/video_processing/util/denoiser_filter.h"
17 #include "webrtc/modules/video_processing/util/noise_estimation.h"
17 #include "webrtc/modules/video_processing/util/skin_detection.h" 18 #include "webrtc/modules/video_processing/util/skin_detection.h"
18 19
19 namespace webrtc { 20 namespace webrtc {
20 21
21 class VideoDenoiser { 22 class VideoDenoiser {
22 public: 23 public:
23 explicit VideoDenoiser(bool runtime_cpu_detection); 24 explicit VideoDenoiser(bool runtime_cpu_detection);
24 void DenoiseFrame(const VideoFrame& frame, VideoFrame* denoised_frame); 25 void DenoiseFrame(const VideoFrame& frame,
26 VideoFrame* denoised_frame,
27 VideoFrame* denoised_frame_track,
28 int noise_level_prev);
25 29
26 private: 30 private:
27 void TrailingReduction(int mb_rows,
28 int mb_cols,
29 const uint8_t* y_src,
30 int stride_y,
31 uint8_t* y_dst);
32 int width_; 31 int width_;
33 int height_; 32 int height_;
33 CpuType cpu_type_;
34 std::unique_ptr<DenoiseMetrics[]> metrics_; 34 std::unique_ptr<DenoiseMetrics[]> metrics_;
35 std::unique_ptr<DenoiserFilter> filter_; 35 std::unique_ptr<DenoiserFilter> filter_;
36 std::unique_ptr<NoiseEstimation> ne_;
37 std::unique_ptr<uint8_t[]> d_status_;
38 #if EXPERIMENTAL
39 std::unique_ptr<uint8_t[]> d_status_tmp1_;
40 std::unique_ptr<uint8_t[]> d_status_tmp2_;
41 #endif
42 std::unique_ptr<uint8_t[]> x_density_;
43 std::unique_ptr<uint8_t[]> y_density_;
36 }; 44 };
37 45
38 } // namespace webrtc 46 } // namespace webrtc
39 47
40 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_ 48 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_DENOISER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/util/noise_estimation.cc ('k') | webrtc/modules/video_processing/video_denoiser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698