Skip to main content

VesaDisplayDeviceBlock

Struct VesaDisplayDeviceBlock 

Source
pub struct VesaDisplayDeviceBlock {
Show 35 fields pub interface_type: u8, pub num_links: u8, pub interface_version: u8, pub interface_release: u8, pub content_protection: u8, pub min_clock_mhz: u8, pub max_clock_mhz: u16, pub native_width: Option<u16>, pub native_height: Option<u16>, pub aspect_ratio_raw: u8, pub default_orientation: u8, pub rotation_capability: u8, pub zero_pixel_location: u8, pub scan_direction: u8, pub subpixel_layout: u8, pub h_pitch_hundredths_mm: u8, pub v_pitch_hundredths_mm: u8, pub dithering: u8, pub direct_drive: bool, pub overdrive_not_recommended: bool, pub deinterlacing: bool, pub audio_on_video_interface: bool, pub separate_audio_inputs: bool, pub audio_input_override: bool, pub audio_delay_ms: Option<i16>, pub frame_rate_conversion: u8, pub frame_rate_range: u8, pub native_frame_rate: u8, pub interface_color_depth: u8, pub display_color_depth: u8, pub additional_chromaticities: [u8; 8], pub response_time_ms: u8, pub response_time_white_to_black: bool, pub h_overscan_pct: u8, pub v_overscan_pct: u8,
}
Expand description

Decoded VESA Display Device Data Block (extended tag 0x02).

A fixed 30-byte payload describing the physical and electrical characteristics of the display, per the VESA Display Device Data Block (DDDB) Standard, Version 1.

Fields§

§interface_type: u8

Interface type code (bits 7:4). 0=Analog, 1=LVDS, 3=DVI-D, 6=HDMI-A, 9=DP, etc.

§num_links: u8

Number of lanes/channels (bits 3:0). For analog interfaces this is a subtype code.

§interface_version: u8

Interface standard version (bits 7:4 of byte 0x03).

§interface_release: u8

Interface standard release (bits 3:0 of byte 0x03).

§content_protection: u8

Content protection code (byte 0x04). 0=none, 1=HDCP, 2=DTCP, 3=DPCP.

§min_clock_mhz: u8

Minimum supported clock frequency per link in MHz (6-bit, range 0–63).

§max_clock_mhz: u16

Maximum supported clock frequency per link in MHz (10-bit, range 0–1023).

§native_width: Option<u16>

Native horizontal pixel count, or None if the display has no fixed format.

§native_height: Option<u16>

Native vertical pixel count, or None if the display has no fixed format.

§aspect_ratio_raw: u8

Aspect ratio raw byte. Physical AR = (raw / 100.0) + 1.0 (long-axis / short-axis).

§default_orientation: u8

Default orientation: 0=landscape, 1=portrait, 2=not_fixed, 3=undefined.

§rotation_capability: u8

Rotation capability: 0=none, 1=90°CW, 2=90°CCW, 3=both.

§zero_pixel_location: u8

Zero pixel (scan origin) location: 0=upper-left, 1=upper-right, 2=lower-left, 3=lower-right.

§scan_direction: u8

Scan direction: 0=undefined, 1=long-axis-fast, 2=short-axis-fast, 3=reserved.

§subpixel_layout: u8

Subpixel layout code (byte 0x0D). 0=undefined, 1=RGB-V, 2=RGB-H, etc.

§h_pitch_hundredths_mm: u8

Horizontal pixel pitch in 0.01 mm increments (range 0.00–2.55 mm).

§v_pitch_hundredths_mm: u8

Vertical pixel pitch in 0.01 mm increments (range 0.00–2.55 mm).

§dithering: u8

Dithering type: 0=none, 1=spatial, 2=temporal, 3=spatial+temporal.

§direct_drive: bool

Display is direct-drive — no internal scaling/de-interlacing/FRC.

§overdrive_not_recommended: bool

Video source should not apply overdrive for this display.

§deinterlacing: bool

Display can de-interlace interlaced input to progressive scan.

§audio_on_video_interface: bool

Audio is supported on the video interface.

§separate_audio_inputs: bool

Separate audio inputs are provided independently of the video interface.

§audio_input_override: bool

Audio received on the video interface automatically overrides other audio inputs.

§audio_delay_ms: Option<i16>

Signed audio delay in milliseconds (positive = audio after video, negative = before). None means no delay information is provided (raw delay byte was 0x00).

§frame_rate_conversion: u8

Frame-rate conversion capability: 0=none, 1=single-buffer, 2=double-buffer, 3=interpolation.

§frame_rate_range: u8

Maximum excursion (±FPS) from the nominal frame rate (6 bits, 0–63).

§native_frame_rate: u8

Native or nominal display frame rate in frames/second.

§interface_color_depth: u8

Color bit depth per primary on the video interface (1–16).

§display_color_depth: u8

Color bit depth per primary at the display panel without temporal dithering (1–16).

§additional_chromaticities: [u8; 8]

Raw bytes 0x16–0x1D: chromaticity data for up to three additional primaries.

§response_time_ms: u8

Response time in milliseconds (0 = < 1 ms, 127 = > 126 ms).

§response_time_white_to_black: bool

true if the response time is white-to-black; false if black-to-white.

§h_overscan_pct: u8

Percentage of active image outside the visible screen area, horizontally (0–15%).

§v_overscan_pct: u8

Percentage of active image outside the visible screen area, vertically (0–15%).

Trait Implementations§

Source§

impl Clone for VesaDisplayDeviceBlock

Source§

fn clone(&self) -> VesaDisplayDeviceBlock

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 VesaDisplayDeviceBlock

Source§

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

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

impl PartialEq for VesaDisplayDeviceBlock

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for VesaDisplayDeviceBlock

Source§

impl StructuralPartialEq for VesaDisplayDeviceBlock

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> ExtensionData for T
where T: Any + Debug + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Returns self as &dyn Any to enable downcasting.
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.