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

Side by Side Diff: webrtc/api/remotevideocapturer.h

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location for peerconnection_unittests.isolate Created 4 years, 11 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
OLDNEW
(Empty)
1 /*
2 * Copyright 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
11 #ifndef WEBRTC_API_REMOTEVIDEOCAPTURER_H_
12 #define WEBRTC_API_REMOTEVIDEOCAPTURER_H_
13
14 #include <vector>
15
16 #include "talk/media/base/videocapturer.h"
17 #include "talk/media/base/videorenderer.h"
18 #include "webrtc/api/mediastreaminterface.h"
19
20 namespace webrtc {
21
22 // RemoteVideoCapturer implements a simple cricket::VideoCapturer which
23 // gets decoded remote video frames from media channel.
24 // It's used as the remote video source's VideoCapturer so that the remote video
25 // can be used as a cricket::VideoCapturer and in that way a remote video stream
26 // can implement the MediaStreamSourceInterface.
27 class RemoteVideoCapturer : public cricket::VideoCapturer {
28 public:
29 RemoteVideoCapturer();
30 virtual ~RemoteVideoCapturer();
31
32 // cricket::VideoCapturer implementation.
33 cricket::CaptureState Start(
34 const cricket::VideoFormat& capture_format) override;
35 void Stop() override;
36 bool IsRunning() override;
37 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
38 bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
39 cricket::VideoFormat* best_format) override;
40 bool IsScreencast() const override;
41
42 private:
43 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteVideoCapturer);
44 };
45
46 } // namespace webrtc
47
48 #endif // WEBRTC_API_REMOTEVIDEOCAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698