blob: 28889123d52c3f9cad3eb0a632e2f20ddfaded71 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-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_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
13
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000014#include "webrtc/common.h"
15#include "webrtc/engine_configurations.h"
16#include "webrtc/video_engine/vie_defines.h"
17#include "webrtc/system_wrappers/interface/scoped_ptr.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000018
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000019#include "webrtc/video_engine/vie_base_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000020
21#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000022#include "webrtc/video_engine/vie_capture_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000023#endif
24#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000025#include "webrtc/video_engine/vie_codec_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000026#endif
27#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000028#include "webrtc/video_engine/vie_encryption_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000029#endif
30#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000031#include "webrtc/video_engine/vie_file_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000032#endif
33#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000034#include "webrtc/video_engine/vie_image_process_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000035#endif
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000036#include "webrtc/video_engine/vie_network_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000037#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000038#include "webrtc/video_engine/vie_render_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000039#endif
40#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000041#include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000042#endif
43#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000044#include "webrtc/video_engine/vie_external_codec_impl.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000045#endif
46
47namespace webrtc {
48
49class VideoEngineImpl
andresp@webrtc.orge1556262013-05-08 19:20:23 +000050 : public ViEBaseImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000051#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000052 public ViECodecImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000053#endif
54#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000055 public ViECaptureImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000056#endif
57#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000058 public ViEEncryptionImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000059#endif
60#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000061 public ViEFileImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000062#endif
63#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000064 public ViEImageProcessImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000065#endif
andresp@webrtc.orge1556262013-05-08 19:20:23 +000066 public ViENetworkImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000067#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000068 public ViERenderImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000069#endif
70#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000071 public ViERTP_RTCPImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000072#endif
73#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.orge1556262013-05-08 19:20:23 +000074 public ViEExternalCodecImpl,
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000075#endif
andresp@webrtc.orge1556262013-05-08 19:20:23 +000076 public VideoEngine
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000077{ // NOLINT
78 public:
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000079 VideoEngineImpl(const Config* config, bool owns_config)
80 : ViEBaseImpl(*config),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000081#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000082 ViECodecImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000083#endif
84#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000085 ViECaptureImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000086#endif
87#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000088 ViEEncryptionImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000089#endif
90#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000091 ViEFileImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000092#endif
93#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000094 ViEImageProcessImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000095#endif
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000096 ViENetworkImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000097#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +000098 ViERenderImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000099#endif
100#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +0000101 ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000102#endif
103#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +0000104 ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000105#endif
andresp@webrtc.orgad2b3682013-05-13 10:50:50 +0000106 own_config_(owns_config ? config : NULL)
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000107 {}
108 virtual ~VideoEngineImpl() {}
andresp@webrtc.orgad2b3682013-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_;
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000113};
114
115} // namespace webrtc
116
117#endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_