Struct vapoursynth4_rs::core::Core

source ·
#[repr(transparent)]
pub struct Core { /* private fields */ }

Implementations§

source§

impl Core

source

pub fn new() -> Self

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

source§

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

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

impl Default for Core

source§

fn default() -> Self

Returns the “default value” for a type. 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<Core> for Core

source§

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

source§

impl StructuralEq for Core

source§

impl StructuralPartialEq for Core

Auto Trait Implementations§

§

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