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 */ 10 #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_ 11 #define WEBRTC_TEST_VIDEO_CAPTURER_H_ 12 13 #include <stddef.h> 14 15 namespace webrtc { 16 17 class Clock; 18 19 class VideoCaptureInput; 20 21 namespace test { 22 23 class VideoCapturer { 24 public: 25 static VideoCapturer* Create(VideoCaptureInput* input, 26 size_t width, 27 size_t height, 28 int fps, 29 Clock* clock); ~VideoCapturer()30 virtual ~VideoCapturer() {} 31 32 virtual void Start() = 0; 33 virtual void Stop() = 0; 34 35 protected: 36 explicit VideoCapturer(VideoCaptureInput* input); 37 VideoCaptureInput* input_; 38 }; 39 } // test 40 } // webrtc 41 42 #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_ 43