blob: 6b792e14dede7c21b98b19909fa0e28bd2e752ad [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001/*
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
14namespace webrtc
15{
16
17VideoCaptureModule* VideoCaptureFactory::Create(const WebRtc_Word32 id,
18 const char* deviceUniqueIdUTF8) {
19 return videocapturemodule::VideoCaptureImpl::Create(id, deviceUniqueIdUTF8);
20}
21
22VideoCaptureModule* VideoCaptureFactory::Create(const WebRtc_Word32 id,
23 VideoCaptureExternal*& externalCapture) {
24 return videocapturemodule::VideoCaptureImpl::Create(id, externalCapture);
25}
26
27VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo(
28 const WebRtc_Word32 id) {
29 return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo(id);
30}
31
32} // namespace webrtc