#[repr(transparent)]
pub struct CoreRef<'c> { /* private fields */ }

Methods from Deref<Target = Core>§

source

pub fn as_ptr(&self) -> *const VSCore

source

pub fn as_mut_ptr(&mut self) -> *mut VSCore

source

pub fn set_max_cache_size(&mut self, size: i64)

source

pub fn set_thread_count(&mut self, count: i32)

source

pub fn get_info(&self) -> VSCoreInfo

source

pub fn create_video_filter<F: Filter>( &mut self, out: MapMut<'_>, name: &CStr, info: &VideoInfo, filter: Box<F>, dependencies: &Dependencies )

Panics

Panic if the dependencies has more item than i32::MAX

source

pub fn create_audio_filter<F: Filter>( &mut self, out: MapMut<'_>, name: &CStr, info: &AudioInfo, filter: F, dependencies: &Dependencies )

Panics

Panic if the dependencies has more item than i32::MAX

source

pub fn new_video_frame( &self, format: &VideoFormat, width: i32, height: i32, prop_src: Option<&VideoFrame> ) -> VideoFrame

source

pub fn new_video_frame2( &self, format: &VideoFormat, width: i32, height: i32, plane_src: &[*const VSFrame], planes: &[i32], prop_src: Option<&VideoFrame> ) -> VideoFrame

source

pub fn new_audio_frame( &self, format: &AudioFormat, num_samples: i32, prop_src: Option<&AudioFrame> ) -> AudioFrame

source

pub fn new_audio_frame2( &self, format: &AudioFormat, num_samples: i32, channel_src: &[*const VSFrame], channels: &[i32], prop_src: Option<&AudioFrame> ) -> AudioFrame

source

pub fn copy_frame<F: Frame>(&self, frame: &F) -> F

source

pub fn query_video_format( &self, color_family: ColorFamily, sample_type: SampleType, bits_per_sample: i32, subsampling_w: i32, subsampling_h: i32 ) -> VideoFormat

source

pub fn query_audio_format( &self, sample_type: SampleType, bits_per_sample: i32, channel_layout: u64 ) -> AudioFormat

source

pub fn query_video_format_id( &self, color_family: ColorFamily, sample_type: SampleType, bits_per_sample: i32, subsampling_w: i32, subsampling_h: i32 ) -> u32

source

pub fn get_video_format_by_id(&self, id: u32) -> VideoFormat

source

pub fn create_function<T>( &mut self, func: VSPublicFunction, data: Box<T>, free: VSFreeFunctionData ) -> Function

source

pub fn get_plugin_by_id(&self, id: &CStr) -> Option<Plugin>

source

pub fn get_plugin_by_namespace(&self, ns: &CStr) -> Option<Plugin>

source

pub fn plugins(&self) -> Plugins<'_>

source

pub fn log(&mut self, level: VSMessageType, msg: &CStr)

Trait Implementations§

source§

impl<'c> Clone for CoreRef<'c>

source§

fn clone(&self) -> CoreRef<'c>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'c> Debug for CoreRef<'c>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'c> Deref for CoreRef<'c>

§

type Target = Core

The resulting type after dereferencing.
source§

fn deref(&self) -> &'c Self::Target

Dereferences the value.
source§

impl<'c> DerefMut for CoreRef<'c>

source§

fn deref_mut(&mut self) -> &'c mut Self::Target

Mutably dereferences the value.
source§

impl<'c> Hash for CoreRef<'c>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'c> PartialEq<CoreRef<'c>> for CoreRef<'c>

source§

fn eq(&self, other: &CoreRef<'c>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'c> Copy for CoreRef<'c>

source§

impl<'c> Eq for CoreRef<'c>

source§

impl<'c> StructuralEq for CoreRef<'c>

source§

impl<'c> StructuralPartialEq for CoreRef<'c>

Auto Trait Implementations§

§

impl<'c> RefUnwindSafe for CoreRef<'c>

§

impl<'c> !Send for CoreRef<'c>

§

impl<'c> !Sync for CoreRef<'c>

§

impl<'c> Unpin for CoreRef<'c>

§

impl<'c> UnwindSafe for CoreRef<'c>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.