blob: 086282d18749b545f329f227a9bc01947ce057ce [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
niklase@google.com470e71d2011-07-07 08:21:25 +000027#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000028#include "webrtc/video_engine/vie_file_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000029#endif
30#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000031#include "webrtc/video_engine/vie_image_process_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000032#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +000033#include "webrtc/video_engine/vie_network_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000034#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000035#include "webrtc/video_engine/vie_render_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000036#endif
37#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000038#include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000039#endif
40#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000041#include "webrtc/video_engine/vie_external_codec_impl.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000042#endif
43
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000044namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000045
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000046class VideoEngineImpl
andresp@webrtc.org44272732013-05-08 19:20:23 +000047 : public ViEBaseImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000048#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000049 public ViECodecImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000050#endif
51#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000052 public ViECaptureImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000053#endif
niklase@google.com470e71d2011-07-07 08:21:25 +000054#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000055 public ViEFileImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000056#endif
57#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000058 public ViEImageProcessImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000059#endif
andresp@webrtc.org44272732013-05-08 19:20:23 +000060 public ViENetworkImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000061#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000062 public ViERenderImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000063#endif
64#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000065 public ViERTP_RTCPImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000066#endif
67#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org44272732013-05-08 19:20:23 +000068 public ViEExternalCodecImpl,
niklase@google.com470e71d2011-07-07 08:21:25 +000069#endif
andresp@webrtc.org44272732013-05-08 19:20:23 +000070 public VideoEngine
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000071{ // NOLINT
72 public:
andresp@webrtc.org7707d062013-05-13 10:50:50 +000073 VideoEngineImpl(const Config* config, bool owns_config)
74 : ViEBaseImpl(*config),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000075#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000076 ViECodecImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000077#endif
78#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000079 ViECaptureImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000080#endif
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000081#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000082 ViEFileImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000083#endif
84#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000085 ViEImageProcessImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000086#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +000087 ViENetworkImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000088#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000089 ViERenderImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000090#endif
91#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000092 ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000093#endif
94#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org7707d062013-05-13 10:50:50 +000095 ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000096#endif
andresp@webrtc.org7707d062013-05-13 10:50:50 +000097 own_config_(owns_config ? config : NULL)
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000098 {}
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000099 virtual ~VideoEngineImpl() {}
andresp@webrtc.org7707d062013-05-13 10:50:50 +0000100
101 private:
102 // Placeholder for the case where this owns the config.
103 scoped_ptr<const Config> own_config_;
niklase@google.com470e71d2011-07-07 08:21:25 +0000104};
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +0000105
niklase@google.com470e71d2011-07-07 08:21:25 +0000106} // namespace webrtc
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +0000107
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +0000108#endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_