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

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

Issue 1695263002: Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added from_width && from_height in resolution change req. Created 4 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 14624585432194c74bec680c6f18befb56ce79f5..1d7f78e7417c41aa9ce4a7dc35ebc703c2276dde 100644
--- a/webrtc/media/base/videosourceinterface.h
+++ b/webrtc/media/base/videosourceinterface.h
@@ -27,6 +27,15 @@ struct VideoSinkWants {
// Tells the source whether the sink wants frames with rotation applied.
// By default, the rotation is applied by the source.
bool rotation_applied = true;
+
+ struct ResolutionRequest {
nisse-webrtc 2016/02/17 08:19:46 This needs a comment. At first look, it seems a bi
perkj_webrtc 2016/02/17 17:16:29 Changed to only store max_number_of_pixels for now
+ enum Change { NONE, UP, DOWN };
+ int from_width = 0;
+ int from_height = 0;
+ Change change = NONE;
+ };
+
+ ResolutionRequest resolution_request;
};
template <typename VideoFrameT>

Powered by Google App Engine
This is Rietveld 408576698