[][src]Struct hl_capture::fps_converter::sampling::SamplingConverter

pub struct SamplingConverter {
    remainder: f64,
    time_base: f64,
    private: SamplingConverterPrivate,
}

Resampling FPS converter which averages input frames for smooth motion.

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.

private: SamplingConverterPrivate

Data with a destructor, wrapped so SamplingConverter can be put in a static variable.

Methods

impl SamplingConverter[src]

pub fn new(
    engine: &mut Engine,
    time_base: f64,
    video_resolution: (u32, u32)
) -> Self
[src]

pub fn backup_and_free_ocl_data(&mut self, engine: &mut Engine)[src]

This should be called before an engine restart.

Trait Implementations

impl FPSConverter for SamplingConverter[src]

Auto Trait Implementations

impl Unpin for SamplingConverter

impl Sync for SamplingConverter

impl Send for SamplingConverter

impl RefUnwindSafe for SamplingConverter

impl UnwindSafe for SamplingConverter

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]