pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_ |
| 11 | #define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_ |
| 12 | |
pbos@webrtc.org | c1506a2 | 2013-05-29 13:41:03 +0000 | [diff] [blame] | 13 | #include <stddef.h> |
| 14 | |
pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 15 | namespace webrtc { |
| 16 | |
pbos@webrtc.org | c1506a2 | 2013-05-29 13:41:03 +0000 | [diff] [blame] | 17 | class Clock; |
| 18 | |
pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 19 | class VideoSendStreamInput; |
pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 20 | |
| 21 | namespace test { |
| 22 | |
| 23 | class VideoCapturer { |
| 24 | public: |
pbos@webrtc.org | c179706 | 2013-08-23 09:19:30 +0000 | [diff] [blame] | 25 | static VideoCapturer* Create(VideoSendStreamInput* input, |
pbos@webrtc.org | 074eb20 | 2013-05-23 12:20:16 +0000 | [diff] [blame] | 26 | size_t width, |
| 27 | size_t height, |
pbos@webrtc.org | e3e4615 | 2013-05-29 15:13:12 +0000 | [diff] [blame] | 28 | int fps, |
pbos@webrtc.org | c1506a2 | 2013-05-29 13:41:03 +0000 | [diff] [blame] | 29 | Clock* clock); |
pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 30 | virtual ~VideoCapturer() {} |
| 31 | |
| 32 | virtual void Start() = 0; |
| 33 | virtual void Stop() = 0; |
| 34 | |
| 35 | protected: |
pbos@webrtc.org | c179706 | 2013-08-23 09:19:30 +0000 | [diff] [blame] | 36 | explicit VideoCapturer(VideoSendStreamInput* input); |
| 37 | VideoSendStreamInput* input_; |
pbos@webrtc.org | 2a9108f | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 38 | }; |
| 39 | } // test |
| 40 | } // webrtc |
| 41 | |
mflodman@webrtc.org | a93cbbf | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 42 | #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_ |