OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ | |
12 #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ | |
13 | |
14 #include "webrtc/base/criticalsection.h" | |
15 #include "webrtc/modules/video_processing/include/video_processing.h" | |
16 #include "webrtc/modules/video_processing/frame_preprocessor.h" | |
17 | |
18 namespace webrtc { | |
19 class CriticalSectionWrapper; | |
20 | |
21 class VideoProcessingImpl : public VideoProcessing { | |
22 public: | |
23 VideoProcessingImpl(); | |
24 ~VideoProcessingImpl() override; | |
25 | |
26 // Implements VideoProcessing. | |
27 void EnableTemporalDecimation(bool enable) override; | |
28 void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override; | |
29 int32_t SetTargetResolution(uint32_t width, | |
30 uint32_t height, | |
31 uint32_t frame_rate) override; | |
32 uint32_t GetDecimatedFrameRate() override; | |
33 uint32_t GetDecimatedWidth() const override; | |
34 uint32_t GetDecimatedHeight() const override; | |
35 void EnableDenoising(bool enable) override; | |
36 const VideoFrame* PreprocessFrame(const VideoFrame& frame) override; | |
37 | |
38 private: | |
39 rtc::CriticalSection mutex_; | |
40 VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_); | |
41 }; | |
42 | |
43 } // namespace webrtc | |
44 | |
45 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ | |
OLD | NEW |