OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ | 11 #ifndef WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ |
12 #define WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ | 12 #define WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ |
13 | 13 |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/api/video/video_frame.h" |
19 #include "webrtc/base/timeutils.h" | 20 #include "webrtc/base/timeutils.h" |
| 21 #include "webrtc/common_video/include/video_frame_buffer.h" |
20 #include "webrtc/media/base/videocapturer.h" | 22 #include "webrtc/media/base/videocapturer.h" |
21 #include "webrtc/media/base/videocommon.h" | 23 #include "webrtc/media/base/videocommon.h" |
22 #include "webrtc/video_frame.h" | |
23 | 24 |
24 namespace cricket { | 25 namespace cricket { |
25 | 26 |
26 // Fake video capturer that allows the test to manually pump in frames. | 27 // Fake video capturer that allows the test to manually pump in frames. |
27 class FakeVideoCapturer : public cricket::VideoCapturer { | 28 class FakeVideoCapturer : public cricket::VideoCapturer { |
28 public: | 29 public: |
29 explicit FakeVideoCapturer(bool is_screencast) | 30 explicit FakeVideoCapturer(bool is_screencast) |
30 : running_(false), | 31 : running_(false), |
31 initial_timestamp_(rtc::TimeNanos()), | 32 initial_timestamp_(rtc::TimeNanos()), |
32 next_timestamp_(rtc::kNumNanosecsPerMillisec), | 33 next_timestamp_(rtc::kNumNanosecsPerMillisec), |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool running_; | 139 bool running_; |
139 int64_t initial_timestamp_; | 140 int64_t initial_timestamp_; |
140 int64_t next_timestamp_; | 141 int64_t next_timestamp_; |
141 const bool is_screencast_; | 142 const bool is_screencast_; |
142 webrtc::VideoRotation rotation_; | 143 webrtc::VideoRotation rotation_; |
143 }; | 144 }; |
144 | 145 |
145 } // namespace cricket | 146 } // namespace cricket |
146 | 147 |
147 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ | 148 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ |
OLD | NEW |