blob: ec016f8d3d48776e7f984f11af43bd8f24dbce17 [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
Henrik Kjellandere22c7db2015-11-12 11:46:0911#include "webrtc/modules/video_capture/video_capture_factory.h"
pbos@webrtc.org87c29b52013-07-12 10:03:5212
13#include "webrtc/modules/video_capture/video_capture_impl.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:2314
Peter Boströmaec92fa2016-03-21 15:44:3115namespace webrtc {
andrew@webrtc.orgb015cbe2012-10-22 18:19:2316
Peter Boströmaec92fa2016-03-21 15:44:3117rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create(
andrew@webrtc.orgb015cbe2012-10-22 18:19:2318 const char* deviceUniqueIdUTF8) {
perkj2ffd0232015-09-21 08:46:3319#if defined(ANDROID)
20 return nullptr;
21#else
nisse469b3a42016-12-12 08:22:5622 return videocapturemodule::VideoCaptureImpl::Create(deviceUniqueIdUTF8);
perkj2ffd0232015-09-21 08:46:3323#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:2324}
25
Peter Boströmaec92fa2016-03-21 15:44:3126rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create(
andrew@webrtc.orgb015cbe2012-10-22 18:19:2327 VideoCaptureExternal*& externalCapture) {
nisse469b3a42016-12-12 08:22:5628 return videocapturemodule::VideoCaptureImpl::Create(externalCapture);
andrew@webrtc.orgb015cbe2012-10-22 18:19:2329}
30
nisse469b3a42016-12-12 08:22:5631VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo() {
perkj2ffd0232015-09-21 08:46:3332#if defined(ANDROID)
33 return nullptr;
34#else
nisse469b3a42016-12-12 08:22:5635 return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo();
perkj2ffd0232015-09-21 08:46:3336#endif
andrew@webrtc.orgb015cbe2012-10-22 18:19:2337}
38
pbos@webrtc.org3b89e102013-07-03 15:12:2639} // namespace webrtc