blob: bfb9f413bd39e1ca615acd7d6d941016c39fe26b [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
13namespace webrtc {
14
15namespace newapi {
16class VideoSendStreamInput;
17} // newapi
18
19namespace test {
20
21class VideoCapturer {
22 public:
pbos@webrtc.org771cdcb2013-05-23 12:20:16 +000023 static VideoCapturer* Create(newapi::VideoSendStreamInput* input,
24 size_t width,
25 size_t height,
26 size_t fps);
pbos@webrtc.org29d58392013-05-16 12:08:03 +000027 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.org7f944f32013-05-27 15:52:38 +000039#endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_VIDEO_CAPTURER_H_