Struct AVMasteringDisplayMetadata
#[repr(C)]pub struct AVMasteringDisplayMetadata {
pub display_primaries: [[AVRational; 2]; 3],
pub white_point: [AVRational; 2],
pub min_luminance: AVRational,
pub max_luminance: AVRational,
pub has_primaries: i32,
pub has_luminance: i32,
}
Expand description
Mastering display metadata capable of representing the color volume of the display used to master the content (SMPTE 2086:2014).
To be used as payload of a AVFrameSideData or AVPacketSideData with the appropriate type.
@note The struct should be allocated with av_mastering_display_metadata_alloc() and its size is not a part of the public ABI.
Fields§
§display_primaries: [[AVRational; 2]; 3]
CIE 1931 xy chromaticity coords of color primaries (r, g, b order).
white_point: [AVRational; 2]
CIE 1931 xy chromaticity coords of white point.
min_luminance: AVRational
Min luminance of mastering display (cd/m^2).
max_luminance: AVRational
Max luminance of mastering display (cd/m^2).
has_primaries: i32
Flag indicating whether the display primaries (and white point) are set.
has_luminance: i32
Flag indicating whether the luminance (min_ and max_) have been set.
Trait Implementations§
§impl Clone for AVMasteringDisplayMetadata
impl Clone for AVMasteringDisplayMetadata
§fn clone(&self) -> AVMasteringDisplayMetadata
fn clone(&self) -> AVMasteringDisplayMetadata
Returns a copy 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 more§impl Debug for AVMasteringDisplayMetadata
impl Debug for AVMasteringDisplayMetadata
impl Copy for AVMasteringDisplayMetadata
Auto Trait Implementations§
impl Freeze for AVMasteringDisplayMetadata
impl RefUnwindSafe for AVMasteringDisplayMetadata
impl Send for AVMasteringDisplayMetadata
impl Sync for AVMasteringDisplayMetadata
impl Unpin for AVMasteringDisplayMetadata
impl UnwindSafe for AVMasteringDisplayMetadata
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