Skip to main content

HdmiForumSinkCap

Struct HdmiForumSinkCap 

Source
#[non_exhaustive]
pub struct HdmiForumSinkCap {
Show 25 fields pub version: u8, pub max_tmds_rate_mhz: u16, pub scdc_present: bool, pub rr_capable: bool, pub cable_status: bool, pub ccbpci: bool, pub lte_340mcsc_scramble: bool, pub independent_view_3d: bool, pub dual_view_3d: bool, pub osd_disparity_3d: bool, pub max_frl_rate: HdmiForumFrl, pub uhd_vic: bool, pub dc_48bit_420: bool, pub dc_36bit_420: bool, pub dc_30bit_420: bool, pub fapa_end_extended: bool, pub qms: bool, pub m_delta: bool, pub fva: bool, pub allm: bool, pub fapa_start_location: bool, pub neg_mvrr: bool, pub vrr_min_hz: Option<u8>, pub vrr_max_hz: Option<u16>, pub dsc: Option<HdmiForumDsc>,
}
Available on crate feature display-types only.
Expand description

The sink capabilities the sink facts convert from, re-exported from display-types. Decoded HDMI Forum Sink Capability Data Block (HF-SCDB, extended tag 0x79).

Defined by HDMI 2.1a. Structure reconstructed from the Linux kernel drm_edid.c and the edid-decode reference implementation.

The block contains two reserved bytes after the extended tag, followed by the HDMI Sink Capability Data Structure (SCDS). Optional extended fields (VRR range, DSC capabilities) are present only when the block is long enough.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§version: u8

SCDS version field; expected to be 1.

§max_tmds_rate_mhz: u16

Maximum TMDS character rate in MHz (raw_byte × 5). 0 means ≤ 340 MHz.

§scdc_present: bool

Sink contains a Status and Control Data Channel (SCDC).

§rr_capable: bool

SCDC read request capable (RR_Capable).

§cable_status: bool

Supports cable-status indication via SCDC.

§ccbpci: bool

Supports Color Content Bits Per Component Indication (CCBPCI).

§lte_340mcsc_scramble: bool

Supports scrambling at TMDS rates ≤ 340 Mcsc (LTE_340Mcsc_Scramble).

§independent_view_3d: bool

Supports 3D Independent View signaling (Independent_View).

§dual_view_3d: bool

Supports 3D Dual View signaling (Dual_View).

§osd_disparity_3d: bool

Supports 3D OSD Disparity signaling (OSD_Disparity).

§max_frl_rate: HdmiForumFrl

Maximum Fixed Rate Link bandwidth.

§uhd_vic: bool

Supports UHD VIC indication in AVI InfoFrame (UHD_VIC).

§dc_48bit_420: bool

Supports 16 bpc (48-bit) Deep Color in YCbCr 4:2:0 (DC_48bit_420).

§dc_36bit_420: bool

Supports 12 bpc (36-bit) Deep Color in YCbCr 4:2:0 (DC_36bit_420).

§dc_30bit_420: bool

Supports 10 bpc (30-bit) Deep Color in YCbCr 4:2:0 (DC_30bit_420).

§fapa_end_extended: bool

Supports FAPA end extended to the Vactive upper bound of 360 µs.

§qms: bool

Supports QMS VRR (Quality Media Synchronization Variable Refresh Rate).

§m_delta: bool

Has a limit on rate-of-change variations in M_VRR values (M_Delta).

§fva: bool

Supports Fast VActive (FVA).

§allm: bool

Supports Auto Low-Latency Mode (ALLM).

§fapa_start_location: bool

FAPA starts on first horizontal blank after first active video pixel.

§neg_mvrr: bool

Supports negative M_VRR values (Neg_MVRR).

§vrr_min_hz: Option<u8>

Minimum VRR frame rate in Hz. Some(0) means VRR is not supported. None means this section was not present in the block.

§vrr_max_hz: Option<u16>

Maximum VRR frame rate in Hz (10-bit). Some(0) means VRR is not supported. None means this section was not present in the block.

§dsc: Option<HdmiForumDsc>

Display Stream Compression capabilities. None if the DSC section is absent.

Implementations§

Source§

impl HdmiForumSinkCap

Source

pub fn new( version: u8, max_tmds_rate_mhz: u16, scdc_present: bool, rr_capable: bool, cable_status: bool, ccbpci: bool, lte_340mcsc_scramble: bool, independent_view_3d: bool, dual_view_3d: bool, osd_disparity_3d: bool, max_frl_rate: HdmiForumFrl, uhd_vic: bool, dc_48bit_420: bool, dc_36bit_420: bool, dc_30bit_420: bool, fapa_end_extended: bool, qms: bool, m_delta: bool, fva: bool, allm: bool, fapa_start_location: bool, neg_mvrr: bool, vrr_min_hz: Option<u8>, vrr_max_hz: Option<u16>, dsc: Option<HdmiForumDsc>, ) -> HdmiForumSinkCap

Constructs an HdmiForumSinkCap.

Trait Implementations§

Source§

impl Clone for HdmiForumSinkCap

Source§

fn clone(&self) -> HdmiForumSinkCap

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HdmiForumSinkCap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for HdmiForumSinkCap

Source§

impl From<&HdmiForumSinkCap> for SinkTmdsFacts

Source§

fn from(cap: &HdmiForumSinkCap) -> SinkTmdsFacts

scrambling_supported is scdc_present and a non-zero max_tmds_rate_mhz; frl_capable is a non-zero max_frl_rate; the other two facts are copied.

Source§

impl PartialEq for HdmiForumSinkCap

Source§

fn eq(&self, other: &HdmiForumSinkCap) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HdmiForumSinkCap

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.