[−][src]Struct hl_capture::fps_converter::sampling::SamplingConverter
Resampling FPS converter which averages input frames for smooth motion.
Fields
remainder: f64Difference, in video frames, between how much time passed in-game and how much video we output.
time_base: f64The target time_base.
private: SamplingConverterPrivateData 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]
engine: &mut Engine,
time_base: f64,
video_resolution: (u32, u32)
) -> Self
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]
fn time_passed<F>(&mut self, engine: &mut Engine, frametime: f64, capture: F) where
F: FnOnce(&mut Engine) -> FrameCapture, [src]
F: FnOnce(&mut Engine) -> FrameCapture,
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]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,