blob: ec576a0fd94de9a064037b759bc0dbb9605eff79 [file] [log] [blame]
pbos@webrtc.org2a9108f2013-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 */
10#ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_
11#define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_
12
pbos@webrtc.orgc1506a22013-05-29 13:41:03 +000013#include <stddef.h>
14
pbos@webrtc.org2a9108f2013-05-16 12:08:03 +000015namespace webrtc {
16
pbos@webrtc.orgc1506a22013-05-29 13:41:03 +000017class Clock;
18
pbos@webrtc.org2a9108f2013-05-16 12:08:03 +000019class VideoSendStreamInput;
pbos@webrtc.org2a9108f2013-05-16 12:08:03 +000020
21namespace test {
22
23class VideoCapturer {
24 public:
pbos@webrtc.orgc1797062013-08-23 09:19:30 +000025 static VideoCapturer* Create(VideoSendStreamInput* input,
pbos@webrtc.org074eb202013-05-23 12:20:16 +000026 size_t width,
27 size_t height,
pbos@webrtc.orge3e46152013-05-29 15:13:12 +000028 int fps,
pbos@webrtc.orgc1506a22013-05-29 13:41:03 +000029 Clock* clock);
pbos@webrtc.org2a9108f2013-05-16 12:08:03 +000030 virtual ~VideoCapturer() {}
31
32 virtual void Start() = 0;
33 virtual void Stop() = 0;
34
35 protected:
pbos@webrtc.orgc1797062013-08-23 09:19:30 +000036 explicit VideoCapturer(VideoSendStreamInput* input);
37 VideoSendStreamInput* input_;
pbos@webrtc.org2a9108f2013-05-16 12:08:03 +000038};
39} // test
40} // webrtc
41
mflodman@webrtc.orga93cbbf2013-05-27 15:52:38 +000042#endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_