blob: 1f8f680998db1d1f8f4bc9d34b1e0cc4d52d5a13 [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 */
10#ifndef WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_
11#define WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_
12
pbos@webrtc.org26d12102013-05-29 13:41:03 +000013#include <stddef.h>
14
pbos@webrtc.org29d58392013-05-16 12:08:03 +000015namespace webrtc {
16
pbos@webrtc.org26d12102013-05-29 13:41:03 +000017class Clock;
18
pbos@webrtc.org29d58392013-05-16 12:08:03 +000019namespace newapi {
20class VideoSendStreamInput;
21} // newapi
22
23namespace test {
24
25class VideoCapturer {
26 public:
pbos@webrtc.org771cdcb2013-05-23 12:20:16 +000027 static VideoCapturer* Create(newapi::VideoSendStreamInput* input,
28 size_t width,
29 size_t height,
pbos@webrtc.org26d12102013-05-29 13:41:03 +000030 size_t fps,
31 Clock* clock);
pbos@webrtc.org29d58392013-05-16 12:08:03 +000032 virtual ~VideoCapturer() {}
33
34 virtual void Start() = 0;
35 virtual void Stop() = 0;
36
37 protected:
38 explicit VideoCapturer(newapi::VideoSendStreamInput* input);
39 newapi::VideoSendStreamInput* input_;
40};
41} // test
42} // webrtc
43
mflodman@webrtc.org7f944f32013-05-27 15:52:38 +000044#endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_