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.
Trait Implementations§
Source§impl Clone for MxrSignalType
impl Clone for MxrSignalType
Source§fn clone(&self) -> MxrSignalType
fn clone(&self) -> MxrSignalType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MxrSignalType
Source§impl Debug for MxrSignalType
impl Debug for MxrSignalType
Source§impl Default for MxrSignalType
impl Default for MxrSignalType
Source§fn default() -> MxrSignalType
fn default() -> MxrSignalType
Returns the “default value” for a type. Read more
Source§impl Display for MxrSignalType
impl Display for MxrSignalType
impl Eq for MxrSignalType
Source§impl Hash for MxrSignalType
impl Hash for MxrSignalType
Source§impl Ord for MxrSignalType
impl Ord for MxrSignalType
Source§fn cmp(&self, other: &MxrSignalType) -> Ordering
fn cmp(&self, other: &MxrSignalType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MxrSignalType
impl PartialEq for MxrSignalType
Source§impl PartialOrd for MxrSignalType
impl PartialOrd for MxrSignalType
impl StructuralPartialEq for MxrSignalType
Auto Trait Implementations§
impl Freeze for MxrSignalType
impl RefUnwindSafe for MxrSignalType
impl Send for MxrSignalType
impl Sync for MxrSignalType
impl Unpin for MxrSignalType
impl UnsafeUnpin for MxrSignalType
impl UnwindSafe for MxrSignalType
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