Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_PUBLIC_AVSETTINGS_H_ | 5 #ifndef CHROMECAST_PUBLIC_AVSETTINGS_H_ |
| 6 #define CHROMECAST_PUBLIC_AVSETTINGS_H_ | 6 #define CHROMECAST_PUBLIC_AVSETTINGS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "output_restrictions.h" | 10 #include "output_restrictions.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 // if they result in a change of active restrictions. | 269 // if they result in a change of active restrictions. |
| 270 virtual void ApplyOutputRestrictions( | 270 virtual void ApplyOutputRestrictions( |
| 271 const OutputRestrictions& restrictions) = 0; | 271 const OutputRestrictions& restrictions) = 0; |
| 272 | 272 |
| 273 // Returns current Wake-On-Cast status from platform. | 273 // Returns current Wake-On-Cast status from platform. |
| 274 virtual WakeOnCastStatus GetWakeOnCastStatus() = 0; | 274 virtual WakeOnCastStatus GetWakeOnCastStatus() = 0; |
| 275 | 275 |
| 276 // Enables/Disables Wake-On-Cast status. | 276 // Enables/Disables Wake-On-Cast status. |
| 277 // Returns false if failed or not supported. | 277 // Returns false if failed or not supported. |
| 278 virtual bool EnableWakeOnCast(bool enabled) = 0; | 278 virtual bool EnableWakeOnCast(bool enabled) = 0; |
| 279 | |
| 280 // Sets the video mode according to the given parameters: | |
| 281 // | |
| 282 // allow_4k: if false, the resolution set will not be a 4K resolution. | |
| 283 // | |
| 284 // prefer_50hz: picks a resolution optimized for 50 hz content. | |
|
halliwell
2016/09/30 21:28:14
can we eliminate this in public API (use the fps p
almasrymina
2016/10/03 20:05:05
Done.
| |
| 285 // | |
| 286 // optimize_for_fps: *Attempts* to pick an fps optimal for the given fps. | |
|
halliwell
2016/09/30 21:28:14
"pick a refresh rate optimal for the given content
almasrymina
2016/10/03 20:05:05
Done.
| |
| 287 // Values <= 0 are ignored. | |
| 288 // | |
| 289 // Returns false if it will not attempt to set the video mode. This could be | |
| 290 // due to: | |
| 291 // HDMI state is not connected. | |
| 292 // Resolution set is already the best resolution with the params provided. | |
|
halliwell
2016/09/30 21:28:14
'resolution is already best' should not be the sam
almasrymina
2016/10/03 20:05:05
Discussed offline: the error cases here are not th
| |
| 293 // | |
| 294 // Returns True otherwise. A SCREEN_INFO_CHANGED event fires when the video | |
|
halliwell
2016/09/30 21:28:14
nit: 'true'
almasrymina
2016/10/03 20:05:05
Done.
| |
| 295 // mode setting completes. | |
| 296 virtual bool SetVideoMode(bool prefer_50hz, | |
| 297 bool allow_4k, | |
| 298 int optimize_for_fps) { | |
|
halliwell
2016/09/30 21:28:14
can we make this a float (or express as fps*100) s
almasrymina
2016/10/03 20:05:05
Done.
| |
| 299 return false; | |
| 300 } | |
|
gfhuang
2016/09/30 20:30:24
public API must be pure.
and from the comment, it
halliwell
2016/09/30 21:08:23
I actually wonder if we should group the HDMI-rela
almasrymina
2016/10/03 20:05:05
Done.
| |
| 279 }; | 301 }; |
| 280 | 302 |
| 281 } // namespace chromecast | 303 } // namespace chromecast |
| 282 | 304 |
| 283 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ | 305 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ |
| OLD | NEW |