pub struct CoreHandle { /* private fields */ }Expand description
Operations available on both owned and borrowed cores.
Implementations§
Source§impl CoreHandle
impl CoreHandle
pub fn as_ptr(&self) -> *mut VSCore
pub fn get_info(&self) -> VSCoreInfo
Sourcepub fn get_info2(&self) -> VSCoreInfo2
pub fn get_info2(&self) -> VSCoreInfo2
Same as get_info(), but also reports the
ffi::VSCoreCreationFlags the core was created with.
Sourcepub fn create_video_filter<F: Filter>(
&self,
out: &mut MapMut<'_>,
name: &CStr,
info: &VideoInfo,
filter: Box<F>,
dependencies: &Dependencies,
)
pub fn create_video_filter<F: Filter>( &self, out: &mut MapMut<'_>, name: &CStr, info: &VideoInfo, filter: Box<F>, dependencies: &Dependencies, )
Sourcepub fn create_audio_filter<F: Filter>(
&self,
out: &mut MapMut<'_>,
name: &CStr,
info: &AudioInfo,
filter: F,
dependencies: &Dependencies,
)
pub fn create_audio_filter<F: Filter>( &self, out: &mut 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>, ) -> VideoFrameMut
Sourcepub unsafe fn new_video_frame2(
&self,
format: &VideoFormat,
width: i32,
height: i32,
plane_src: &[*const VSFrame],
planes: &[i32],
prop_src: Option<&VideoFrame>,
) -> VideoFrameMut
pub unsafe fn new_video_frame2( &self, format: &VideoFormat, width: i32, height: i32, plane_src: &[*const VSFrame], planes: &[i32], prop_src: Option<&VideoFrame>, ) -> VideoFrameMut
Calls VapourSynth’s video plane assembly without validation.
§Safety
The destination format and size must be valid. Both arrays must contain at
least format.num_planes entries. Each non-null source must be a live
video frame with a valid plane index, matching dimensions and sample
storage, and compatible residency and device. Frames must be valid for
this core’s API.
pub fn new_audio_frame( &self, format: &AudioFormat, num_samples: i32, prop_src: Option<&AudioFrame>, ) -> AudioFrameMut
Sourcepub unsafe fn new_audio_frame2(
&self,
format: &AudioFormat,
num_samples: i32,
channel_src: &[*const VSFrame],
channels: &[i32],
prop_src: Option<&AudioFrame>,
) -> AudioFrameMut
pub unsafe fn new_audio_frame2( &self, format: &AudioFormat, num_samples: i32, channel_src: &[*const VSFrame], channels: &[i32], prop_src: Option<&AudioFrame>, ) -> AudioFrameMut
Calls VapourSynth’s audio channel assembly without validation.
§Safety
The destination format and sample count must be valid. Both arrays must
contain at least format.num_channels entries. Each non-null source must
be a live audio frame with a valid channel index and matching sample
storage and frame length. Frames must be valid for this core’s API.
pub fn copy_frame<F: Frame>(&self, frame: &F) -> F::Writable
Sourcepub fn query_video_format(
&self,
color_family: ColorFamily,
sample_type: SampleType,
bits_per_sample: i32,
subsampling_w: i32,
subsampling_h: i32,
) -> Option<VideoFormat>
pub fn query_video_format( &self, color_family: ColorFamily, sample_type: SampleType, bits_per_sample: i32, subsampling_w: i32, subsampling_h: i32, ) -> Option<VideoFormat>
Returns the format if VapourSynth accepts the requested parameters.
pub fn get_video_format_name(&self, format: &VideoFormat) -> Option<String>
Sourcepub fn query_audio_format(
&self,
sample_type: SampleType,
bits_per_sample: i32,
channel_layout: u64,
) -> Option<AudioFormat>
pub fn query_audio_format( &self, sample_type: SampleType, bits_per_sample: i32, channel_layout: u64, ) -> Option<AudioFormat>
Returns the format if VapourSynth accepts the requested parameters.
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
Sourcepub fn get_video_format_by_id(&self, id: u32) -> Option<VideoFormat>
pub fn get_video_format_by_id(&self, id: u32) -> Option<VideoFormat>
Returns the format if VapourSynth recognizes the ID.