Struct vapoursynth4_rs::core::CoreRef
source · #[repr(transparent)]pub struct CoreRef<'c> { /* private fields */ }Methods from Deref<Target = Core>§
pub fn as_ptr(&self) -> *const VSCore
pub fn as_mut_ptr(&mut self) -> *mut VSCore
pub fn set_max_cache_size(&mut self, size: i64)
pub fn set_thread_count(&mut self, count: i32)
pub fn get_info(&self) -> VSCoreInfo
sourcepub fn create_video_filter<F: Filter>(
&mut self,
out: MapMut<'_>,
name: &CStr,
info: &VideoInfo,
filter: Box<F>,
dependencies: &Dependencies
)
pub fn create_video_filter<F: Filter>( &mut self, out: MapMut<'_>, name: &CStr, info: &VideoInfo, filter: Box<F>, dependencies: &Dependencies )
sourcepub fn create_audio_filter<F: Filter>(
&mut self,
out: MapMut<'_>,
name: &CStr,
info: &AudioInfo,
filter: F,
dependencies: &Dependencies
)
pub fn create_audio_filter<F: Filter>( &mut self, out: MapMut<'_>, name: &CStr, info: &AudioInfo, filter: F, dependencies: &Dependencies )
pub fn new_video_frame( &self, format: &VideoFormat, width: i32, height: i32, prop_src: Option<&VideoFrame> ) -> VideoFrame
pub fn new_video_frame2( &self, format: &VideoFormat, width: i32, height: i32, plane_src: &[*const VSFrame], planes: &[i32], prop_src: Option<&VideoFrame> ) -> VideoFrame
pub fn new_audio_frame( &self, format: &AudioFormat, num_samples: i32, prop_src: Option<&AudioFrame> ) -> AudioFrame
pub fn new_audio_frame2( &self, format: &AudioFormat, num_samples: i32, channel_src: &[*const VSFrame], channels: &[i32], prop_src: Option<&AudioFrame> ) -> AudioFrame
pub fn copy_frame<F: Frame>(&self, frame: &F) -> F
pub fn query_video_format( &self, color_family: ColorFamily, sample_type: SampleType, bits_per_sample: i32, subsampling_w: i32, subsampling_h: i32 ) -> VideoFormat
pub fn query_audio_format( &self, sample_type: SampleType, bits_per_sample: i32, channel_layout: u64 ) -> AudioFormat
pub fn query_video_format_id( &self, color_family: ColorFamily, sample_type: SampleType, bits_per_sample: i32, subsampling_w: i32, subsampling_h: i32 ) -> u32
pub fn get_video_format_by_id(&self, id: u32) -> VideoFormat
pub fn create_function<T>( &mut self, func: VSPublicFunction, data: Box<T>, free: VSFreeFunctionData ) -> Function
pub fn get_plugin_by_id(&self, id: &CStr) -> Option<Plugin>
pub fn get_plugin_by_namespace(&self, ns: &CStr) -> Option<Plugin>
pub fn plugins(&self) -> Plugins<'_> ⓘ
pub fn log(&mut self, level: VSMessageType, msg: &CStr)
Trait Implementations§
source§impl<'c> PartialEq<CoreRef<'c>> for CoreRef<'c>
impl<'c> PartialEq<CoreRef<'c>> for CoreRef<'c>
impl<'c> Copy for CoreRef<'c>
impl<'c> Eq for CoreRef<'c>
impl<'c> StructuralEq for CoreRef<'c>
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> 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