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

Side by Side Diff: webrtc/modules/video_processing/frame_preprocessor.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const VideoFrame* PreprocessFrame(const VideoFrame& frame); 64 const VideoFrame* PreprocessFrame(const VideoFrame& frame);
65 VideoContentMetrics* GetContentMetrics() const; 65 VideoContentMetrics* GetContentMetrics() const;
66 66
67 private: 67 private:
68 // The content does not change so much every frame, so to reduce complexity 68 // The content does not change so much every frame, so to reduce complexity
69 // we can compute new content metrics every |kSkipFrameCA| frames. 69 // we can compute new content metrics every |kSkipFrameCA| frames.
70 enum { kSkipFrameCA = 2 }; 70 enum { kSkipFrameCA = 2 };
71 71
72 VideoContentMetrics* content_metrics_; 72 VideoContentMetrics* content_metrics_;
73 VideoFrame denoised_frame_; 73 VideoFrame denoised_frame_;
74 VideoFrame denoised_frame_prev_;
74 VideoFrame resampled_frame_; 75 VideoFrame resampled_frame_;
75 VPMSpatialResampler* spatial_resampler_; 76 VPMSpatialResampler* spatial_resampler_;
76 VPMContentAnalysis* ca_; 77 VPMContentAnalysis* ca_;
77 VPMVideoDecimator* vd_; 78 VPMVideoDecimator* vd_;
78 std::unique_ptr<VideoDenoiser> denoiser_; 79 std::unique_ptr<VideoDenoiser> denoiser_;
79 bool enable_ca_; 80 bool enable_ca_;
80 uint32_t frame_cnt_; 81 uint32_t frame_cnt_;
81 }; 82 };
82 83
83 } // namespace webrtc 84 } // namespace webrtc
84 85
85 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_ 86 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/BUILD.gn ('k') | webrtc/modules/video_processing/frame_preprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698