OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_TEST_VCM_CAPTURER_H_ | 10 #ifndef WEBRTC_TEST_VCM_CAPTURER_H_ |
11 #define WEBRTC_TEST_VCM_CAPTURER_H_ | 11 #define WEBRTC_TEST_VCM_CAPTURER_H_ |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
| 15 #include "webrtc/base/criticalsection.h" |
| 16 #include "webrtc/base/scoped_ref_ptr.h" |
15 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
17 #include "webrtc/modules/video_capture/video_capture.h" | 19 #include "webrtc/modules/video_capture/video_capture.h" |
18 #include "webrtc/rtc_base/criticalsection.h" | |
19 #include "webrtc/rtc_base/scoped_ref_ptr.h" | |
20 #include "webrtc/test/video_capturer.h" | 20 #include "webrtc/test/video_capturer.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 class VcmCapturer | 25 class VcmCapturer |
26 : public VideoCapturer, | 26 : public VideoCapturer, |
27 public rtc::VideoSinkInterface<VideoFrame> { | 27 public rtc::VideoSinkInterface<VideoFrame> { |
28 public: | 28 public: |
29 static VcmCapturer* Create(size_t width, | 29 static VcmCapturer* Create(size_t width, |
(...skipping 22 matching lines...) Expand all Loading... |
52 bool started_ GUARDED_BY(crit_); | 52 bool started_ GUARDED_BY(crit_); |
53 rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(crit_); | 53 rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(crit_); |
54 rtc::scoped_refptr<VideoCaptureModule> vcm_; | 54 rtc::scoped_refptr<VideoCaptureModule> vcm_; |
55 VideoCaptureCapability capability_; | 55 VideoCaptureCapability capability_; |
56 }; | 56 }; |
57 | 57 |
58 } // test | 58 } // test |
59 } // webrtc | 59 } // webrtc |
60 | 60 |
61 #endif // WEBRTC_TEST_VCM_CAPTURER_H_ | 61 #endif // WEBRTC_TEST_VCM_CAPTURER_H_ |
OLD | NEW |