| 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/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_vector.h" | |
| 17 #include "media/capture/video/video_capture_device.h" | 16 #include "media/capture/video/video_capture_device.h" |
| 18 | 17 |
| 19 namespace media { | 18 namespace media { |
| 20 | 19 |
| 21 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE | 20 // Class doing the actual Linux capture using V4L2 API. V4L2 SPLANE/MPLANE |
| 22 // capture specifics are implemented in derived classes. Created and destroyed | 21 // capture specifics are implemented in derived classes. Created and destroyed |
| 23 // on the owner's thread, otherwise living and operating on |v4l2_task_runner_|. | 22 // on the owner's thread, otherwise living and operating on |v4l2_task_runner_|. |
| 24 class V4L2CaptureDelegate | 23 class V4L2CaptureDelegate |
| 25 : public base::RefCountedThreadSafe<V4L2CaptureDelegate> { | 24 : public base::RefCountedThreadSafe<V4L2CaptureDelegate> { |
| 26 public: | 25 public: |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 160 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
| 162 int rotation_; | 161 int rotation_; |
| 163 | 162 |
| 164 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 163 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
| 165 }; | 164 }; |
| 166 | 165 |
| 167 } // namespace media | 166 } // namespace media |
| 168 | 167 |
| 169 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ | 168 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_VIDEO_CAPTURE_DELEGATE_H_ |
| OLD | NEW |