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 "modules/video_capture/video_capture_defines.h" 20 21 namespace webrtc { 22 23 class VideoCaptureFactory { 24 public: 25 // Create a video capture module object 26 // id - unique identifier of this video capture module object. 27 // deviceUniqueIdUTF8 - name of the device. 28 // Available names can be found by using GetDeviceName 29 static rtc::scoped_refptr<VideoCaptureModule> Create( 30 const char* deviceUniqueIdUTF8); 31 32 static VideoCaptureModule::DeviceInfo* CreateDeviceInfo(); 33 34 private: 35 ~VideoCaptureFactory(); 36 }; 37 38 } // namespace webrtc 39 40 #endif // MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_FACTORY_H_ 41