OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ |
6 #define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ | 6 #define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 11 #include "base/files/scoped_file.h" |
| 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" |
| 14 #include "build/build_config.h" |
| 15 #include "media/capture/video/video_capture_device.h" |
| 16 |
8 #if defined(OS_OPENBSD) | 17 #if defined(OS_OPENBSD) |
9 #include <sys/videoio.h> | 18 #include <sys/videoio.h> |
10 #else | 19 #else |
11 #include <linux/videodev2.h> | 20 #include <linux/videodev2.h> |
12 #endif | 21 #endif |
13 | 22 |
14 #include "base/files/scoped_file.h" | |
15 #include "base/macros.h" | |
16 #include "base/memory/ref_counted.h" | |
17 #include "media/capture/video/video_capture_device.h" | |
18 | |
19 namespace tracked_objects { | 23 namespace tracked_objects { |
20 class Location; | 24 class Location; |
21 } // namespace tracked_objects | 25 } // namespace tracked_objects |
22 | 26 |
23 namespace media { | 27 namespace media { |
24 | 28 |
25 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE | 29 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE |
26 // capture specifics are implemented in derived classes. Created and destroyed | 30 // capture specifics are implemented in derived classes. Created and destroyed |
27 // on the owner's thread, otherwise living and operating on |v4l2_task_runner_|. | 31 // on the owner's thread, otherwise living and operating on |v4l2_task_runner_|. |
28 class V4L2CaptureDelegate | 32 class V4L2CaptureDelegate |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 168 |
165 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 169 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
166 int rotation_; | 170 int rotation_; |
167 | 171 |
168 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 172 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
169 }; | 173 }; |
170 | 174 |
171 } // namespace media | 175 } // namespace media |
172 | 176 |
173 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ | 177 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ |
OLD | NEW |