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 // Indicates that parameters suitable for screencasts should be automatically |
| 143 // applied to RtpSenders. |
| 144 // TODO(perkj): Remove these once all known applications have moved to |
| 145 // explicitly setting suitable parameters for screencasts and dont' need this |
| 146 // implicit behavior. |
| 147 virtual bool is_screencast() const = 0; |
| 148 |
| 149 // Indicates that the encoder should denoise the video before encoding it. |
| 150 // TODO(perkj): Remove this once denoising is done by the source, and not by |
| 151 // the encoder. |
| 152 virtual bool needs_denoising() const = 0; |
143 | 153 |
144 protected: | 154 protected: |
145 virtual ~VideoTrackSourceInterface() {} | 155 virtual ~VideoTrackSourceInterface() {} |
146 }; | 156 }; |
147 | 157 |
148 class VideoTrackInterface | 158 class VideoTrackInterface |
149 : public MediaStreamTrackInterface, | 159 : public MediaStreamTrackInterface, |
150 public rtc::VideoSourceInterface<cricket::VideoFrame> { | 160 public rtc::VideoSourceInterface<cricket::VideoFrame> { |
151 public: | 161 public: |
152 // AddRenderer and RemoveRenderer are for backwards compatibility | 162 // 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; | 317 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
308 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 318 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
309 | 319 |
310 protected: | 320 protected: |
311 virtual ~MediaStreamInterface() {} | 321 virtual ~MediaStreamInterface() {} |
312 }; | 322 }; |
313 | 323 |
314 } // namespace webrtc | 324 } // namespace webrtc |
315 | 325 |
316 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 326 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |