pub struct API { /* private fields */ }Expand description
A wrapper for the VapourSynth API.
Implementations§
Source§impl API
impl API
Sourcepub fn get() -> Option<Self>
pub fn get() -> Option<Self>
Retrieves the VapourSynth API.
Returns None on error, for example if the requested API version (selected with features,
see the crate-level docs) is not supported.
Sourcepub fn log(
self,
message_type: MessageType,
message: &str,
) -> Result<(), NulError>
pub fn log( self, message_type: MessageType, message: &str, ) -> Result<(), NulError>
Sends a message through VapourSynth’s logging framework.
Sourcepub fn create_core<'core>(self, threads: i32) -> CoreRef<'core>
pub fn create_core<'core>(self, threads: i32) -> CoreRef<'core>
Creates and returns a new core.
Note that there’s currently no safe way of freeing the returned core, and the lifetime is
unbounded, because it can live for an arbitrary long time. You may use the (unsafe)
vapoursynth_sys::VSAPI::freeCore() after ensuring that all frame requests have completed
and all objects belonging to the core have been released.
Trait Implementations§
impl Copy for API
impl Send for API
impl Sync for API
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more