2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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.
11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
12 #define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_
14 #include "webrtc/common.h"
15 #include "webrtc/engine_configurations.h"
16 #include "webrtc/system_wrappers/interface/scoped_ptr.h"
17 #include "webrtc/video_engine/vie_defines.h"
19 #include "webrtc/video_engine/vie_base_impl.h"
21 #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
22 #include "webrtc/video_engine/vie_capture_impl.h"
24 #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
25 #include "webrtc/video_engine/vie_codec_impl.h"
27 #ifdef WEBRTC_VIDEO_ENGINE_FILE_API
28 #include "webrtc/video_engine/vie_file_impl.h"
30 #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
31 #include "webrtc/video_engine/vie_image_process_impl.h"
33 #include "webrtc/video_engine/vie_network_impl.h"
34 #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
35 #include "webrtc/video_engine/vie_render_impl.h"
37 #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
38 #include "webrtc/video_engine/vie_rtp_rtcp_impl.h"
40 #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
41 #include "webrtc/video_engine/vie_external_codec_impl.h"
48 #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
51 #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
52 public ViECaptureImpl,
54 #ifdef WEBRTC_VIDEO_ENGINE_FILE_API
57 #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
58 public ViEImageProcessImpl,
60 public ViENetworkImpl,
61 #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
64 #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
65 public ViERTP_RTCPImpl,
67 #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
68 public ViEExternalCodecImpl,
73 VideoEngineImpl(const Config* config, bool owns_config)
74 : ViEBaseImpl(*config),
75 #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API
76 ViECodecImpl(ViEBaseImpl::shared_data()),
78 #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API
79 ViECaptureImpl(ViEBaseImpl::shared_data()),
81 #ifdef WEBRTC_VIDEO_ENGINE_FILE_API
82 ViEFileImpl(ViEBaseImpl::shared_data()),
84 #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
85 ViEImageProcessImpl(ViEBaseImpl::shared_data()),
87 ViENetworkImpl(ViEBaseImpl::shared_data()),
88 #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API
89 ViERenderImpl(ViEBaseImpl::shared_data()),
91 #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
92 ViERTP_RTCPImpl(ViEBaseImpl::shared_data()),
94 #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
95 ViEExternalCodecImpl(ViEBaseImpl::shared_data()),
97 own_config_(owns_config ? config : NULL)
99 virtual ~VideoEngineImpl() {}
102 // Placeholder for the case where this owns the config.
103 scoped_ptr<const Config> own_config_;
106 } // namespace webrtc
108 #endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_