[][src]Struct hl_capture::fps_converter::simple::SimpleConverter

pub struct SimpleConverter {
    remainder: f64,
    time_base: f64,
}

Simple FPS converter which drops and duplicates frames to get constant FPS output.

Fields

remainder: f64

Difference, in video frames, between how much time passed in-game and how much video we output.

time_base: f64

The target time_base.

Methods

impl SimpleConverter[src]

pub fn new(time_base: f64) -> Self[src]

Trait Implementations

impl FPSConverter for SimpleConverter[src]

Auto Trait Implementations

impl Unpin for SimpleConverter

impl Sync for SimpleConverter

impl Send for SimpleConverter

impl RefUnwindSafe for SimpleConverter

impl UnwindSafe for SimpleConverter

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]