video_capture_factory.h (1564B)
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 // This file contains interfaces used for creating the VideoCaptureModule 12 // and DeviceInfo. 13 14 #ifndef MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ 15 #define MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ 16 17 #include "api/scoped_refptr.h" 18 #include "modules/video_capture/video_capture.h" 19 #include "rtc_base/system/rtc_export.h" 20 21 namespace webrtc { 22 23 class VideoCaptureOptions; 24 25 class RTC_EXPORT VideoCaptureFactory { 26 public: 27 // Create a video capture module object 28 // id - unique identifier of this video capture module object. 29 // deviceUniqueIdUTF8 - name of the device. 30 // Available names can be found by using GetDeviceName 31 static scoped_refptr<VideoCaptureModule> Create( 32 const char* deviceUniqueIdUTF8); 33 static scoped_refptr<VideoCaptureModule> Create( 34 VideoCaptureOptions* options, 35 const char* deviceUniqueIdUTF8); 36 37 static VideoCaptureModule::DeviceInfo* CreateDeviceInfo(); 38 static VideoCaptureModule::DeviceInfo* CreateDeviceInfo( 39 VideoCaptureOptions* options); 40 41 private: 42 ~VideoCaptureFactory(); 43 }; 44 45 } // namespace webrtc 46 47 #endif // MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_