| 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 #if defined(OS_OPENBSD) | 8 #if defined(OS_OPENBSD) |
| 9 #include <sys/videoio.h> | 9 #include <sys/videoio.h> |
| 10 #else | 10 #else |
| 11 #include <linux/videodev2.h> | 11 #include <linux/videodev2.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
| 15 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 16 #include "media/capture/video/video_capture_device.h" | 17 #include "media/capture/video/video_capture_device.h" |
| 17 | 18 |
| 18 namespace tracked_objects { | 19 namespace tracked_objects { |
| 19 class Location; | 20 class Location; |
| 20 } // namespace tracked_objects | 21 } // namespace tracked_objects |
| 21 | 22 |
| 22 namespace media { | 23 namespace media { |
| 23 | 24 |
| 24 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE | 25 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 164 |
| 164 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 165 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
| 165 int rotation_; | 166 int rotation_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 168 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace media | 171 } // namespace media |
| 171 | 172 |
| 172 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ | 173 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ |
| OLD | NEW |