niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 11 | #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ |
| 12 | #define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
Peter Boström | f4aa4c2 | 2015-09-18 12:24:25 +0200 | [diff] [blame] | 14 | #include "webrtc/base/criticalsection.h" |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 15 | #include "webrtc/modules/video_processing/include/video_processing.h" |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 16 | #include "webrtc/modules/video_processing/frame_preprocessor.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | class CriticalSectionWrapper; |
| 20 | |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 21 | class VideoProcessingImpl : public VideoProcessing { |
mikhal@webrtc.org | b43d807 | 2013-10-03 16:42:41 +0000 | [diff] [blame] | 22 | public: |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 23 | VideoProcessingImpl(); |
| 24 | ~VideoProcessingImpl() override; |
henrik.lundin@webrtc.org | 33df533 | 2011-11-14 15:30:26 +0000 | [diff] [blame] | 25 | |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 26 | // Implements VideoProcessing. |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 27 | void EnableTemporalDecimation(bool enable) override; |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 28 | void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override; |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 29 | void EnableContentAnalysis(bool enable) override; |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 30 | int32_t SetTargetResolution(uint32_t width, |
| 31 | uint32_t height, |
| 32 | uint32_t frame_rate) override; |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 33 | uint32_t GetDecimatedFrameRate() override; |
| 34 | uint32_t GetDecimatedWidth() const override; |
| 35 | uint32_t GetDecimatedHeight() const override; |
nisse | 90c335a | 2016-04-27 00:59:22 -0700 | [diff] [blame^] | 36 | void EnableDenoising(bool enable) override; |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 37 | const VideoFrame* PreprocessFrame(const VideoFrame& frame) override; |
| 38 | VideoContentMetrics* GetContentMetrics() const override; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | |
mikhal@webrtc.org | b43d807 | 2013-10-03 16:42:41 +0000 | [diff] [blame] | 40 | private: |
pbos | 5ad935c | 2016-01-25 03:52:44 -0800 | [diff] [blame] | 41 | rtc::CriticalSection mutex_; |
nisse | 90c335a | 2016-04-27 00:59:22 -0700 | [diff] [blame^] | 42 | VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 43 | }; |
| 44 | |
mflodman | a856542 | 2015-12-07 01:09:52 -0800 | [diff] [blame] | 45 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 46 | |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 47 | #endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_ |