VendorHdmiBlock

Struct VendorHdmiBlock 

Source
pub struct VendorHdmiBlock {
Show 22 fields pub source_phys_addr: u16, pub supports_ai: bool, pub supports_dc_48bit: bool, pub supports_dc_36bit: bool, pub supports_dc_30bit: bool, pub supports_dc_y444: bool, pub supports_dvi_dual: bool, pub max_tmds_clock: c_int, pub supports_content_graphics: bool, pub supports_content_photo: bool, pub supports_content_cinema: bool, pub supports_content_game: bool, pub has_latency: bool, pub has_interlaced_latency: bool, pub supports_progressive_video: bool, pub supports_progressive_audio: bool, pub supports_interlaced_video: bool, pub supports_interlaced_audio: bool, pub progressive_video_latency: c_int, pub progressive_audio_latency: c_int, pub interlaced_video_latency: c_int, pub interlaced_audio_latency: c_int,
}
Available on crate feature v0_3 only.
Expand description

HDMI vendor-specific data block.

This block is defined in HDMI 1.4b section 8.3.2.

Fields§

§source_phys_addr: u16§supports_ai: bool§supports_dc_48bit: bool§supports_dc_36bit: bool§supports_dc_30bit: bool§supports_dc_y444: bool§supports_dvi_dual: bool§max_tmds_clock: c_int§supports_content_graphics: bool§supports_content_photo: bool§supports_content_cinema: bool§supports_content_game: bool§has_latency: bool

If !has_latency and !has_interlaced_latency, we have no latency information at all.

If only has_latency, video/audio latency fields are valid and should be used for both progressive and interlaced video/audio formats.

If both are valid, it means that video_latency and audio_latency should be used for progressive video/audio formats, and their interlaced counterpart for interlaced formats.

§has_interlaced_latency: bool§supports_progressive_video: bool§supports_progressive_audio: bool§supports_interlaced_video: bool§supports_interlaced_audio: bool§progressive_video_latency: c_int§progressive_audio_latency: c_int§interlaced_video_latency: c_int§interlaced_audio_latency: c_int

Trait Implementations§

Source§

impl Clone for VendorHdmiBlock

Source§

fn clone(&self) -> VendorHdmiBlock

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for VendorHdmiBlock

Source§

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

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

impl From<di_cta_vendor_hdmi_block> for VendorHdmiBlock

Source§

fn from(value: di_cta_vendor_hdmi_block) -> VendorHdmiBlock

Converts to this type from the input type.
Source§

impl Copy for VendorHdmiBlock

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.