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_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ | 10 #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ |
11 #define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ | 11 #define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ |
12 | 12 |
13 #include "webrtc/base/criticalsection.h" | 13 #include "webrtc/base/criticalsection.h" |
14 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
16 #include "webrtc/modules/video_capture/include/video_capture.h" | 16 #include "webrtc/modules/video_capture/video_capture.h" |
17 #include "webrtc/test/video_capturer.h" | 17 #include "webrtc/test/video_capturer.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 class VcmCapturer : public VideoCapturer, public VideoCaptureDataCallback { | 22 class VcmCapturer : public VideoCapturer, public VideoCaptureDataCallback { |
23 public: | 23 public: |
24 static VcmCapturer* Create(VideoCaptureInput* input, | 24 static VcmCapturer* Create(VideoCaptureInput* input, |
25 size_t width, | 25 size_t width, |
26 size_t height, | 26 size_t height, |
(...skipping 14 matching lines...) Expand all Loading... |
41 | 41 |
42 rtc::CriticalSection crit_; | 42 rtc::CriticalSection crit_; |
43 bool started_ GUARDED_BY(crit_); | 43 bool started_ GUARDED_BY(crit_); |
44 VideoCaptureModule* vcm_; | 44 VideoCaptureModule* vcm_; |
45 VideoCaptureCapability capability_; | 45 VideoCaptureCapability capability_; |
46 }; | 46 }; |
47 } // test | 47 } // test |
48 } // webrtc | 48 } // webrtc |
49 | 49 |
50 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ | 50 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VCM_CAPTURER_H_ |
OLD | NEW |