| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |