blob: f88f916ba473bf03529345b72f2d81f956b34032 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:231/*
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
pbos@webrtc.org87c29b52013-07-12 10:03:5211#include "webrtc/modules/video_capture/include/video_capture_factory.h"
12
13#include "webrtc/modules/video_capture/video_capture_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:2314
15namespace webrtc
16{
17
pbos@webrtc.orgf7e44d62013-04-10 08:23:1318VideoCaptureModule* VideoCaptureFactory::Create(const int32_t id,
andrew@webrtc.orgb015cbe2012-10-22 18:19:2319 const char* deviceUniqueIdUTF8) {
perkj2ffd0232015-09-21 08:46:3320#if defined(ANDROID)
21 return nullptr;
22#else
andrew@webrtc.orgb015cbe2012-10-22 18:19:2323 return videocapturemodule::VideoCaptureImpl::Create(id, deviceUniqueIdUTF8);
perkj2ffd0232015-09-21 08:46:3324#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:2325}
26
pbos@webrtc.orgf7e44d62013-04-10 08:23:1327VideoCaptureModule* VideoCaptureFactory::Create(const int32_t id,
andrew@webrtc.orgb015cbe2012-10-22 18:19:2328 VideoCaptureExternal*& externalCapture) {
29 return videocapturemodule::VideoCaptureImpl::Create(id, externalCapture);
30}
31
32VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo(
pbos@webrtc.orgf7e44d62013-04-10 08:23:1333 const int32_t id) {
perkj2ffd0232015-09-21 08:46:3334#if defined(ANDROID)
35 return nullptr;
36#else
andrew@webrtc.orgb015cbe2012-10-22 18:19:2337 return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo(id);
perkj2ffd0232015-09-21 08:46:3338#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:2339}
40
pbos@webrtc.org3b89e102013-07-03 15:12:2641} // namespace webrtc