andrew@webrtc.org | a7b57da | 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 | #include "video_capture_factory.h" |
| 12 | #include "video_capture_impl.h" |
| 13 | |
| 14 | namespace webrtc |
| 15 | { |
| 16 | |
| 17 | VideoCaptureModule* VideoCaptureFactory::Create(const WebRtc_Word32 id, |
| 18 | const char* deviceUniqueIdUTF8) { |
| 19 | return videocapturemodule::VideoCaptureImpl::Create(id, deviceUniqueIdUTF8); |
| 20 | } |
| 21 | |
| 22 | VideoCaptureModule* VideoCaptureFactory::Create(const WebRtc_Word32 id, |
| 23 | VideoCaptureExternal*& externalCapture) { |
| 24 | return videocapturemodule::VideoCaptureImpl::Create(id, externalCapture); |
| 25 | } |
| 26 | |
| 27 | VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo( |
| 28 | const WebRtc_Word32 id) { |
| 29 | return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo(id); |
| 30 | } |
| 31 | |
| 32 | } // namespace webrtc |