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

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

Issue 2716643002: Add framerate to VideoSinkWants and ability to signal on overuse (Closed)
Patch Set: comments Created 3 years, 10 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 0ea1c60abfa389e5bc236925e25d9bae74e2886d..1c9822044ce642463ae045455f28887149808cff 100644
--- a/webrtc/media/base/videosourceinterface.h
+++ b/webrtc/media/base/videosourceinterface.h
@@ -34,6 +34,8 @@ struct VideoSinkWants {
// closest resolution to this pixel count, but if max_pixel_count is set, it
// still sets the absolute upper bound.
rtc::Optional<int> target_pixel_count;
+ // Tells the source the maximum framerate the sink wants.
+ rtc::Optional<int> max_framerate_fps_;
nisse-webrtc 2017/03/08 08:08:54 Consider changing it to non-optional with default
kthelgason 2017/03/08 08:15:59 I endorse this comment!
sprang_webrtc 2017/03/09 13:19:34 It might simplify it in some places, like videobro
};
template <typename VideoFrameT>

Powered by Google App Engine
This is Rietveld 408576698