Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: webrtc/media/base/videosourceinterface.h

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Work-in-progress, after applying 1790633002. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
};

Powered by Google App Engine
This is Rietveld 408576698