pub struct NativeFrameColorMetadata {
pub primaries: Option<String>,
pub transfer: Option<String>,
pub matrix: Option<String>,
pub range: Option<String>,
pub bit_depth: Option<u8>,
}Expand description
Color characteristics that must be preserved for HDR native-frame playback.
Fields§
§primaries: Option<String>§transfer: Option<String>§matrix: Option<String>§range: Option<String>§bit_depth: Option<u8>Implementations§
Source§impl NativeFrameColorMetadata
impl NativeFrameColorMetadata
Sourcepub fn is_hdr_transfer(&self) -> bool
pub fn is_hdr_transfer(&self) -> bool
Returns whether this metadata describes a known HDR transfer function.
Sourcepub fn requires_preservation(&self) -> bool
pub fn requires_preservation(&self) -> bool
Returns whether this color metadata requires explicit preservation.
Trait Implementations§
Source§impl Clone for NativeFrameColorMetadata
impl Clone for NativeFrameColorMetadata
Source§fn clone(&self) -> NativeFrameColorMetadata
fn clone(&self) -> NativeFrameColorMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeFrameColorMetadata
impl Debug for NativeFrameColorMetadata
Source§impl<'de> Deserialize<'de> for NativeFrameColorMetadata
impl<'de> Deserialize<'de> for NativeFrameColorMetadata
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 NativeFrameColorMetadata
Source§impl PartialEq for NativeFrameColorMetadata
impl PartialEq for NativeFrameColorMetadata
Source§impl Serialize for NativeFrameColorMetadata
impl Serialize for NativeFrameColorMetadata
impl StructuralPartialEq for NativeFrameColorMetadata
Auto Trait Implementations§
impl Freeze for NativeFrameColorMetadata
impl RefUnwindSafe for NativeFrameColorMetadata
impl Send for NativeFrameColorMetadata
impl Sync for NativeFrameColorMetadata
impl Unpin for NativeFrameColorMetadata
impl UnsafeUnpin for NativeFrameColorMetadata
impl UnwindSafe for NativeFrameColorMetadata
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