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

Unified Diff: chromecast/public/avsettings.h

Issue 2384823002: Add SetVideoMode API to avsettings (Closed)
Patch Set: Addressed comments Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/avsettings.h
diff --git a/chromecast/public/avsettings.h b/chromecast/public/avsettings.h
index be12e2183c309a8e4e343073c9374a511652cd5f..17e68cda223da0801a4841d45c4998a1870219d5 100644
--- a/chromecast/public/avsettings.h
+++ b/chromecast/public/avsettings.h
@@ -291,6 +291,27 @@ class AvSettings {
// Gets the current HDR output type.
virtual HdrOutputType GetHdrOutputType() = 0;
+
+ // Sets the video mode according to the given parameters:
gfhuang 2016/10/03 20:33:59 HDMI video mode
almasrymina1 2016/10/03 20:51:54 Done.
+ //
+ // allow_4k: if false, the resolution set will not be a 4K resolution.
+ //
+ // optimize_for_fps: *Attempts* to pick a refresh rate optimal for the given
+ // content frame rate. The content frame rate is expressed as framerate
+ // * 100. I.e. 24hz -> 2400, 23.98hz -> 23.98, etc. Values <= 0 are ignored.
+ //
+ // Returns false if it will not attempt to set the video mode. This could be
+ // due to:
+ // HDMI state is not connected.
+ // Resolution set is already the best resolution with the params provided.
+ //
+ // Returns true otherwise.
+ //
+ // When this API return true, A SCREEN_INFO_CHANGED event fires when the video
+ // mode setting completes. When this API returns false, no event is fired.
halliwell 2016/10/03 20:27:34 Could we just tighten up/organise this whole comme
almasrymina1 2016/10/03 20:51:54 Done. I couldn't think of a better name, so I just
+ //
+ // This API only applies to devices that output HDMI.
gfhuang 2016/10/03 20:33:59 ", otherwise, simply return false" (or true?)
almasrymina1 2016/10/03 20:51:54 Done.
+ virtual bool SetHdmiVideoMode(bool allow_4k, int optimize_for_fps) = 0;
};
} // namespace chromecast
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698