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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 class VideoTrackSourceInterface | 99 class VideoTrackSourceInterface |
100 : public MediaSourceInterface, | 100 : public MediaSourceInterface, |
101 public rtc::VideoSourceInterface<cricket::VideoFrame> { | 101 public rtc::VideoSourceInterface<cricket::VideoFrame> { |
102 public: | 102 public: |
103 struct Stats { | 103 struct Stats { |
104 // Original size of captured frame, before video adaptation. | 104 // Original size of captured frame, before video adaptation. |
105 int input_width; | 105 int input_width; |
106 int input_height; | 106 int input_height; |
107 }; | 107 }; |
108 | 108 |
109 virtual void Stop() = 0; | |
110 | |
111 // Indicates that parameters suitable for screencasts should be automatically | 109 // Indicates that parameters suitable for screencasts should be automatically |
112 // applied to RtpSenders. | 110 // applied to RtpSenders. |
113 // TODO(perkj): Remove these once all known applications have moved to | 111 // TODO(perkj): Remove these once all known applications have moved to |
114 // explicitly setting suitable parameters for screencasts and dont' need this | 112 // explicitly setting suitable parameters for screencasts and dont' need this |
115 // implicit behavior. | 113 // implicit behavior. |
116 virtual bool is_screencast() const = 0; | 114 virtual bool is_screencast() const = 0; |
117 | 115 |
118 // Indicates that the encoder should denoise video before encoding it. | 116 // Indicates that the encoder should denoise video before encoding it. |
119 // If it is not set, the default configuration is used which is different | 117 // If it is not set, the default configuration is used which is different |
120 // depending on video codec. | 118 // depending on video codec. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 263 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
266 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 264 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
267 | 265 |
268 protected: | 266 protected: |
269 virtual ~MediaStreamInterface() {} | 267 virtual ~MediaStreamInterface() {} |
270 }; | 268 }; |
271 | 269 |
272 } // namespace webrtc | 270 } // namespace webrtc |
273 | 271 |
274 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 272 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |