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

Side by Side Diff: webrtc/modules/video_processing/frame_preprocessor.h

Issue 1871853003: External VNR speed improvement and more. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: More clean-up. 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
« no previous file with comments | « no previous file | webrtc/modules/video_processing/frame_preprocessor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void EnableDenosing(bool enable); 63 void EnableDenosing(bool enable);
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_[2];
74 VideoFrame denoised_frame_prev_;
75 VideoFrame resampled_frame_; 74 VideoFrame resampled_frame_;
76 VPMSpatialResampler* spatial_resampler_; 75 VPMSpatialResampler* spatial_resampler_;
77 VPMContentAnalysis* ca_; 76 VPMContentAnalysis* ca_;
78 VPMVideoDecimator* vd_; 77 VPMVideoDecimator* vd_;
79 std::unique_ptr<VideoDenoiser> denoiser_; 78 std::unique_ptr<VideoDenoiser> denoiser_;
80 bool enable_ca_; 79 bool enable_ca_;
80 uint8_t denoised_frame_toggle_;
81 uint32_t frame_cnt_; 81 uint32_t frame_cnt_;
82 }; 82 };
83 83
84 } // namespace webrtc 84 } // namespace webrtc
85 85
86 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_ 86 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_processing/frame_preprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698