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

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

Issue 1162903004: FileVideoCaptureDevice: Regulate framerate without drifting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | media/video/capture/file_video_capture_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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_
OLDNEW
« no previous file with comments | « no previous file | media/video/capture/file_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698