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

Side by Side Diff: webrtc/media/devices/filevideocapturer.h

Issue 1587193006: Move talk/media to webrtc/media (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased to b647aca12a884a13c1728118586245399b55fa3d (#11493) Created 4 years, 10 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 | « webrtc/media/devices/fakedevicemanager.h ('k') | webrtc/media/devices/filevideocapturer.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 16 matching lines...) Expand all
27 27
28 // 28 //
29 // This file contains two classes, VideoRecorder and FileVideoCapturer. 29 // This file contains two classes, VideoRecorder and FileVideoCapturer.
30 // VideoRecorder records the captured frames into a file. The file stores a 30 // VideoRecorder records the captured frames into a file. The file stores a
31 // sequence of captured frames; each frame has a header defined in struct 31 // sequence of captured frames; each frame has a header defined in struct
32 // CapturedFrame, followed by the frame data. 32 // CapturedFrame, followed by the frame data.
33 // 33 //
34 // FileVideoCapturer, a subclass of VideoCapturer, is a simulated video capturer 34 // FileVideoCapturer, a subclass of VideoCapturer, is a simulated video capturer
35 // that periodically reads images from a previously recorded file. 35 // that periodically reads images from a previously recorded file.
36 36
37 #ifndef TALK_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_ 37 #ifndef WEBRTC_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_
38 #define TALK_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_ 38 #define WEBRTC_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_
39 39
40 #include <string> 40 #include <string>
41 #include <vector> 41 #include <vector>
42 42
43 #include "talk/media/base/videocapturer.h"
44 #include "webrtc/base/stream.h" 43 #include "webrtc/base/stream.h"
45 #include "webrtc/base/stringutils.h" 44 #include "webrtc/base/stringutils.h"
45 #include "webrtc/media/base/videocapturer.h"
46 46
47 namespace rtc { 47 namespace rtc {
48 class FileStream; 48 class FileStream;
49 } 49 }
50 50
51 namespace cricket { 51 namespace cricket {
52 52
53 // Utility class to record the frames captured by a video capturer into a file. 53 // Utility class to record the frames captured by a video capturer into a file.
54 class VideoRecorder { 54 class VideoRecorder {
55 public: 55 public:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 FileReadThread* file_read_thread_; 150 FileReadThread* file_read_thread_;
151 int repeat_; // How many times to repeat the file. 151 int repeat_; // How many times to repeat the file.
152 int64_t last_frame_timestamp_ns_; // Timestamp of last read frame. 152 int64_t last_frame_timestamp_ns_; // Timestamp of last read frame.
153 bool ignore_framerate_; 153 bool ignore_framerate_;
154 154
155 RTC_DISALLOW_COPY_AND_ASSIGN(FileVideoCapturer); 155 RTC_DISALLOW_COPY_AND_ASSIGN(FileVideoCapturer);
156 }; 156 };
157 157
158 } // namespace cricket 158 } // namespace cricket
159 159
160 #endif // TALK_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_ 160 #endif // WEBRTC_MEDIA_DEVICES_FILEVIDEOCAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/media/devices/fakedevicemanager.h ('k') | webrtc/media/devices/filevideocapturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698