[−][src]Struct hl_capture::fps_converter::sampling::SamplingConverterPrivate
Data with a destructor.
Fields
ocl_runtime_data: MaybeUnavailable<OclRuntimeData>Data used for OpenCL operations.
This is Some(None) if OpenCL is unavailable and None during an engine restart.
ocl_backup_buffer: Option<Vec<Float>>Pixels from the buffer are stored here when the engine restarts.
video_resolution: (u32, u32)The video resolution.
gl_sampling_buffer: Vec<f32>The OpenGL sampling buffer.
gl_read_buffer: Vec<u8>The OpenGL read buffer.
Methods
impl SamplingConverterPrivate[src]
fn new(engine: &mut Engine, video_resolution: (u32, u32)) -> Self[src]
fn get_ocl_data(&mut self, engine: &mut Engine) -> Option<&mut OclRuntimeData>[src]
fn backup_and_free_ocl_data(&mut self, engine: &mut Engine)[src]
This should be called before an engine restart.
fn restore_ocl_data(&mut self, engine: &mut Engine)[src]
This should be called after an engine restart.
Auto Trait Implementations
impl Unpin for SamplingConverterPrivate
impl Sync for SamplingConverterPrivate
impl Send for SamplingConverterPrivate
impl RefUnwindSafe for SamplingConverterPrivate
impl UnwindSafe for SamplingConverterPrivate
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,