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

Side by Side Diff: webrtc/modules/video_processing/video_processing_impl.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, 7 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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_PROCESSING_IMPL_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
12 #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ 12 #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
13 13
14 #include "webrtc/base/criticalsection.h" 14 #include "webrtc/base/criticalsection.h"
15 #include "webrtc/modules/video_processing/include/video_processing.h" 15 #include "webrtc/modules/video_processing/include/video_processing.h"
16 #include "webrtc/modules/video_processing/brightness_detection.h"
17 #include "webrtc/modules/video_processing/deflickering.h"
18 #include "webrtc/modules/video_processing/frame_preprocessor.h" 16 #include "webrtc/modules/video_processing/frame_preprocessor.h"
19 17
20 namespace webrtc { 18 namespace webrtc {
21 class CriticalSectionWrapper; 19 class CriticalSectionWrapper;
22 20
23 class VideoProcessingImpl : public VideoProcessing { 21 class VideoProcessingImpl : public VideoProcessing {
24 public: 22 public:
25 VideoProcessingImpl(); 23 VideoProcessingImpl();
26 ~VideoProcessingImpl() override; 24 ~VideoProcessingImpl() override;
27 25
28 // Implements VideoProcessing. 26 // Implements VideoProcessing.
29 int32_t Deflickering(VideoFrame* frame, FrameStats* stats) override;
30 int32_t BrightnessDetection(const VideoFrame& frame,
31 const FrameStats& stats) override;
32 void EnableTemporalDecimation(bool enable) override; 27 void EnableTemporalDecimation(bool enable) override;
33 void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override; 28 void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override;
34 void EnableContentAnalysis(bool enable) override; 29 void EnableContentAnalysis(bool enable) override;
35 int32_t SetTargetResolution(uint32_t width, 30 int32_t SetTargetResolution(uint32_t width,
36 uint32_t height, 31 uint32_t height,
37 uint32_t frame_rate) override; 32 uint32_t frame_rate) override;
38 void SetTargetFramerate(int frame_rate) override; 33 void SetTargetFramerate(int frame_rate) override;
39 uint32_t GetDecimatedFrameRate() override; 34 uint32_t GetDecimatedFrameRate() override;
40 uint32_t GetDecimatedWidth() const override; 35 uint32_t GetDecimatedWidth() const override;
41 uint32_t GetDecimatedHeight() const override; 36 uint32_t GetDecimatedHeight() const override;
42 void EnableDenosing(bool enable) override; 37 void EnableDenoising(bool enable) override;
43 const VideoFrame* PreprocessFrame(const VideoFrame& frame) override; 38 const VideoFrame* PreprocessFrame(const VideoFrame& frame) override;
44 VideoContentMetrics* GetContentMetrics() const override; 39 VideoContentMetrics* GetContentMetrics() const override;
45 40
46 private: 41 private:
47 rtc::CriticalSection mutex_; 42 rtc::CriticalSection mutex_;
48 VPMDeflickering deflickering_ GUARDED_BY(mutex_); 43 VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_);
49 VPMBrightnessDetection brightness_detection_;
50 VPMFramePreprocessor frame_pre_processor_;
51 }; 44 };
52 45
53 } // namespace webrtc 46 } // namespace webrtc
54 47
55 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ 48 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/video_processing.gypi ('k') | webrtc/modules/video_processing/video_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698