pub struct TestVideoOptions {
pub width: u32,
pub height: u32,
pub framerate: Rational,
}Expand description
Construction-time options for TestVideoSource::new.
Fields§
§width: u32§height: u32§framerate: RationalHow fast pts advances per generated frame, and — since
TestVideoSource self-paces to this same rate on a drift-free
absolute schedule (see its own docs) — how fast frames actually
get generated/pushed in real time, precisely enough that a
downstream crate::elements::Pacer against
TestVideoSource::time_base turns out not to be needed purely
for smooth D3d12Renderer output (confirmed in
examples/render/test_video).
Trait Implementations§
Source§impl Clone for TestVideoOptions
impl Clone for TestVideoOptions
Source§fn clone(&self) -> TestVideoOptions
fn clone(&self) -> TestVideoOptions
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 moreimpl Copy for TestVideoOptions
Source§impl Debug for TestVideoOptions
impl Debug for TestVideoOptions
Auto Trait Implementations§
impl Freeze for TestVideoOptions
impl RefUnwindSafe for TestVideoOptions
impl Send for TestVideoOptions
impl Sync for TestVideoOptions
impl Unpin for TestVideoOptions
impl UnsafeUnpin for TestVideoOptions
impl UnwindSafe for TestVideoOptions
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