Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/capture/video/linux/video_capture_device_linux.h" | 5 #include "media/capture/video/linux/video_capture_device_linux.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "media/capture/video/linux/camera_characteristics.h" | |
|
kcwu
2016/11/24 15:48:52
unused
shenghao
2016/11/28 08:52:04
Done.
| |
| 14 #include "media/capture/video/linux/v4l2_capture_delegate.h" | 15 #include "media/capture/video/linux/v4l2_capture_delegate.h" |
| 15 | 16 |
| 16 #if defined(OS_OPENBSD) | 17 #if defined(OS_OPENBSD) |
| 17 #include <sys/videoio.h> | 18 #include <sys/videoio.h> |
| 18 #else | 19 #else |
| 19 #include <linux/videodev2.h> | 20 #include <linux/videodev2.h> |
| 20 #endif | 21 #endif |
| 21 | 22 |
| 22 namespace media { | 23 namespace media { |
| 23 | 24 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 return V4L2_CID_POWER_LINE_FREQUENCY_50HZ; | 128 return V4L2_CID_POWER_LINE_FREQUENCY_50HZ; |
| 128 case media::PowerLineFrequency::FREQUENCY_60HZ: | 129 case media::PowerLineFrequency::FREQUENCY_60HZ: |
| 129 return V4L2_CID_POWER_LINE_FREQUENCY_60HZ; | 130 return V4L2_CID_POWER_LINE_FREQUENCY_60HZ; |
| 130 default: | 131 default: |
| 131 // If we have no idea of the frequency, at least try and set it to AUTO. | 132 // If we have no idea of the frequency, at least try and set it to AUTO. |
| 132 return V4L2_CID_POWER_LINE_FREQUENCY_AUTO; | 133 return V4L2_CID_POWER_LINE_FREQUENCY_AUTO; |
| 133 } | 134 } |
| 134 } | 135 } |
| 135 | 136 |
| 136 } // namespace media | 137 } // namespace media |
| OLD | NEW |