OLD | NEW |
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/frame_preprocessor.h" | 16 #include "webrtc/modules/video_processing/frame_preprocessor.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 class CriticalSectionWrapper; | 19 class CriticalSectionWrapper; |
20 | 20 |
21 class VideoProcessingImpl : public VideoProcessing { | 21 class VideoProcessingImpl : public VideoProcessing { |
22 public: | 22 public: |
23 VideoProcessingImpl(); | 23 VideoProcessingImpl(); |
24 ~VideoProcessingImpl() override; | 24 ~VideoProcessingImpl() override; |
25 | 25 |
26 // Implements VideoProcessing. | 26 // Implements VideoProcessing. |
27 void EnableTemporalDecimation(bool enable) override; | 27 void EnableTemporalDecimation(bool enable) override; |
28 void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override; | 28 void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override; |
29 void EnableContentAnalysis(bool enable) override; | |
30 int32_t SetTargetResolution(uint32_t width, | 29 int32_t SetTargetResolution(uint32_t width, |
31 uint32_t height, | 30 uint32_t height, |
32 uint32_t frame_rate) override; | 31 uint32_t frame_rate) override; |
33 uint32_t GetDecimatedFrameRate() override; | 32 uint32_t GetDecimatedFrameRate() override; |
34 uint32_t GetDecimatedWidth() const override; | 33 uint32_t GetDecimatedWidth() const override; |
35 uint32_t GetDecimatedHeight() const override; | 34 uint32_t GetDecimatedHeight() const override; |
36 void EnableDenoising(bool enable) override; | 35 void EnableDenoising(bool enable) override; |
37 const VideoFrame* PreprocessFrame(const VideoFrame& frame) override; | 36 const VideoFrame* PreprocessFrame(const VideoFrame& frame) override; |
38 VideoContentMetrics* GetContentMetrics() const override; | |
39 | 37 |
40 private: | 38 private: |
41 rtc::CriticalSection mutex_; | 39 rtc::CriticalSection mutex_; |
42 VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_); | 40 VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_); |
43 }; | 41 }; |
44 | 42 |
45 } // namespace webrtc | 43 } // namespace webrtc |
46 | 44 |
47 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ | 45 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ |
OLD | NEW |