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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 | 284 |
| 285 // Supported HDR output modes. | 285 // Supported HDR output modes. |
| 286 enum HdrOutputType { | 286 enum HdrOutputType { |
| 287 HDR_OUTPUT_SDR, // not HDR | 287 HDR_OUTPUT_SDR, // not HDR |
| 288 HDR_OUTPUT_HDR, // HDR with static metadata | 288 HDR_OUTPUT_HDR, // HDR with static metadata |
| 289 HDR_OUTPUT_DOLBYVISION // DolbyVision output | 289 HDR_OUTPUT_DOLBYVISION // DolbyVision output |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 // Gets the current HDR output type. | 292 // Gets the current HDR output type. |
| 293 virtual HdrOutputType GetHdrOutputType() = 0; | 293 virtual HdrOutputType GetHdrOutputType() = 0; |
| 294 | |
| 295 // 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.
| |
| 296 // | |
| 297 // allow_4k: if false, the resolution set will not be a 4K resolution. | |
| 298 // | |
| 299 // optimize_for_fps: *Attempts* to pick a refresh rate optimal for the given | |
| 300 // content frame rate. The content frame rate is expressed as framerate | |
| 301 // * 100. I.e. 24hz -> 2400, 23.98hz -> 23.98, etc. Values <= 0 are ignored. | |
| 302 // | |
| 303 // Returns false if it will not attempt to set the video mode. This could be | |
| 304 // due to: | |
| 305 // HDMI state is not connected. | |
| 306 // Resolution set is already the best resolution with the params provided. | |
| 307 // | |
| 308 // Returns true otherwise. | |
| 309 // | |
| 310 // When this API return true, A SCREEN_INFO_CHANGED event fires when the video | |
| 311 // 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
| |
| 312 // | |
| 313 // 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.
| |
| 314 virtual bool SetHdmiVideoMode(bool allow_4k, int optimize_for_fps) = 0; | |
| 294 }; | 315 }; |
| 295 | 316 |
| 296 } // namespace chromecast | 317 } // namespace chromecast |
| 297 | 318 |
| 298 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ | 319 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ |
| OLD | NEW |