pub struct VideoMasteringDisplayInfo(_);
Available on crate feature
v1_18
only.Implementations§
source§impl VideoMasteringDisplayInfo
impl VideoMasteringDisplayInfo
pub fn new(
display_primaries: [VideoMasteringDisplayInfoCoordinate; 3],
white_point: VideoMasteringDisplayInfoCoordinate,
max_display_mastering_luminance: u32,
min_display_mastering_luminance: u32
) -> Self
pub fn display_primaries(&self) -> [VideoMasteringDisplayInfoCoordinate; 3]
pub fn set_display_primaries(
&mut self,
display_primaries: [VideoMasteringDisplayInfoCoordinate; 3]
)
pub fn white_point(&self) -> VideoMasteringDisplayInfoCoordinate
pub fn set_white_point(
&mut self,
white_point: VideoMasteringDisplayInfoCoordinate
)
pub fn max_display_mastering_luminance(&self) -> u32
pub fn set_max_display_mastering_luminance(
&mut self,
max_display_mastering_luminance: u32
)
pub fn min_display_mastering_luminance(&self) -> u32
pub fn set_min_display_mastering_luminance(
&mut self,
min_display_mastering_luminance: u32
)
pub fn add_to_caps(&self, caps: &mut CapsRef)
pub fn from_caps(caps: &CapsRef) -> Result<Self, BoolError>
Trait Implementations§
source§impl Clone for VideoMasteringDisplayInfo
impl Clone for VideoMasteringDisplayInfo
source§fn clone(&self) -> VideoMasteringDisplayInfo
fn clone(&self) -> VideoMasteringDisplayInfo
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