#[non_exhaustive]pub struct ComputedTiming {
pub pixel_clock_khz: u32,
pub h_total: u16,
pub v_total: u16,
pub h_front_porch: u16,
pub h_sync_width: u16,
pub v_front_porch: u16,
pub v_sync_width: u16,
}Expand description
Pixel clock and blanking parameters computed from a CVT formula.
All fields are derived from (width, height, refresh_rate, cvt_algorithm). Designed
to feed VideoMode::with_detailed_timing
directly: the five fields it carries map 1:1 onto that builder’s
pixel_clock_khz / h_front_porch / h_sync_width / v_front_porch / v_sync_width
arguments. h_total and v_total are exposed for sanity checks (e.g. bandwidth
estimation against the CVT-rounded clock).
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.pixel_clock_khz: u32Pixel clock in kHz, rounded down to the algorithm’s clock step (CVT-RB v1: 250 kHz).
h_total: u16width + horizontal blanking. Useful for bandwidth checks.
v_total: u16height + vertical blanking. Useful for bandwidth checks.
h_front_porch: u16Horizontal front porch in pixels.
h_sync_width: u16Horizontal sync pulse width in pixels.
v_front_porch: u16Vertical front porch in lines.
v_sync_width: u16Vertical sync pulse width in lines.
Trait Implementations§
Source§impl Clone for ComputedTiming
impl Clone for ComputedTiming
Source§fn clone(&self) -> ComputedTiming
fn clone(&self) -> ComputedTiming
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 ComputedTiming
impl Debug for ComputedTiming
Source§impl PartialEq for ComputedTiming
impl PartialEq for ComputedTiming
Source§fn eq(&self, other: &ComputedTiming) -> bool
fn eq(&self, other: &ComputedTiming) -> bool
self and other values to be equal, and is used by ==.