2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-06-28 07:29:46 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#ifndef WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
|
|
|
|
|
#define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/common.h"
|
|
|
|
|
#include "webrtc/engine_configurations.h"
|
|
|
|
|
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
|
2013-05-17 13:44:48 +00:00
|
|
|
#include "webrtc/video_engine/vie_defines.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_base_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_capture_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_codec_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_encryption_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_file_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_image_process_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_network_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_render_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
|
2013-05-13 10:50:50 +00:00
|
|
|
#include "webrtc/video_engine/vie_external_codec_impl.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
2011-12-20 11:57:47 +00:00
|
|
|
namespace webrtc {
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-12-20 11:57:47 +00:00
|
|
|
class VideoEngineImpl
|
2013-05-08 19:20:23 +00:00
|
|
|
: public ViEBaseImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViECodecImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViECaptureImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViEEncryptionImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViEFileImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViEImageProcessImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViENetworkImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViERenderImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViERTP_RTCPImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
|
2013-05-08 19:20:23 +00:00
|
|
|
public ViEExternalCodecImpl,
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif
|
2013-05-08 19:20:23 +00:00
|
|
|
public VideoEngine
|
2011-12-20 11:57:47 +00:00
|
|
|
{ // NOLINT
|
|
|
|
|
public:
|
2013-05-13 10:50:50 +00:00
|
|
|
VideoEngineImpl(const Config* config, bool owns_config)
|
|
|
|
|
: ViEBaseImpl(*config),
|
2012-01-25 13:42:03 +00:00
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViECodecImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViECaptureImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViEEncryptionImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_FILE_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViEFileImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViEImageProcessImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
2013-05-13 10:50:50 +00:00
|
|
|
ViENetworkImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViERenderImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
|
|
|
|
#ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
|
2013-05-13 10:50:50 +00:00
|
|
|
ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
|
2012-01-25 13:42:03 +00:00
|
|
|
#endif
|
2013-05-13 10:50:50 +00:00
|
|
|
own_config_(owns_config ? config : NULL)
|
2012-01-25 13:42:03 +00:00
|
|
|
{}
|
2011-12-20 11:57:47 +00:00
|
|
|
virtual ~VideoEngineImpl() {}
|
2013-05-13 10:50:50 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// Placeholder for the case where this owns the config.
|
|
|
|
|
scoped_ptr<const Config> own_config_;
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
2011-12-20 11:57:47 +00:00
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
} // namespace webrtc
|
2011-12-20 11:57:47 +00:00
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
|