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

struct SamplingConverterPrivate {
    ocl_runtime_data: MaybeUnavailable<OclRuntimeData>,
    ocl_backup_buffer: Option<Vec<Float>>,
    video_resolution: (u32, u32),
    gl_sampling_buffer: Vec<f32>,
    gl_read_buffer: Vec<u8>,
}

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]

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]