blob: 38a6a08cf86bc02e5e7a59fb2c8290c464cf30b7 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001/*
2 * Copyright (c) 2012 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_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_
13
pbos@webrtc.org281cff82013-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"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000017
18namespace webrtc {
19
20class ViESharedData;
21
22class ViEImageProcessImpl
23 : public ViEImageProcess,
24 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);
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000038 virtual int EnableColorEnhancement(const int video_channel,
39 const bool enable);
pbos@webrtc.org63301bd2013-10-21 10:34:43 +000040 virtual void RegisterPreEncodeCallback(
41 int video_channel,
42 I420FrameCallback* pre_encode_callback) OVERRIDE;
43 virtual void DeRegisterPreEncodeCallback(int video_channel) OVERRIDE;
44
sprang@webrtc.org2e98d452013-11-26 11:41:59 +000045 virtual void RegisterPostEncodeImageCallback(
46 int video_channel,
47 EncodedImageCallback* post_encode_callback) OVERRIDE;
48 virtual void DeRegisterPostEncodeCallback(int video_channel) OVERRIDE;
49
50 virtual void RegisterPreDecodeImageCallback(
51 int video_channel,
52 EncodedImageCallback* post_encode_callback) OVERRIDE;
53 virtual void DeRegisterPreDecodeCallback(int video_channel) OVERRIDE;
54
pbos@webrtc.org63301bd2013-10-21 10:34:43 +000055 virtual void RegisterPreRenderCallback(
56 int video_channel,
57 I420FrameCallback* pre_render_callback) OVERRIDE;
58 virtual void DeRegisterPreRenderCallback(int video_channel) OVERRIDE;
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000059
60 protected:
61 explicit ViEImageProcessImpl(ViESharedData* shared_data);
62 virtual ~ViEImageProcessImpl();
63
64 private:
65 ViESharedData* shared_data_;
66};
67
68} // namespace webrtc
69
70#endif // WEBRTC_VIDEO_ENGINE_VIE_IMAGE_PROCESS_IMPL_H_