pub enum DynamicRange {
Sdr,
Hdr,
DolbyVision,
Unknown,
}Expand description
What an item’s picture shows of brightness and colour, by its first version.
Variants§
Sdr
Neither HDR nor Dolby Vision.
Hdr
Any HDR: HDR10, HDR10+, HLG, or Dolby Vision. A filter for it keeps Dolby Vision items too.
DolbyVision
Dolby Vision, with or without an HDR10 base.
Unknown
A range this build does not know: InvalidInput.
Implementations§
Source§impl DynamicRange
impl DynamicRange
Sourcepub const ALL: &'static [DynamicRange]
pub const ALL: &'static [DynamicRange]
Every value an app offers, in the order a client lists
them: all but Unknown.
Sourcepub fn from_wire_name(name: &str) -> Option<Self>
pub fn from_wire_name(name: &str) -> Option<Self>
The value named name on the wire; None for a name
this build doesn’t know.
Trait Implementations§
Source§impl Clone for DynamicRange
impl Clone for DynamicRange
impl Copy for DynamicRange
Source§impl Debug for DynamicRange
impl Debug for DynamicRange
Source§impl<'de> Deserialize<'de> for DynamicRange
impl<'de> Deserialize<'de> for DynamicRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DynamicRange
Source§impl Hash for DynamicRange
impl Hash for DynamicRange
Source§impl Ord for DynamicRange
impl Ord for DynamicRange
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DynamicRange
impl PartialEq for DynamicRange
Source§impl PartialOrd for DynamicRange
impl PartialOrd for DynamicRange
Source§impl Serialize for DynamicRange
impl Serialize for DynamicRange
impl StructuralPartialEq for DynamicRange
Auto Trait Implementations§
impl Freeze for DynamicRange
impl RefUnwindSafe for DynamicRange
impl Send for DynamicRange
impl Sync for DynamicRange
impl Unpin for DynamicRange
impl UnsafeUnpin for DynamicRange
impl UnwindSafe for DynamicRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more