Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: media/capture/video/file_video_capture_device.h

Issue 1983193002: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve Comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/capture/video/fake_video_capture_device_unittest.cc ('k') | media/capture/video/file_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698