Skip to main content

FrameSyncVideoFree

Struct FrameSyncVideoFree 

Source
pub struct FrameSyncVideoFree;
Expand description

Free strategy for video frames captured through FrameSync.

Frees via NDIlib_framesync_free_video. Unlike the receiver strategies this tolerates a null instance handle (the borrowed-frame tests construct guards with a null instance), short-circuiting the free in that case.

Trait Implementations§

Source§

impl FrameFree for FrameSyncVideoFree

Source§

const REF_DEBUG_NAME: &'static str = "FrameSyncVideoRef"

The Debug struct name of the borrowed reference that wraps this guard (e.g. "VideoFrameRef" or "FrameSyncVideoRef"), so the shared generic Debug impls render the historically-correct type name.
Source§

type Instance = *mut NDIlib_framesync_instance_type

The SDK instance handle that owns the frame buffers (and through which they must be freed).
Source§

type RawFrame = NDIlib_video_frame_v2_t

The raw FFI frame type from the NDI SDK.
Source§

unsafe fn free(instance: Self::Instance, frame: &mut Self::RawFrame)

Free a single captured frame through its owning instance. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.