wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 1 | /* |
leozwang@webrtc.org | 1745e93 | 2012-03-01 16:30:40 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +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 | |
| 11 | // This file contains interfaces used for creating the VideoCaptureModule |
| 12 | // and DeviceInfo. |
| 13 | |
Henrik Kjellander | 5dda80a | 2015-11-12 12:46:09 +0100 | [diff] [blame] | 14 | #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ |
| 15 | #define WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 16 | |
Henrik Kjellander | 5dda80a | 2015-11-12 12:46:09 +0100 | [diff] [blame] | 17 | #include "webrtc/modules/video_capture/video_capture.h" |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | class VideoCaptureFactory { |
| 22 | public: |
| 23 | // Create a video capture module object |
| 24 | // id - unique identifier of this video capture module object. |
| 25 | // deviceUniqueIdUTF8 - name of the device. |
| 26 | // Available names can be found by using GetDeviceName |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 27 | static rtc::scoped_refptr<VideoCaptureModule> Create( |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 28 | const char* deviceUniqueIdUTF8); |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 29 | |
| 30 | // Create a video capture module object used for external capture. |
| 31 | // id - unique identifier of this video capture module object |
| 32 | // externalCapture - [out] interface to call when a new frame is captured. |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 33 | static rtc::scoped_refptr<VideoCaptureModule> Create( |
Peter Boström | 1d19441 | 2016-03-21 16:44:31 +0100 | [diff] [blame] | 34 | VideoCaptureExternal*& externalCapture); |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 35 | |
nisse | b29b9c8 | 2016-12-12 00:22:56 -0800 | [diff] [blame] | 36 | static VideoCaptureModule::DeviceInfo* CreateDeviceInfo(); |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 37 | |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 38 | private: |
| 39 | ~VideoCaptureFactory(); |
| 40 | }; |
| 41 | |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 42 | } // namespace webrtc |
wu@webrtc.org | ea89922 | 2011-10-11 17:13:51 +0000 | [diff] [blame] | 43 | |
Henrik Kjellander | 5dda80a | 2015-11-12 12:46:09 +0100 | [diff] [blame] | 44 | #endif // WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ |