#[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>,
}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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: u8SCDS version field; expected to be 1.
max_tmds_rate_mhz: u16Maximum TMDS character rate in MHz (raw_byte × 5). 0 means ≤ 340 MHz.
scdc_present: boolSink contains a Status and Control Data Channel (SCDC).
rr_capable: boolSCDC read request capable (RR_Capable).
cable_status: boolSupports cable-status indication via SCDC.
ccbpci: boolSupports Color Content Bits Per Component Indication (CCBPCI).
lte_340mcsc_scramble: boolSupports scrambling at TMDS rates ≤ 340 Mcsc (LTE_340Mcsc_Scramble).
independent_view_3d: boolSupports 3D Independent View signaling (Independent_View).
dual_view_3d: boolSupports 3D Dual View signaling (Dual_View).
osd_disparity_3d: boolSupports 3D OSD Disparity signaling (OSD_Disparity).
max_frl_rate: HdmiForumFrlMaximum Fixed Rate Link bandwidth.
uhd_vic: boolSupports UHD VIC indication in AVI InfoFrame (UHD_VIC).
dc_48bit_420: boolSupports 16 bpc (48-bit) Deep Color in YCbCr 4:2:0 (DC_48bit_420).
dc_36bit_420: boolSupports 12 bpc (36-bit) Deep Color in YCbCr 4:2:0 (DC_36bit_420).
dc_30bit_420: boolSupports 10 bpc (30-bit) Deep Color in YCbCr 4:2:0 (DC_30bit_420).
fapa_end_extended: boolSupports FAPA end extended to the Vactive upper bound of 360 µs.
qms: boolSupports QMS VRR (Quality Media Synchronization Variable Refresh Rate).
m_delta: boolHas a limit on rate-of-change variations in M_VRR values (M_Delta).
fva: boolSupports Fast VActive (FVA).
allm: boolSupports Auto Low-Latency Mode (ALLM).
fapa_start_location: boolFAPA starts on first horizontal blank after first active video pixel.
neg_mvrr: boolSupports 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
impl HdmiForumSinkCap
Sourcepub 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
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
impl Clone for HdmiForumSinkCap
Source§fn clone(&self) -> HdmiForumSinkCap
fn clone(&self) -> HdmiForumSinkCap
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HdmiForumSinkCap
impl Debug for HdmiForumSinkCap
impl Eq for HdmiForumSinkCap
Source§impl From<&HdmiForumSinkCap> for SinkTmdsFacts
impl From<&HdmiForumSinkCap> for SinkTmdsFacts
Source§fn from(cap: &HdmiForumSinkCap) -> SinkTmdsFacts
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.