pub struct MxrSignalType(/* private fields */);Expand description
The 2-byte mxr_signal_type carried in scaling configs and bay signal
reports.
Byte 0 is the CTA-861 short video descriptor, 0 when the signal is not
HDMI. Byte 1 packs color:4 in the low nibble, then non_int:1 and
bpp:3 above it.
Implementations§
Source§impl MxrSignalType
impl MxrSignalType
Source§impl MxrSignalType
impl MxrSignalType
Sourcepub const fn svd(self) -> u8
pub const fn svd(self) -> u8
The CTA-861 short video descriptor, 0 when the signal is not HDMI.
Sourcepub const fn colour_space(self) -> u8
pub const fn colour_space(self) -> u8
The colour space.
Sourcepub const fn is_non_integer(self) -> bool
pub const fn is_non_integer(self) -> bool
Whether the frame rate carries a 1000/1001 clock.
Sourcepub const fn bpp_index(self) -> u8
pub const fn bpp_index(self) -> u8
The raw bpp index as carried on the wire. The field is an index, not a
bit depth; MxrSignalType::bpp converts it.
Sourcepub const fn bpp(self) -> Option<u8>
pub const fn bpp(self) -> Option<u8>
The bit depth the bpp index stands for, None when unknown or unset.
Sourcepub const fn is_set(self) -> bool
pub const fn is_set(self) -> bool
Reports whether the word carries a signal format at all.
A bay with nothing configured says so two ways. A sender that zeroes the word and stamps the unset bpp index leaves an index no real depth uses, and one that writes a plain zero leaves nothing at all. Neither is a format, and the svd and colour space beside them are not answers either: both read as zero, which is what this word says for “not HDMI” and “RGB” when it is set.
Trait Implementations§
Source§impl Clone for MxrSignalType
impl Clone for MxrSignalType
Source§fn clone(&self) -> MxrSignalType
fn clone(&self) -> MxrSignalType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more