2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-18 22:31:24 +01:00
|
|
|
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
|
|
|
|
|
#define WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-09-18 12:24:25 +02:00
|
|
|
#include "webrtc/base/criticalsection.h"
|
2015-11-18 22:31:24 +01:00
|
|
|
#include "webrtc/modules/video_processing/include/video_processing.h"
|
|
|
|
|
#include "webrtc/modules/video_processing/frame_preprocessor.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
class CriticalSectionWrapper;
|
|
|
|
|
|
2015-12-07 01:09:52 -08:00
|
|
|
class VideoProcessingImpl : public VideoProcessing {
|
2013-10-03 16:42:41 +00:00
|
|
|
public:
|
2015-12-07 01:09:52 -08:00
|
|
|
VideoProcessingImpl();
|
|
|
|
|
~VideoProcessingImpl() override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-07 01:09:52 -08:00
|
|
|
// Implements VideoProcessing.
|
2015-03-04 12:58:35 +00:00
|
|
|
void EnableTemporalDecimation(bool enable) override;
|
|
|
|
|
void SetInputFrameResampleMode(VideoFrameResampling resampling_mode) override;
|
|
|
|
|
void EnableContentAnalysis(bool enable) override;
|
|
|
|
|
int32_t SetTargetResolution(uint32_t width,
|
|
|
|
|
uint32_t height,
|
|
|
|
|
uint32_t frame_rate) override;
|
2015-12-07 01:09:52 -08:00
|
|
|
uint32_t GetDecimatedFrameRate() override;
|
|
|
|
|
uint32_t GetDecimatedWidth() const override;
|
|
|
|
|
uint32_t GetDecimatedHeight() const override;
|
2016-04-27 00:59:22 -07:00
|
|
|
void EnableDenoising(bool enable) override;
|
2015-12-07 01:09:52 -08:00
|
|
|
const VideoFrame* PreprocessFrame(const VideoFrame& frame) override;
|
|
|
|
|
VideoContentMetrics* GetContentMetrics() const override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-10-03 16:42:41 +00:00
|
|
|
private:
|
2016-01-25 03:52:44 -08:00
|
|
|
rtc::CriticalSection mutex_;
|
2016-04-27 00:59:22 -07:00
|
|
|
VPMFramePreprocessor frame_pre_processor_ GUARDED_BY(mutex_);
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
2015-12-07 01:09:52 -08:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-11-18 22:31:24 +01:00
|
|
|
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_VIDEO_PROCESSING_IMPL_H_
|