blob: 290a67e5afcdd485a9e6f551d7646a4795bb5b87 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.orgcee447a2012-06-28 07:29:46 +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_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
andresp@webrtc.org7707d062013-05-13 10:50:50 +000014#include "webrtc/common.h"
15#include "webrtc/engine_configurations.h"
andresp@webrtc.org7707d062013-05-13 10:50:50 +000016#include "webrtc/system_wrappers/interface/scoped_ptr.h"
pbos@webrtc.orgf5d4cb12013-05-17 13:44:48 +000017#include "webrtc/video_engine/vie_defines.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000018
andresp@webrtc.org7707d062013-05-13 10:50:50 +000019#include "webrtc/video_engine/vie_base_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000020
21#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000022#include "webrtc/video_engine/vie_capture_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000023#endif
24#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000025#include "webrtc/video_engine/vie_codec_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000026#endif
27#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000028#include "webrtc/video_engine/vie_encryption_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000029#endif
30#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000031#include "webrtc/video_engine/vie_file_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000032#endif
33#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000034#include "webrtc/video_engine/vie_image_process_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000035#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +000036#include "webrtc/video_engine/vie_network_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000037#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000038#include "webrtc/video_engine/vie_render_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000039#endif
40#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000041#include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000042#endif
43#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000044#include "webrtc/video_engine/vie_external_codec_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000045#endif
46
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000047namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000048
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000049class VideoEngineImpl
andresp@webrtc.org44272732013-05-08 19:20:23 +000050 : public ViEBaseImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000051#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000052 public ViECodecImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000053#endif
54#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000055 public ViECaptureImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000056#endif
57#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000058 public ViEEncryptionImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000059#endif
60#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000061 public ViEFileImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000062#endif
63#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000064 public ViEImageProcessImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000065#endif
andresp@webrtc.org44272732013-05-08 19:20:23 +000066 public ViENetworkImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000067#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000068 public ViERenderImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000069#endif
70#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000071 public ViERTP_RTCPImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000072#endif
73#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000074 public ViEExternalCodecImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000075#endif
andresp@webrtc.org44272732013-05-08 19:20:23 +000076 public VideoEngine
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000077{ // NOLINT
78 public:
andresp@webrtc.org7707d062013-05-13 10:50:50 +000079 VideoEngineImpl(const Config* config, bool owns_config)
80 : ViEBaseImpl(*config),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000081#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000082 ViECodecImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000083#endif
84#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000085 ViECaptureImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000086#endif
87#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000088 ViEEncryptionImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000089#endif
90#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000091 ViEFileImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000092#endif
93#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000094 ViEImageProcessImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000095#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +000096 ViENetworkImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000097#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000098 ViERenderImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000099#endif
100#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +0000101 ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +0000102#endif
103#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +0000104 ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +0000105#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +0000106 own_config_(owns_config ? config : NULL)
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +0000107 {}
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +0000108 virtual ~VideoEngineImpl() {}
andresp@webrtc.org7707d062013-05-13 10:50:50 +0000109
110 private:
111 // Placeholder for the case where this owns the config.
112 scoped_ptr<const Config> own_config_;
niklase@google.com470e71d2011-07-07 08:21:25 +0000113};
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +0000114
niklase@google.com470e71d2011-07-07 08:21:25 +0000115} // namespace webrtc
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +0000116
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +0000117#endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_