Struct CoreRef

Source
pub struct CoreRef<'c> { /* private fields */ }

Methods from Deref<Target = Core>§

Source

pub fn as_ptr(&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: MapRef<'_>, 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: &mut MapRef<'_>, 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 get_video_format_name(&self, format: &VideoFormat) -> Option<String>

Source

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

Source

pub fn get_audio_format_name(&self, format: &AudioFormat) -> Option<String>

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)

Source

pub fn api(&self) -> Api

Source

pub fn create_map(&self) -> Map

Trait Implementations§

Source§

impl AsRef<Core> for CoreRef<'_>

Source§

fn as_ref(&self) -> &Core

Converts this type into a shared reference of the (usually inferred) input type.
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 Deref for CoreRef<'_>

Source§

type Target = Core

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for CoreRef<'_>

Source§

fn deref_mut(&mut self) -> &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 for CoreRef<'c>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> StructuralPartialEq for CoreRef<'c>

Auto Trait Implementations§

§

impl<'c> Freeze for CoreRef<'c>

§

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 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 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.