andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | /* |
| 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.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 14 | #include "webrtc/common.h" |
| 15 | #include "webrtc/engine_configurations.h" |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 16 | #include "webrtc/system_wrappers/interface/scoped_ptr.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 +0000 | [diff] [blame] | 17 | #include "webrtc/video_engine/vie_defines.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 18 | |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 19 | #include "webrtc/video_engine/vie_base_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 22 | #include "webrtc/video_engine/vie_capture_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 23 | #endif |
| 24 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 25 | #include "webrtc/video_engine/vie_codec_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 26 | #endif |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 27 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 28 | #include "webrtc/video_engine/vie_file_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 29 | #endif |
| 30 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 31 | #include "webrtc/video_engine/vie_image_process_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 32 | #endif |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 33 | #include "webrtc/video_engine/vie_network_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 34 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 35 | #include "webrtc/video_engine/vie_render_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 36 | #endif |
| 37 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 38 | #include "webrtc/video_engine/vie_rtp_rtcp_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 39 | #endif |
| 40 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 41 | #include "webrtc/video_engine/vie_external_codec_impl.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 42 | #endif |
| 43 | |
| 44 | namespace webrtc { |
| 45 | |
| 46 | class VideoEngineImpl |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 47 | : public ViEBaseImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 48 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 49 | public ViECodecImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 50 | #endif |
| 51 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 52 | public ViECaptureImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 53 | #endif |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 54 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 55 | public ViEFileImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 56 | #endif |
| 57 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 58 | public ViEImageProcessImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 59 | #endif |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 60 | public ViENetworkImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 61 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 62 | public ViERenderImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 63 | #endif |
| 64 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 65 | public ViERTP_RTCPImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 66 | #endif |
| 67 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 68 | public ViEExternalCodecImpl, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 69 | #endif |
andresp@webrtc.org | 90f05ed | 2013-05-08 19:20:23 +0000 | [diff] [blame] | 70 | public VideoEngine |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 71 | { // NOLINT |
| 72 | public: |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 73 | VideoEngineImpl(const Config* config, bool owns_config) |
| 74 | : ViEBaseImpl(*config), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 75 | #ifdef WEBRTC_VIDEO_ENGINE_CODEC_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 76 | ViECodecImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 77 | #endif |
| 78 | #ifdef WEBRTC_VIDEO_ENGINE_CAPTURE_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 79 | ViECaptureImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 80 | #endif |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 81 | #ifdef WEBRTC_VIDEO_ENGINE_FILE_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 82 | ViEFileImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 83 | #endif |
| 84 | #ifdef WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 85 | ViEImageProcessImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 86 | #endif |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 87 | ViENetworkImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 88 | #ifdef WEBRTC_VIDEO_ENGINE_RENDER_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 89 | ViERenderImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 90 | #endif |
| 91 | #ifdef WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 92 | ViERTP_RTCPImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 93 | #endif |
| 94 | #ifdef WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 95 | ViEExternalCodecImpl(ViEBaseImpl::shared_data()), |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 96 | #endif |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 97 | own_config_(owns_config ? config : NULL) |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 98 | {} |
| 99 | virtual ~VideoEngineImpl() {} |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 +0000 | [diff] [blame] | 100 | |
| 101 | private: |
| 102 | // Placeholder for the case where this owns the config. |
| 103 | scoped_ptr<const Config> own_config_; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 104 | }; |
| 105 | |
| 106 | } // namespace webrtc |
| 107 | |
| 108 | #endif // WEBRTC_VIDEO_ENGINE_VIE_IMPL_H_ |