OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 // But it should not be used for starting or stopping capturing. | 132 // But it should not be used for starting or stopping capturing. |
133 // TODO(perkj): We are currently trying to replace all internal use of | 133 // TODO(perkj): We are currently trying to replace all internal use of |
134 // cricket::VideoCapturer with rtc::VideoSourceInterface. Once that | 134 // cricket::VideoCapturer with rtc::VideoSourceInterface. Once that |
135 // refactoring is done, | 135 // refactoring is done, |
136 // remove this method. | 136 // remove this method. |
137 virtual cricket::VideoCapturer* GetVideoCapturer() = 0; | 137 virtual cricket::VideoCapturer* GetVideoCapturer() = 0; |
138 | 138 |
139 virtual void Stop() = 0; | 139 virtual void Stop() = 0; |
140 virtual void Restart() = 0; | 140 virtual void Restart() = 0; |
141 | 141 |
142 virtual const cricket::VideoOptions* options() const = 0; | 142 virtual bool is_screencast() const = 0; |
143 virtual bool needs_denoising() const = 0; | |
pthatcher1
2016/03/08 21:27:31
Can you put a comment in here like:
// Indicates
perkj_webrtc
2016/03/08 22:23:57
Done.
| |
143 | 144 |
144 protected: | 145 protected: |
145 virtual ~VideoTrackSourceInterface() {} | 146 virtual ~VideoTrackSourceInterface() {} |
146 }; | 147 }; |
147 | 148 |
148 class VideoTrackInterface | 149 class VideoTrackInterface |
149 : public MediaStreamTrackInterface, | 150 : public MediaStreamTrackInterface, |
150 public rtc::VideoSourceInterface<cricket::VideoFrame> { | 151 public rtc::VideoSourceInterface<cricket::VideoFrame> { |
151 public: | 152 public: |
152 // AddRenderer and RemoveRenderer are for backwards compatibility | 153 // AddRenderer and RemoveRenderer are for backwards compatibility |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 308 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
308 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 309 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
309 | 310 |
310 protected: | 311 protected: |
311 virtual ~MediaStreamInterface() {} | 312 virtual ~MediaStreamInterface() {} |
312 }; | 313 }; |
313 | 314 |
314 } // namespace webrtc | 315 } // namespace webrtc |
315 | 316 |
316 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 317 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |