pub struct CoreRef<'c> { /* private fields */ }
Methods from Deref<Target = Core>§
pub fn as_ptr(&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: MapRef<'_>,
name: &CStr,
info: &VideoInfo,
filter: Box<F>,
dependencies: &Dependencies,
)
pub fn create_video_filter<F: Filter>( &mut self, out: MapRef<'_>, name: &CStr, info: &VideoInfo, filter: Box<F>, dependencies: &Dependencies, )
Sourcepub fn create_audio_filter<F: Filter>(
&mut self,
out: &mut MapRef<'_>,
name: &CStr,
info: &AudioInfo,
filter: F,
dependencies: &Dependencies,
)
pub fn create_audio_filter<F: Filter>( &mut self, out: &mut MapRef<'_>, 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 get_video_format_name(&self, format: &VideoFormat) -> Option<String>
pub fn query_audio_format( &self, sample_type: SampleType, bits_per_sample: i32, channel_layout: u64, ) -> AudioFormat
pub fn get_audio_format_name(&self, format: &AudioFormat) -> Option<String>
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)
pub fn api(&self) -> Api
pub fn create_map(&self) -> Map
Trait Implementations§
impl<'c> Copy for CoreRef<'c>
impl<'c> Eq for CoreRef<'c>
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> 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