| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 base::ScopedFD device_fd_; | 90 base::ScopedFD device_fd_; |
| 91 | 91 |
| 92 std::queue<VideoCaptureDevice::TakePhotoCallback> take_photo_callbacks_; | 92 std::queue<VideoCaptureDevice::TakePhotoCallback> take_photo_callbacks_; |
| 93 | 93 |
| 94 // Vector of BufferTracker to keep track of mmap()ed pointers and their use. | 94 // Vector of BufferTracker to keep track of mmap()ed pointers and their use. |
| 95 std::vector<scoped_refptr<BufferTracker>> buffer_tracker_pool_; | 95 std::vector<scoped_refptr<BufferTracker>> buffer_tracker_pool_; |
| 96 | 96 |
| 97 bool is_capturing_; | 97 bool is_capturing_; |
| 98 int timeout_count_; | 98 int timeout_count_; |
| 99 | 99 |
| 100 base::TimeTicks first_ref_time_; |
| 101 |
| 100 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 102 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
| 101 int rotation_; | 103 int rotation_; |
| 102 | 104 |
| 103 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 105 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace media | 108 } // namespace media |
| 107 | 109 |
| 108 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 110 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| OLD | NEW |