pub struct HdrMetadata {
pub transfer: TransferFunction,
pub content_light_level: Option<ContentLightLevel>,
pub mastering_display: Option<MasteringDisplay>,
}Expand description
Describes the HDR characteristics of pixel data.
Bundles transfer function, content light level, and mastering display metadata to provide everything needed for HDR processing.
Fields§
§transfer: TransferFunctionTransfer function (PQ, HLG, sRGB, Linear, etc.).
content_light_level: Option<ContentLightLevel>Content light level (MaxCLL/MaxFALL). Optional.
mastering_display: Option<MasteringDisplay>Mastering display color volume. Optional.
Implementations§
Source§impl HdrMetadata
impl HdrMetadata
Sourcepub fn hdr10(cll: ContentLightLevel) -> Self
pub fn hdr10(cll: ContentLightLevel) -> Self
Create HDR10 metadata with PQ transfer.
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 · 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 HdrMetadata
impl Debug for HdrMetadata
Source§impl PartialEq for HdrMetadata
impl PartialEq for HdrMetadata
impl Copy 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