pbos@webrtc.org | 29d5839 | 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 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | namespace newapi { |
| 16 | class VideoSendStreamInput; |
| 17 | } // newapi |
| 18 | |
| 19 | namespace test { |
| 20 | |
| 21 | class VideoCapturer { |
| 22 | public: |
pbos@webrtc.org | 771cdcb | 2013-05-23 12:20:16 +0000 | [diff] [blame] | 23 | static VideoCapturer* Create(newapi::VideoSendStreamInput* input, |
| 24 | size_t width, |
| 25 | size_t height, |
| 26 | size_t fps); |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 27 | virtual ~VideoCapturer() {} |
| 28 | |
| 29 | virtual void Start() = 0; |
| 30 | virtual void Stop() = 0; |
| 31 | |
| 32 | protected: |
| 33 | explicit VideoCapturer(newapi::VideoSendStreamInput* input); |
| 34 | newapi::VideoSendStreamInput* input_; |
| 35 | }; |
| 36 | } // test |
| 37 | } // webrtc |
| 38 | |
mflodman@webrtc.org | 7f944f3 | 2013-05-27 15:52:38 +0000 | [diff] [blame] | 39 | #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_ |