pub struct CVideoConfig<'t, NF>where
NF: NoFields,{ /* private fields */ }Implementations§
Source§impl<'t, NF> CVideoConfig<'t, NF>where
NF: NoFields,
impl<'t, NF> CVideoConfig<'t, NF>where
NF: NoFields,
Sourcepub const fn display_columns(&self) -> u32
pub const fn display_columns(&self) -> u32
The amount of display columns, i.e. the width in number of pixels
Sourcepub const fn cpu_ticks_per_field(&self) -> u32
pub const fn cpu_ticks_per_field(&self) -> u32
The number of CPU clock cycles per field
In case of progressive video, this is the duration for one frame. In case of interlaced, this indicates the exact mean duration of the two fields.
Sourcepub const fn display_lines(&self) -> u32
pub const fn display_lines(&self) -> u32
Pixel height
In case of interlaced, includes both the odd and even lines
Sourcepub const fn needed_buffer_size(&self) -> usize
pub const fn needed_buffer_size(&self) -> usize
Number of u32 words needed for this configuration
Includes optional double buffering. Function is const so this can be used to allocate static buffers
Source§impl CVideoConfig<'static, OneField>
impl CVideoConfig<'static, OneField>
pub const fn from_constraints_semi_double_buffered( horizontal: HorizontalConstraint, vertical: VerticalConstraint, standard_durations: StandardDurations, pio_freq: u64, ) -> Result<CVideoConfig<'static, OneField>, &'static str>
pub const fn from_constraints_progressive( buffering_mode: BufferingMode, horizontal: HorizontalConstraint, vertical: VerticalConstraint, standard_durations: StandardDurations, pio_freq: u64, ) -> Result<CVideoConfig<'static, OneField>, &'static str>
Source§impl CVideoConfig<'static, TwoFields>
impl CVideoConfig<'static, TwoFields>
pub const fn from_constraints_interlaced( buffering_mode: BufferingMode, horizontal: HorizontalConstraint, vertical: VerticalConstraint, standard_durations: StandardDurations, pio_freq: u64, ) -> Result<CVideoConfig<'static, TwoFields>, &'static str>
Trait Implementations§
Source§impl<'t, NF> Clone for CVideoConfig<'t, NF>where
NF: Clone + NoFields,
impl<'t, NF> Clone for CVideoConfig<'t, NF>where
NF: Clone + NoFields,
Source§fn clone(&self) -> CVideoConfig<'t, NF>
fn clone(&self) -> CVideoConfig<'t, NF>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'t, NF> Debug for CVideoConfig<'t, NF>where
NF: Debug + NoFields,
impl<'t, NF> Debug for CVideoConfig<'t, NF>where
NF: Debug + NoFields,
Source§impl<'t, NF> Format for CVideoConfig<'t, NF>
impl<'t, NF> Format for CVideoConfig<'t, NF>
impl<'t, NF> Copy for CVideoConfig<'t, NF>where
NF: Copy + NoFields,
Auto Trait Implementations§
impl<'t, NF> Freeze for CVideoConfig<'t, NF>
impl<'t, NF> RefUnwindSafe for CVideoConfig<'t, NF>where
NF: RefUnwindSafe,
impl<'t, NF> Send for CVideoConfig<'t, NF>where
NF: Send,
impl<'t, NF> Sync for CVideoConfig<'t, NF>where
NF: Sync,
impl<'t, NF> Unpin for CVideoConfig<'t, NF>where
NF: Unpin,
impl<'t, NF> UnwindSafe for CVideoConfig<'t, NF>where
NF: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more