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

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

Issue 1901393003: Delete unused methods of the VideoProcessing class. And fix a typo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added GUARDED_BY annotation. 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void UpdateIncomingframe_rate(); 53 void UpdateIncomingframe_rate();
54 54
55 int32_t updateIncomingFrameSize(uint32_t width, uint32_t height); 55 int32_t updateIncomingFrameSize(uint32_t width, uint32_t height);
56 56
57 // Set decimated values: frame rate/dimension. 57 // Set decimated values: frame rate/dimension.
58 uint32_t GetDecimatedFrameRate(); 58 uint32_t GetDecimatedFrameRate();
59 uint32_t GetDecimatedWidth() const; 59 uint32_t GetDecimatedWidth() const;
60 uint32_t GetDecimatedHeight() const; 60 uint32_t GetDecimatedHeight() const;
61 61
62 // Preprocess output: 62 // Preprocess output:
63 void EnableDenosing(bool enable); 63 void EnableDenoising(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_[2]; 73 VideoFrame denoised_frame_[2];
74 VideoFrame resampled_frame_; 74 VideoFrame resampled_frame_;
75 VPMSpatialResampler* spatial_resampler_; 75 VPMSpatialResampler* spatial_resampler_;
76 VPMContentAnalysis* ca_; 76 VPMContentAnalysis* ca_;
77 VPMVideoDecimator* vd_; 77 VPMVideoDecimator* vd_;
78 std::unique_ptr<VideoDenoiser> denoiser_; 78 std::unique_ptr<VideoDenoiser> denoiser_;
79 bool enable_ca_; 79 bool enable_ca_;
80 uint8_t denoised_frame_toggle_; 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 | « webrtc/modules/video_processing/deflickering.cc ('k') | webrtc/modules/video_processing/frame_preprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698