| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FILE_VIDEO_CAPTURE_DEVICE_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ |
| 6 #define MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ | 6 #define MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // |capture_thread_| is used for internal operations via posting tasks to it. | 74 // |capture_thread_| is used for internal operations via posting tasks to it. |
| 75 // It is active between OnAllocateAndStart() and OnStopAndDeAllocate(). | 75 // It is active between OnAllocateAndStart() and OnStopAndDeAllocate(). |
| 76 base::Thread capture_thread_; | 76 base::Thread capture_thread_; |
| 77 // The following members belong to |capture_thread_|. | 77 // The following members belong to |capture_thread_|. |
| 78 std::unique_ptr<VideoCaptureDevice::Client> client_; | 78 std::unique_ptr<VideoCaptureDevice::Client> client_; |
| 79 const base::FilePath file_path_; | 79 const base::FilePath file_path_; |
| 80 std::unique_ptr<VideoFileParser> file_parser_; | 80 std::unique_ptr<VideoFileParser> file_parser_; |
| 81 VideoCaptureFormat capture_format_; | 81 VideoCaptureFormat capture_format_; |
| 82 // Target time for the next frame. | 82 // Target time for the next frame. |
| 83 base::TimeTicks next_frame_time_; | 83 base::TimeTicks next_frame_time_; |
| 84 // The system time when we receive the first frame. |
| 85 base::TimeTicks first_ref_time_; |
| 84 | 86 |
| 85 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice); | 87 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice); |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 } // namespace media | 90 } // namespace media |
| 89 | 91 |
| 90 #endif // MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ | 92 #endif // MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ |
| OLD | NEW |