| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 base::Thread capture_thread_; | 60 base::Thread capture_thread_; |
| 61 // The following members belong to |capture_thread_|. | 61 // The following members belong to |capture_thread_|. |
| 62 scoped_ptr<VideoCaptureDevice::Client> client_; | 62 scoped_ptr<VideoCaptureDevice::Client> client_; |
| 63 const base::FilePath file_path_; | 63 const base::FilePath file_path_; |
| 64 base::File file_; | 64 base::File file_; |
| 65 scoped_ptr<uint8[]> video_frame_; | 65 scoped_ptr<uint8[]> video_frame_; |
| 66 VideoCaptureFormat capture_format_; | 66 VideoCaptureFormat capture_format_; |
| 67 int frame_size_; | 67 int frame_size_; |
| 68 int64 current_byte_index_; | 68 int64 current_byte_index_; |
| 69 int64 first_frame_byte_index_; | 69 int64 first_frame_byte_index_; |
| 70 // Target time for the next frame. |
| 71 base::TimeTicks next_frame_time_; |
| 70 | 72 |
| 71 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice); | 73 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice); |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 } // namespace media | 76 } // namespace media |
| 75 | 77 |
| 76 #endif // MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ | 78 #endif // MEDIA_VIDEO_CAPTURE_FILE_VIDEO_CAPTURE_DEVICE_H_ |
| OLD | NEW |