| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 109 virtual void Stop() = 0; |
| 110 virtual void Restart() = 0; | |
| 111 | 110 |
| 112 // Indicates that parameters suitable for screencasts should be automatically | 111 // Indicates that parameters suitable for screencasts should be automatically |
| 113 // applied to RtpSenders. | 112 // applied to RtpSenders. |
| 114 // TODO(perkj): Remove these once all known applications have moved to | 113 // TODO(perkj): Remove these once all known applications have moved to |
| 115 // explicitly setting suitable parameters for screencasts and dont' need this | 114 // explicitly setting suitable parameters for screencasts and dont' need this |
| 116 // implicit behavior. | 115 // implicit behavior. |
| 117 virtual bool is_screencast() const = 0; | 116 virtual bool is_screencast() const = 0; |
| 118 | 117 |
| 119 // Indicates that the encoder should denoise video before encoding it. | 118 // Indicates that the encoder should denoise video before encoding it. |
| 120 // If it is not set, the default configuration is used which is different | 119 // If it is not set, the default configuration is used which is different |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 265 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
| 267 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 266 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
| 268 | 267 |
| 269 protected: | 268 protected: |
| 270 virtual ~MediaStreamInterface() {} | 269 virtual ~MediaStreamInterface() {} |
| 271 }; | 270 }; |
| 272 | 271 |
| 273 } // namespace webrtc | 272 } // namespace webrtc |
| 274 | 273 |
| 275 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 274 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
| OLD | NEW |