blob: 086282d18749b545f329f227a9bc01947ce057ce [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_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
13
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000014#include "webrtc/common.h"
15#include "webrtc/engine_configurations.h"
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000016#include "webrtc/system_wrappers/interface/scoped_ptr.h"
pbos@webrtc.org281cff82013-05-17 13:44:48 +000017#include "webrtc/video_engine/vie_defines.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000018
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000019#include "webrtc/video_engine/vie_base_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000020
21#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000022#include "webrtc/video_engine/vie_capture_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000023#endif
24#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000025#include "webrtc/video_engine/vie_codec_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000026#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000027#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000028#include "webrtc/video_engine/vie_file_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000029#endif
30#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000031#include "webrtc/video_engine/vie_image_process_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000032#endif
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000033#include "webrtc/video_engine/vie_network_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000034#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000035#include "webrtc/video_engine/vie_render_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000036#endif
37#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000038#include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000039#endif
40#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000041#include "webrtc/video_engine/vie_external_codec_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000042#endif
43
44namespace webrtc {
45
46class VideoEngineImpl
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000047 : public ViEBaseImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000048#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000049 public ViECodecImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000050#endif
51#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000052 public ViECaptureImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000053#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000054#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000055 public ViEFileImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000056#endif
57#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000058 public ViEImageProcessImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000059#endif
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000060 public ViENetworkImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000061#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000062 public ViERenderImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000063#endif
64#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000065 public ViERTP_RTCPImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000066#endif
67#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000068 public ViEExternalCodecImpl,
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000069#endif
andresp@webrtc.org90f05ed2013-05-08 19:20:23 +000070 public VideoEngine
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000071{ // NOLINT
72 public:
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000073 VideoEngineImpl(const Config* config, bool owns_config)
74 : ViEBaseImpl(*config),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000075#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000076 ViECodecImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000077#endif
78#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000079 ViECaptureImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000080#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000081#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000082 ViEFileImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000083#endif
84#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000085 ViEImageProcessImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000086#endif
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000087 ViENetworkImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000088#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000089 ViERenderImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000090#endif
91#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000092 ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000093#endif
94#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000095 ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000096#endif
andresp@webrtc.orgac6d9192013-05-13 10:50:50 +000097 own_config_(owns_config ? config : NULL)
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000098 {}
99 virtual ~VideoEngineImpl() {}
andresp@webrtc.orgac6d9192013-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_;
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000104};
105
106} // namespace webrtc
107
108#endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_