Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: webrtc/test/video_capturer.h

Issue 2348533002: Reland Replace interface VideoCapturerInput with VideoSinkInterface. (Closed)
Patch Set: Fix rtp timestamp in quality test. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/vcm_capturer.cc ('k') | webrtc/test/video_capturer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_ 10 #ifndef WEBRTC_TEST_VIDEO_CAPTURER_H_
11 #define WEBRTC_TEST_VIDEO_CAPTURER_H_ 11 #define WEBRTC_TEST_VIDEO_CAPTURER_H_
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 14
15 #include "webrtc/media/base/videosourceinterface.h"
16 #include "webrtc/video_frame.h"
17
15 namespace webrtc { 18 namespace webrtc {
16 19
17 class Clock; 20 class Clock;
18 21
19 class VideoCaptureInput;
20
21 namespace test { 22 namespace test {
22 23
23 class VideoCapturer { 24 class VideoCapturer : public rtc::VideoSourceInterface<VideoFrame> {
24 public: 25 public:
25 static VideoCapturer* Create(VideoCaptureInput* input,
26 size_t width,
27 size_t height,
28 int fps,
29 Clock* clock);
30 virtual ~VideoCapturer() {} 26 virtual ~VideoCapturer() {}
31 27
32 virtual void Start() = 0; 28 virtual void Start() = 0;
33 virtual void Stop() = 0; 29 virtual void Stop() = 0;
34
35 protected:
36 explicit VideoCapturer(VideoCaptureInput* input);
37 VideoCaptureInput* input_;
38 }; 30 };
39 } // test 31 } // test
40 } // webrtc 32 } // webrtc
41 33
42 #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_ 34 #endif // WEBRTC_TEST_VIDEO_CAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/test/vcm_capturer.cc ('k') | webrtc/test/video_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698