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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_ 5 #ifndef DEVICE_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_
6 #define MEDIA_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_ 6 #define DEVICE_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/files/memory_mapped_file.h" 14 #include "base/files/memory_mapped_file.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "media/capture/video/video_capture_device.h" 18 #include "device/capture/video/video_capture_device.h"
19 19
20 namespace media { 20 namespace media {
21 21
22 class VideoFileParser; 22 class VideoFileParser;
23 23
24 // Implementation of a VideoCaptureDevice class that reads from a file. Used for 24 // Implementation of a VideoCaptureDevice class that reads from a file. Used for
25 // testing the video capture pipeline when no real hardware is available. The 25 // testing the video capture pipeline when no real hardware is available. The
26 // supported file formats are YUV4MPEG2 (a.k.a. Y4M) and MJPEG/JPEG. YUV4MPEG2 26 // supported file formats are YUV4MPEG2 (a.k.a. Y4M) and MJPEG/JPEG. YUV4MPEG2
27 // is a minimal container with a series of uncompressed video only frames, see 27 // is a minimal container with a series of uncompressed video only frames, see
28 // the link http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 for more 28 // the link http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 for more
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 84 // The system time when we receive the first frame.
85 base::TimeTicks first_ref_time_; 85 base::TimeTicks first_ref_time_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice); 87 DISALLOW_COPY_AND_ASSIGN(FileVideoCaptureDevice);
88 }; 88 };
89 89
90 } // namespace media 90 } // namespace media
91 91
92 #endif // MEDIA_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_ 92 #endif // DEVICE_CAPTURE_VIDEO_FILE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW
« no previous file with comments | « device/capture/video/fake_video_capture_device_unittest.cc ('k') | device/capture/video/file_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698