OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/video_capture/linux/device_info_linux.h" | 11 #include "webrtc/modules/video_capture/linux/device_info_linux.h" |
12 | 12 |
13 #include <errno.h> | 13 #include <errno.h> |
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #include <stdio.h> | 15 #include <stdio.h> |
16 #include <stdlib.h> | 16 #include <stdlib.h> |
17 #include <sys/ioctl.h> | 17 #include <sys/ioctl.h> |
18 #include <sys/stat.h> | 18 #include <sys/stat.h> |
19 #include <unistd.h> | 19 #include <unistd.h> |
20 //v4l includes | 20 //v4l includes |
21 #include <linux/videodev2.h> | 21 #include <linux/videodev2.h> |
22 | 22 |
23 #include "webrtc/system_wrappers/interface/ref_count.h" | 23 #include "webrtc/system_wrappers/include/ref_count.h" |
24 #include "webrtc/system_wrappers/interface/trace.h" | 24 #include "webrtc/system_wrappers/include/trace.h" |
25 | 25 |
26 | 26 |
27 namespace webrtc | 27 namespace webrtc |
28 { | 28 { |
29 namespace videocapturemodule | 29 namespace videocapturemodule |
30 { | 30 { |
31 VideoCaptureModule::DeviceInfo* | 31 VideoCaptureModule::DeviceInfo* |
32 VideoCaptureImpl::CreateDeviceInfo(const int32_t id) | 32 VideoCaptureImpl::CreateDeviceInfo(const int32_t id) |
33 { | 33 { |
34 videocapturemodule::DeviceInfoLinux *deviceInfo = | 34 videocapturemodule::DeviceInfoLinux *deviceInfo = |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 WEBRTC_TRACE(webrtc::kTraceInfo, | 330 WEBRTC_TRACE(webrtc::kTraceInfo, |
331 webrtc::kTraceVideoCapture, | 331 webrtc::kTraceVideoCapture, |
332 _id, | 332 _id, |
333 "CreateCapabilityMap %u", | 333 "CreateCapabilityMap %u", |
334 static_cast<unsigned int>(_captureCapabilities.size())); | 334 static_cast<unsigned int>(_captureCapabilities.size())); |
335 return _captureCapabilities.size(); | 335 return _captureCapabilities.size(); |
336 } | 336 } |
337 | 337 |
338 } // namespace videocapturemodule | 338 } // namespace videocapturemodule |
339 } // namespace webrtc | 339 } // namespace webrtc |
OLD | NEW |