pub struct DisplayCapabilities {
pub bit_depth: Option<u32>,
pub hdr: Option<BTreeSet<HdrFormat>>,
pub video_codecs: Option<BTreeSet<String>>,
}Expand description
What the screen shows now, as a playback starts: VideoLimits::hdr
and VideoLimits::bit_depth for that playback only, over what the
client said at Hello. A TV’s display mode changes while the app runs
(Match Dynamic Range, another TV or receiver, HDR turned off), and
capabilities from Hello would send HDR to an SDR mode or tone map for
an HDR one.
Both fields are required, as in VideoLimits: None is no limit.
Fields§
§bit_depth: Option<u32>§hdr: Option<BTreeSet<HdrFormat>>As VideoLimits::hdr.
video_codecs: Option<BTreeSet<String>>As ClientCapabilities::video_codecs, asked again for this
display: a Dolby Vision string may be played on one mode and not
on another. None keeps Hello’s. It may be left out, and is
None then.
Implementations§
Source§impl DisplayCapabilities
impl DisplayCapabilities
Sourcepub fn for_hdr(show: bool, dolby_vision: bool) -> Self
pub fn for_hdr(show: bool, dolby_vision: bool) -> Self
The screen as it is now: with show on (the device shows HDR, and
the user’s “Show HDR” is on), HDR10 and HLG; Dolby Vision too only
with dolby_vision, where the player shows it in its own colours.
Off, none: the server tone maps to SDR. A Dolby Vision profile 5
film sent to a player that cannot show it has wrong colours, so it
is never on by default. The bit depth is the device’s.