| 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_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 6 #define MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Forward-to versions of VideoCaptureDevice virtual methods. | 51 // Forward-to versions of VideoCaptureDevice virtual methods. |
| 52 void AllocateAndStart(int width, | 52 void AllocateAndStart(int width, |
| 53 int height, | 53 int height, |
| 54 float frame_rate, | 54 float frame_rate, |
| 55 std::unique_ptr<VideoCaptureDevice::Client> client); | 55 std::unique_ptr<VideoCaptureDevice::Client> client); |
| 56 void StopAndDeAllocate(); | 56 void StopAndDeAllocate(); |
| 57 | 57 |
| 58 void TakePhoto(VideoCaptureDevice::TakePhotoCallback callback); | 58 void TakePhoto(VideoCaptureDevice::TakePhotoCallback callback); |
| 59 | 59 |
| 60 void GetPhotoCapabilities( | |
| 61 VideoCaptureDevice::GetPhotoCapabilitiesCallback callback); | |
| 62 void SetPhotoOptions(mojom::PhotoSettingsPtr settings, | |
| 63 VideoCaptureDevice::SetPhotoOptionsCallback callback); | |
| 64 | |
| 65 void SetRotation(int rotation); | 60 void SetRotation(int rotation); |
| 66 | 61 |
| 67 private: | 62 private: |
| 68 friend class base::RefCountedThreadSafe<V4L2CaptureDelegate>; | 63 friend class base::RefCountedThreadSafe<V4L2CaptureDelegate>; |
| 69 ~V4L2CaptureDelegate(); | 64 ~V4L2CaptureDelegate(); |
| 70 | 65 |
| 71 class BufferTracker; | 66 class BufferTracker; |
| 72 | 67 |
| 73 // VIDIOC_QUERYBUFs a buffer from V4L2, creates a BufferTracker for it and | 68 // VIDIOC_QUERYBUFs a buffer from V4L2, creates a BufferTracker for it and |
| 74 // enqueues it (VIDIOC_QBUF) back into V4L2. | 69 // enqueues it (VIDIOC_QBUF) back into V4L2. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 99 | 94 |
| 100 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 95 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
| 101 int rotation_; | 96 int rotation_; |
| 102 | 97 |
| 103 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 98 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
| 104 }; | 99 }; |
| 105 | 100 |
| 106 } // namespace media | 101 } // namespace media |
| 107 | 102 |
| 108 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 103 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| OLD | NEW |