#[non_exhaustive]pub struct HdrStaticMetadata {
pub eotf: HdrEotf,
pub static_metadata_descriptors: u8,
pub max_luminance: Option<f32>,
pub max_fall: Option<f32>,
pub min_luminance: Option<f32>,
}Expand description
Decoded HDR Static Metadata Data Block (extended tag 0x06).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.eotf: HdrEotfSupported EOTFs (tone-mapping curves).
static_metadata_descriptors: u8Static Metadata Descriptor type bitmap (usually bit 0 = Type 1 / MaxCLL/MaxFALL).
max_luminance: Option<f32>Desired content maximum luminance in cd/m², decoded from byte 3.
Encoded as 50 × 2^(raw / 32). None when the byte is absent.
max_fall: Option<f32>Desired content maximum frame-average light level (MaxFALL) in cd/m².
Same encoding as max_luminance. None when absent.
min_luminance: Option<f32>Desired content minimum luminance in cd/m², decoded from byte 5.
Encoded as max_luminance × (raw / 255)² / 100. None when absent or when
max_luminance is not present.
Implementations§
Trait Implementations§
Source§impl Clone for HdrStaticMetadata
impl Clone for HdrStaticMetadata
Source§fn clone(&self) -> HdrStaticMetadata
fn clone(&self) -> HdrStaticMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 HdrStaticMetadata
impl Debug for HdrStaticMetadata
Source§impl PartialEq for HdrStaticMetadata
impl PartialEq for HdrStaticMetadata
impl StructuralPartialEq for HdrStaticMetadata
Auto Trait Implementations§
impl Freeze for HdrStaticMetadata
impl RefUnwindSafe for HdrStaticMetadata
impl Send for HdrStaticMetadata
impl Sync for HdrStaticMetadata
impl Unpin for HdrStaticMetadata
impl UnsafeUnpin for HdrStaticMetadata
impl UnwindSafe for HdrStaticMetadata
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