Chromium Code Reviews| Index: webrtc/api/mediastreaminterface.h |
| diff --git a/webrtc/api/mediastreaminterface.h b/webrtc/api/mediastreaminterface.h |
| index 3e79b94f9efd7e7f143d09ddb50f269f8702e0e4..a288d7c8d9a7030dad8869d238f084f2260fde74 100644 |
| --- a/webrtc/api/mediastreaminterface.h |
| +++ b/webrtc/api/mediastreaminterface.h |
| @@ -103,6 +103,11 @@ class VideoTrackSourceInterface |
| : public MediaSourceInterface, |
| public rtc::VideoSourceInterface<cricket::VideoFrame> { |
| public: |
| + struct VideoSourceInfo { |
| + // Original frame size, before video adaptation. |
| + int input_width; |
| + int input_height; |
| + }; |
| // Get access to the source implementation of cricket::VideoCapturer. |
| // This can be used for receiving frames and state notifications. |
| // But it should not be used for starting or stopping capturing. |
| @@ -127,6 +132,8 @@ class VideoTrackSourceInterface |
| // the encoder. |
| virtual bool needs_denoising() const = 0; |
| + virtual bool GetInfo(VideoSourceInfo* info) = 0; |
|
pthatcher1
2016/03/24 18:10:25
Why not just call this GetStats? And call the str
nisse-webrtc
2016/03/29 08:36:32
Renamed.
|
| + |
| protected: |
| virtual ~VideoTrackSourceInterface() {} |
| }; |