| 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 HDMI video mode according to the given parameters: |
| 296 // |allow_4k|: if false, the resolution set will not be a 4K resolution. |
| 297 // |optimize_for_fps|: *Attempts* to pick a refresh rate optimal for the |
| 298 // given content frame rate. |optimize_for_fps| is expressed as framerate |
| 299 // * 100. I.e. 24hz -> 2400, 23.98hz -> 2398, etc. Values <= 0 are ignored. |
| 300 // |
| 301 // Returns: |
| 302 // - true if HDMI video mode change is beginning. Caller should wait for |
| 303 // SCREEN_INFO_CHANGED event for mode change to complete. |
| 304 // - false if no HDMI video mode change has begun. This could be because |
| 305 // HDMI is disconnected, or the current resolution is already good for the |
| 306 // given parameters. |
| 307 // |
| 308 // Non-HDMI devices should return false. |
| 309 virtual bool SetHdmiVideoMode(bool allow_4k, int optimize_for_fps) = 0; |
| 294 }; | 310 }; |
| 295 | 311 |
| 296 } // namespace chromecast | 312 } // namespace chromecast |
| 297 | 313 |
| 298 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ | 314 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ |
| OLD | NEW |