pub struct V2ipOutputMode {
pub svd: u8,
pub depth: u8,
pub colour: V2ipColourSpace,
pub refresh: u16,
}Expand description
The output format to scale a V2IP sink to.
Built from a depth and a colour space rather than from a packed signal-type word, so the word a caller sends cannot carry the unset bpp index a sink reports while it has no mode configured.
Fields§
§svd: u8The CTA-861 short video descriptor to output.
depth: u8Bit depth: 8, 10 or 12.
colour: V2ipColourSpaceThe colour space to output.
refresh: u16Refresh rate in Hz, V2IP_SCALING_REFRESH_MIN to
V2IP_SCALING_REFRESH_MAX.
Implementations§
Source§impl V2ipOutputMode
impl V2ipOutputMode
Sourcepub fn validate(&self) -> Result<(), &'static str>
pub fn validate(&self) -> Result<(), &'static str>
Reports whether a sink will take this mode, or why it will not.
Checked here because a sink checks it and then says nothing: every value this rejects is one the receiver decodes cleanly and drops, leaving a caller with a send that succeeded and a setting that did not move.
Passing is not a guarantee. A sink also weighs the format against the EDID of the display attached to it and against what its own clock and output stage can produce, and none of that is knowable from here.
Trait Implementations§
Source§impl Clone for V2ipOutputMode
impl Clone for V2ipOutputMode
Source§fn clone(&self) -> V2ipOutputMode
fn clone(&self) -> V2ipOutputMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more