• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <errno.h>
12 #include <fcntl.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string.h>
16 #include <sys/ioctl.h>
17 #include <unistd.h>
18 // v4l includes
19 #include <linux/videodev2.h>
20 
21 #include <vector>
22 
23 #include "modules/video_capture/linux/device_info_v4l2.h"
24 #include "modules/video_capture/video_capture.h"
25 #include "modules/video_capture/video_capture_defines.h"
26 #include "modules/video_capture/video_capture_impl.h"
27 #include "rtc_base/logging.h"
28 
29 namespace webrtc {
30 namespace videocapturemodule {
CreateDeviceInfo()31 VideoCaptureModule::DeviceInfo* VideoCaptureImpl::CreateDeviceInfo() {
32   return new videocapturemodule::DeviceInfoV4l2();
33 }
34 }  // namespace videocapturemodule
35 }  // namespace webrtc
36