pub struct HdrSourceMetadata {
pub eotf: TransferFunction,
pub display_primaries: ColorimetryInfo,
pub max_display_mastering_luminance: u16,
pub min_display_mastering_luminance: u16,
pub max_content_light_level: u16,
pub max_frame_average_light_level: u16,
}Expand description
What the source is emitting.
Units follow CTA-861.3:
| field | unit |
|---|---|
max_display_mastering_luminance | cd/m², 1 cd/m² steps |
min_display_mastering_luminance | 0.0001 cd/m² steps |
max_content_light_level | cd/m², 1 cd/m² steps |
max_frame_average_light_level | cd/m², 1 cd/m² steps |
This describes the content, not the display it is going to. A sink that cannot reach these levels tone-maps; that is the sink’s business, and misreporting here to flatter it produces worse results, not better.
Fields§
§eotf: TransferFunctionTransfer function the content is encoded with.
display_primaries: ColorimetryInfoMastering display primaries and white point.
Named by color here; the serializer reorders to the green/blue/red the wire format asks for.
max_display_mastering_luminance: u16Peak luminance of the mastering display, cd/m².
min_display_mastering_luminance: u16Black level of the mastering display, in 0.0001 cd/m² steps.
max_content_light_level: u16Brightest pixel in the content, cd/m².
max_frame_average_light_level: u16Brightest frame average in the content, cd/m².
Trait Implementations§
Source§impl Clone for HdrSourceMetadata
impl Clone for HdrSourceMetadata
impl Copy for HdrSourceMetadata
Source§impl Debug for HdrSourceMetadata
impl Debug for HdrSourceMetadata
Source§impl Default for HdrSourceMetadata
impl Default for HdrSourceMetadata
Source§impl PartialEq for HdrSourceMetadata
impl PartialEq for HdrSourceMetadata
impl StructuralPartialEq for HdrSourceMetadata
Auto Trait Implementations§
impl Freeze for HdrSourceMetadata
impl RefUnwindSafe for HdrSourceMetadata
impl Send for HdrSourceMetadata
impl Sync for HdrSourceMetadata
impl Unpin for HdrSourceMetadata
impl UnsafeUnpin for HdrSourceMetadata
impl UnwindSafe for HdrSourceMetadata
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