blob: 9b43e7ed06fc868a60dfcc8712cc56de02bd1197 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
pbos@webrtc.orgf5d4cb12013-05-17 13:44:48 +000014#include "webrtc/typedefs.h"
15#include "webrtc/video_engine/include/vie_image_process.h"
16#include "webrtc/video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000018namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000019
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000020class ViESharedData;
21
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000022class ViEImageProcessImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000023 : public ViEImageProcess,
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000024 public ViERefCount {
25 public:
26 // Implements ViEImageProcess.
27 virtual int Release();
28 virtual int RegisterCaptureEffectFilter(const int capture_id,
29 ViEEffectFilter& capture_filter);
30 virtual int DeregisterCaptureEffectFilter(const int capture_id);
31 virtual int RegisterSendEffectFilter(const int video_channel,
32 ViEEffectFilter& send_filter);
33 virtual int DeregisterSendEffectFilter(const int video_channel);
34 virtual int RegisterRenderEffectFilter(const int video_channel,
35 ViEEffectFilter& render_filter);
36 virtual int DeregisterRenderEffectFilter(const int video_channel);
37 virtual int EnableDeflickering(const int capture_id, const bool enable);
38 virtual int EnableDenoising(const int capture_id, const bool enable);
39 virtual int EnableColorEnhancement(const int video_channel,
40 const bool enable);
pbos@webrtc.orgfe1ef932013-10-21 10:34:43 +000041 virtual void RegisterPreEncodeCallback(
42 int video_channel,
43 I420FrameCallback* pre_encode_callback) OVERRIDE;
44 virtual void DeRegisterPreEncodeCallback(int video_channel) OVERRIDE;
45
46 virtual void RegisterPreRenderCallback(
47 int video_channel,
48 I420FrameCallback* pre_render_callback) OVERRIDE;
49 virtual void DeRegisterPreRenderCallback(int video_channel) OVERRIDE;
niklase@google.com470e71d2011-07-07 08:21:25 +000050
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000051 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000052 explicit ViEImageProcessImpl(ViESharedData* shared_data);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000053 virtual ~ViEImageProcessImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000054
55 private:
56 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000057};
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000058
59} // namespace webrtc
60
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000061#endif // WEBRTC_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_