Index: webrtc/media/base/videosourceinterface.h |
diff --git a/webrtc/media/base/videosourceinterface.h b/webrtc/media/base/videosourceinterface.h |
index e96a901f7d23ad8019ba4ae8c9b900c51469e8f7..cd92322cb8a99c08cfd321b309a7c38c2caa6e03 100644 |
--- a/webrtc/media/base/videosourceinterface.h |
+++ b/webrtc/media/base/videosourceinterface.h |
@@ -36,6 +36,12 @@ struct VideoSinkWants { |
rtc::Optional<int> max_pixel_count_step_up; |
}; |
+struct VideoSourceInfo { |
+ // Original frame size, before video adaptation. |
+ int orig_width = 0; |
+ int orig_height = 0; |
+}; |
+ |
template <typename VideoFrameT> |
class VideoSourceInterface { |
public: |
@@ -44,7 +50,7 @@ class VideoSourceInterface { |
// RemoveSink must guarantee that at the time the method returns, |
// there is no current and no future calls to VideoSinkInterface::OnFrame. |
virtual void RemoveSink(VideoSinkInterface<VideoFrameT>* sink) = 0; |
- |
+ virtual void GetInfo(VideoSourceInfo *info) = 0; |
perkj_webrtc
2016/03/20 15:01:46
So we have the option of adding some kind of stats
nisse-webrtc
2016/03/21 09:18:50
I've tried the third approach now. I like the simp
|
protected: |
virtual ~VideoSourceInterface() {} |
}; |