#[non_exhaustive]pub struct HdrMetadata {
pub content_light_level: Option<ContentLightLevel>,
pub mastering: Option<MasteringDisplay>,
}Expand description
Descriptive HDR container metadata (CLL / ST 2086 mastering display).
Purely informational — never silently selects a display or tone-mapping peak.
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.content_light_level: Option<ContentLightLevel>Content light level (MaxCLL / MaxFALL).
mastering: Option<MasteringDisplay>Mastering display color volume (SMPTE ST 2086 / mDCV).
Implementations§
Source§impl HdrMetadata
impl HdrMetadata
Sourcepub const fn new(
content_light_level: Option<ContentLightLevel>,
mastering: Option<MasteringDisplay>,
) -> HdrMetadata
pub const fn new( content_light_level: Option<ContentLightLevel>, mastering: Option<MasteringDisplay>, ) -> HdrMetadata
Bundle optional content light level and mastering display metadata.
Trait Implementations§
Source§impl Clone for HdrMetadata
impl Clone for HdrMetadata
Source§fn clone(&self) -> HdrMetadata
fn clone(&self) -> HdrMetadata
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 moreimpl Copy for HdrMetadata
Source§impl Debug for HdrMetadata
impl Debug for HdrMetadata
Source§impl Default for HdrMetadata
impl Default for HdrMetadata
Source§fn default() -> HdrMetadata
fn default() -> HdrMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for HdrMetadata
impl PartialEq for HdrMetadata
impl StructuralPartialEq for HdrMetadata
Auto Trait Implementations§
impl Freeze for HdrMetadata
impl RefUnwindSafe for HdrMetadata
impl Send for HdrMetadata
impl Sync for HdrMetadata
impl Unpin for HdrMetadata
impl UnsafeUnpin for HdrMetadata
impl UnwindSafe for HdrMetadata
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