pub struct TimelineConfig {
pub timebase: Rational,
pub frame_rate: Rational,
pub width: u32,
pub height: u32,
pub sample_rate: u32,
pub channels: u32,
}Expand description
Timeline configuration.
Fields§
§timebase: RationalTimeline timebase.
frame_rate: RationalVideo frame rate.
width: u32Video width.
height: u32Video height.
sample_rate: u32Audio sample rate.
channels: u32Audio channels.
Implementations§
Source§impl TimelineConfig
impl TimelineConfig
Sourcepub fn hd_1080p_30() -> Self
pub fn hd_1080p_30() -> Self
Create a configuration for 1080p 30fps.
Sourcepub fn hd_1080p_60() -> Self
pub fn hd_1080p_60() -> Self
Create a configuration for 1080p 60fps.
Trait Implementations§
Source§impl Clone for TimelineConfig
impl Clone for TimelineConfig
Source§fn clone(&self) -> TimelineConfig
fn clone(&self) -> TimelineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelineConfig
impl Debug for TimelineConfig
Auto Trait Implementations§
impl Freeze for TimelineConfig
impl RefUnwindSafe for TimelineConfig
impl Send for TimelineConfig
impl Sync for TimelineConfig
impl Unpin for TimelineConfig
impl UnsafeUnpin for TimelineConfig
impl UnwindSafe for TimelineConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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