Struct Core

Source
pub struct Core { /* private fields */ }

Implementations§

Source§

impl 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§

impl Core

Source

pub fn api(&self) -> Api

Source

pub fn create_map(&self) -> Map

Source§

impl Core

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 Debug for Core

Source§

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

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

impl Drop for Core

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Hash for Core

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 PartialEq for Core

Source§

fn eq(&self, other: &Core) -> 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 Eq for Core

Source§

impl StructuralPartialEq for Core

Auto Trait Implementations§

§

impl Freeze for Core

§

impl RefUnwindSafe for Core

§

impl !Send for Core

§

impl !Sync for Core

§

impl Unpin for Core

§

impl UnwindSafe for Core

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.