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 | */ |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 10 | #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_ |
| 11 | #define WEBRTC_TEST_VIDEO_CAPTURER_H_ |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 12 | |
pbos@webrtc.org | 26d1210 | 2013-05-29 13:41:03 +0000 | [diff] [blame] | 13 | #include <stddef.h> |
| 14 | |
nisse | af91689 | 2017-01-10 07:44:26 -0800 | [diff] [blame] | 15 | #include "webrtc/api/video/video_frame.h" |
perkj | a49cbd3 | 2016-09-16 07:53:41 -0700 | [diff] [blame] | 16 | #include "webrtc/media/base/videosourceinterface.h" |
perkj | a49cbd3 | 2016-09-16 07:53:41 -0700 | [diff] [blame] | 17 | |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 18 | namespace webrtc { |
lliuu | f9ed235 | 2017-03-30 10:44:38 -0700 | [diff] [blame] | 19 | |
pbos@webrtc.org | 26d1210 | 2013-05-29 13:41:03 +0000 | [diff] [blame] | 20 | class Clock; |
lliuu | f9ed235 | 2017-03-30 10:44:38 -0700 | [diff] [blame] | 21 | |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 22 | namespace test { |
| 23 | |
perkj | a49cbd3 | 2016-09-16 07:53:41 -0700 | [diff] [blame] | 24 | class VideoCapturer : public rtc::VideoSourceInterface<VideoFrame> { |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 25 | public: |
lliuu | f9ed235 | 2017-03-30 10:44:38 -0700 | [diff] [blame] | 26 | virtual ~VideoCapturer() {} |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 27 | |
| 28 | virtual void Start() = 0; |
| 29 | virtual void Stop() = 0; |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 30 | }; |
lliuu | f9ed235 | 2017-03-30 10:44:38 -0700 | [diff] [blame] | 31 | } // test |
| 32 | } // webrtc |
pbos@webrtc.org | 29d5839 | 2013-05-16 12:08:03 +0000 | [diff] [blame] | 33 | |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 34 | #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_ |