niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
mflodman@webrtc.org | cee447a | 2012-06-28 07:29:46 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
mflodman@webrtc.org | e06ca3c | 2012-06-29 13:20:14 +0000 | [diff] [blame] | 11 | #ifndef WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_ |
| 12 | #define WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 14 | #include "webrtc/common.h" |
| 15 | #include "webrtc/engine_configurations.h" |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 16 | #include "webrtc/system_wrappers/interface/scoped_ptr.h" |
pbos@webrtc.org | f5d4cb1 | 2013-05-17 13:44:48 +0000 | [diff] [blame^] | 17 | #include "webrtc/video_engine/vie_defines.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 18 | |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 19 | #include "webrtc/video_engine/vie_base_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 22 | #include "webrtc/video_engine/vie_capture_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 23 | #endif |
| 24 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 25 | #include "webrtc/video_engine/vie_codec_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 26 | #endif |
| 27 | #ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 28 | #include "webrtc/video_engine/vie_encryption_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 29 | #endif |
| 30 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 31 | #include "webrtc/video_engine/vie_file_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 32 | #endif |
| 33 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 34 | #include "webrtc/video_engine/vie_image_process_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 35 | #endif |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 36 | #include "webrtc/video_engine/vie_network_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 37 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 38 | #include "webrtc/video_engine/vie_render_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | #endif |
| 40 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 41 | #include "webrtc/video_engine/vie_rtp_rtcp_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 42 | #endif |
| 43 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 44 | #include "webrtc/video_engine/vie_external_codec_impl.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 45 | #endif |
| 46 | |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 47 | namespace webrtc { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 48 | |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 49 | class VideoEngineImpl |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 50 | : public ViEBaseImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 51 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 52 | public ViECodecImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 53 | #endif |
| 54 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 55 | public ViECaptureImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 56 | #endif |
| 57 | #ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 58 | public ViEEncryptionImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 59 | #endif |
| 60 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 61 | public ViEFileImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 62 | #endif |
| 63 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 64 | public ViEImageProcessImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 65 | #endif |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 66 | public ViENetworkImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 67 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 68 | public ViERenderImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 69 | #endif |
| 70 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 71 | public ViERTP_RTCPImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 72 | #endif |
| 73 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 74 | public ViEExternalCodecImpl, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 75 | #endif |
andresp@webrtc.org | 4427273 | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 76 | public VideoEngine |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 77 | { // NOLINT |
| 78 | public: |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 79 | VideoEngineImpl(const Config* config, bool owns_config) |
| 80 | : ViEBaseImpl(*config), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 81 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 82 | ViECodecImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 83 | #endif |
| 84 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 85 | ViECaptureImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 86 | #endif |
| 87 | #ifdef WEBRTC_VIDEO_ENGINE_ENCRYPTION_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 88 | ViEEncryptionImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 89 | #endif |
| 90 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 91 | ViEFileImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 92 | #endif |
| 93 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 94 | ViEImageProcessImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 95 | #endif |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 96 | ViENetworkImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 97 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 98 | ViERenderImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 99 | #endif |
| 100 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 101 | ViERTP_RTCPImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 102 | #endif |
| 103 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 104 | ViEExternalCodecImpl(ViEBaseImpl::shared_data()), |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 105 | #endif |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 106 | own_config_(owns_config ? config : NULL) |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 107 | {} |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 108 | virtual ~VideoEngineImpl() {} |
andresp@webrtc.org | 7707d06 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 109 | |
| 110 | private: |
| 111 | // Placeholder for the case where this owns the config. |
| 112 | scoped_ptr<const Config> own_config_; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 113 | }; |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 114 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 115 | } // namespace webrtc |
mflodman@webrtc.org | 1bdf1df | 2011-12-20 11:57:47 +0000 | [diff] [blame] | 116 | |
mflodman@webrtc.org | e06ca3c | 2012-06-29 13:20:14 +0000 | [diff] [blame] | 117 | #endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_ |