blob: 111f986643d37956c847bc1406628d4b1e4b6858 [file] [log] [blame]
pbos@webrtc.org29d58392013-05-16 12:08:03 +00001/*
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öm7623ce42015-12-09 12:13:30 +010010#ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_
11#define WEBRTC_TEST_VIDEO_CAPTURER_H_
pbos@webrtc.org29d58392013-05-16 12:08:03 +000012
pbos@webrtc.org26d12102013-05-29 13:41:03 +000013#include <stddef.h>
14
nisseaf916892017-01-10 07:44:26 -080015#include "webrtc/api/video/video_frame.h"
perkja49cbd32016-09-16 07:53:41 -070016#include "webrtc/media/base/videosourceinterface.h"
perkja49cbd32016-09-16 07:53:41 -070017
pbos@webrtc.org29d58392013-05-16 12:08:03 +000018namespace webrtc {
lliuuf9ed2352017-03-30 10:44:38 -070019
pbos@webrtc.org26d12102013-05-29 13:41:03 +000020class Clock;
lliuuf9ed2352017-03-30 10:44:38 -070021
pbos@webrtc.org29d58392013-05-16 12:08:03 +000022namespace test {
23
perkja49cbd32016-09-16 07:53:41 -070024class VideoCapturer : public rtc::VideoSourceInterface<VideoFrame> {
pbos@webrtc.org29d58392013-05-16 12:08:03 +000025 public:
lliuuf9ed2352017-03-30 10:44:38 -070026 virtual ~VideoCapturer() {}
pbos@webrtc.org29d58392013-05-16 12:08:03 +000027
28 virtual void Start() = 0;
29 virtual void Stop() = 0;
pbos@webrtc.org29d58392013-05-16 12:08:03 +000030};
lliuuf9ed2352017-03-30 10:44:38 -070031} // test
32} // webrtc
pbos@webrtc.org29d58392013-05-16 12:08:03 +000033
Peter Boström7623ce42015-12-09 12:13:30 +010034#endif // WEBRTC_TEST_VIDEO_CAPTURER_H_