Struct vapoursynth_sys::VSAPI
source · [−]#[repr(C)]pub struct VSAPI {Show 77 fields
pub createCore: unsafe extern "system" fn(threads: c_int) -> *mut VSCore,
pub freeCore: unsafe extern "system" fn(core: *mut VSCore),
pub getCoreInfo: unsafe extern "system" fn(core: *mut VSCore) -> *const VSCoreInfo,
pub cloneFrameRef: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSFrameRef,
pub cloneNodeRef: unsafe extern "system" fn(node: *mut VSNodeRef) -> *mut VSNodeRef,
pub cloneFuncRef: unsafe extern "system" fn(f: *mut VSFuncRef) -> *mut VSFuncRef,
pub freeFrame: unsafe extern "system" fn(f: *const VSFrameRef),
pub freeNode: unsafe extern "system" fn(node: *mut VSNodeRef),
pub freeFunc: unsafe extern "system" fn(f: *mut VSFuncRef),
pub newVideoFrame: unsafe extern "system" fn(format: *const VSFormat, width: c_int, height: c_int, propSrc: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef,
pub copyFrame: unsafe extern "system" fn(f: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef,
pub copyFrameProps: unsafe extern "system" fn(src: *const VSFrameRef, dst: *mut VSFrameRef, core: *mut VSCore),
pub registerFunction: unsafe extern "system" fn(name: *const c_char, args: *const c_char, argsFunc: VSPublicFunction, functionData: *mut c_void, plugin: *mut VSPlugin),
pub getPluginById: unsafe extern "system" fn(identifier: *const c_char, core: *mut VSCore) -> *mut VSPlugin,
pub getPluginByNs: unsafe extern "system" fn(ns: *const c_char, core: *mut VSCore) -> *mut VSPlugin,
pub getPlugins: unsafe extern "system" fn(core: *mut VSCore) -> *mut VSMap,
pub getFunctions: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *mut VSMap,
pub createFilter: unsafe extern "system" fn(in_: *const VSMap, out: *mut VSMap, name: *const c_char, init: VSFilterInit, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, flags: c_int, instanceData: *mut c_void, core: *mut VSCore),
pub setError: unsafe extern "system" fn(map: *mut VSMap, errorMessage: *const c_char),
pub getError: unsafe extern "system" fn(map: *const VSMap) -> *const c_char,
pub setFilterError: unsafe extern "system" fn(errorMessage: *const c_char, frameCtx: *mut VSFrameContext),
pub invoke: unsafe extern "system" fn(plugin: *mut VSPlugin, name: *const c_char, args: *const VSMap) -> *mut VSMap,
pub getFormatPreset: unsafe extern "system" fn(id: c_int, core: *mut VSCore) -> *const VSFormat,
pub registerFormat: unsafe extern "system" fn(colorFamily: c_int, sampleType: c_int, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> *const VSFormat,
pub getFrame: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, errorMsg: *mut c_char, bufSize: c_int) -> *const VSFrameRef,
pub getFrameAsync: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, callback: VSFrameDoneCallback, userData: *mut c_void),
pub getFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, frameCtx: *mut VSFrameContext) -> *const VSFrameRef,
pub requestFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, frameCtx: *mut VSFrameContext),
pub queryCompletedFrame: unsafe extern "system" fn(node: *mut *mut VSNodeRef, n: *mut c_int, frameCtx: *mut VSFrameContext),
pub releaseFrameEarly: unsafe extern "system" fn(node: *mut VSNodeRef, n: c_int, frameCtx: *mut VSFrameContext),
pub getStride: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int,
pub getReadPtr: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> *const u8,
pub getWritePtr: unsafe extern "system" fn(f: *mut VSFrameRef, plane: c_int) -> *mut u8,
pub createFunc: unsafe extern "system" fn(func: VSPublicFunction, userData: *mut c_void, free: VSFreeFuncData, core: *mut VSCore, vsapi: *const VSAPI) -> *mut VSFuncRef,
pub callFunc: unsafe extern "system" fn(func: *mut VSFuncRef, in_: *const VSMap, out: *mut VSMap, core: *mut VSCore, vsapi: *const VSAPI),
pub createMap: unsafe extern "system" fn() -> *mut VSMap,
pub freeMap: unsafe extern "system" fn(map: *mut VSMap),
pub clearMap: unsafe extern "system" fn(map: *mut VSMap),
pub getVideoInfo: unsafe extern "system" fn(node: *mut VSNodeRef) -> *const VSVideoInfo,
pub setVideoInfo: unsafe extern "system" fn(vi: *const VSVideoInfo, numOutputs: c_int, node: *mut VSNode),
pub getFrameFormat: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSFormat,
pub getFrameWidth: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int,
pub getFrameHeight: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int,
pub getFramePropsRO: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSMap,
pub getFramePropsRW: unsafe extern "system" fn(f: *mut VSFrameRef) -> *mut VSMap,
pub propNumKeys: unsafe extern "system" fn(map: *const VSMap) -> c_int,
pub propGetKey: unsafe extern "system" fn(map: *const VSMap, index: c_int) -> *const c_char,
pub propNumElements: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_int,
pub propGetType: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_char,
pub propGetInt: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> i64,
pub propGetFloat: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> f64,
pub propGetData: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const c_char,
pub propGetDataSize: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int,
pub propGetNode: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSNodeRef,
pub propGetFrame: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const VSFrameRef,
pub propGetFunc: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSFuncRef,
pub propDeleteKey: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char) -> c_int,
pub propSetInt: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: i64, append: c_int) -> c_int,
pub propSetFloat: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: f64, append: c_int) -> c_int,
pub propSetData: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, data: *const c_char, size: c_int, append: c_int) -> c_int,
pub propSetNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNodeRef, append: c_int) -> c_int,
pub propSetFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrameRef, append: c_int) -> c_int,
pub propSetFunc: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFuncRef, append: c_int) -> c_int,
pub setMaxCacheSize: unsafe extern "system" fn(bytes: i64, core: *mut VSCore) -> i64,
pub getOutputIndex: unsafe extern "system" fn(frameCtx: *mut VSFrameContext) -> c_int,
pub newVideoFrame2: unsafe extern "system" fn(format: *const VSFormat, width: c_int, height: c_int, planeSrc: *mut *const VSFrameRef, planes: *const c_int, propSrc: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef,
pub setMessageHandler: unsafe extern "system" fn(handler: VSMessageHandler, userData: *mut c_void),
pub setThreadCount: unsafe extern "system" fn(threads: c_int, core: *mut VSCore) -> c_int,
pub getPluginPath: unsafe extern "system" fn(plugin: *const VSPlugin) -> *const c_char,
pub propGetIntArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const i64,
pub propGetFloatArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const f64,
pub propSetIntArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: *const i64, size: c_int) -> c_int,
pub propSetFloatArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: *const f64, size: c_int) -> c_int,
pub logMessage: unsafe extern "system" fn(msgType: c_int, msg: *const c_char),
pub addMessageHandler: unsafe extern "system" fn(handler: VSMessageHandler, free: VSMessageHandlerFree, userData: *mut c_void) -> VSMessageHandlerId,
pub removeMessageHandler: unsafe extern "system" fn(id: VSMessageHandlerId) -> c_int,
pub getCoreInfo2: unsafe extern "system" fn(core: *mut VSCore, info: *mut VSCoreInfo),
}
Fields
createCore: unsafe extern "system" fn(threads: c_int) -> *mut VSCore
freeCore: unsafe extern "system" fn(core: *mut VSCore)
getCoreInfo: unsafe extern "system" fn(core: *mut VSCore) -> *const VSCoreInfo
👎 Deprecated:
use getCoreInfo2
instead
cloneFrameRef: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSFrameRef
cloneNodeRef: unsafe extern "system" fn(node: *mut VSNodeRef) -> *mut VSNodeRef
cloneFuncRef: unsafe extern "system" fn(f: *mut VSFuncRef) -> *mut VSFuncRef
freeFrame: unsafe extern "system" fn(f: *const VSFrameRef)
freeNode: unsafe extern "system" fn(node: *mut VSNodeRef)
freeFunc: unsafe extern "system" fn(f: *mut VSFuncRef)
newVideoFrame: unsafe extern "system" fn(format: *const VSFormat, width: c_int, height: c_int, propSrc: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef
copyFrame: unsafe extern "system" fn(f: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef
copyFrameProps: unsafe extern "system" fn(src: *const VSFrameRef, dst: *mut VSFrameRef, core: *mut VSCore)
registerFunction: unsafe extern "system" fn(name: *const c_char, args: *const c_char, argsFunc: VSPublicFunction, functionData: *mut c_void, plugin: *mut VSPlugin)
getPluginById: unsafe extern "system" fn(identifier: *const c_char, core: *mut VSCore) -> *mut VSPlugin
getPluginByNs: unsafe extern "system" fn(ns: *const c_char, core: *mut VSCore) -> *mut VSPlugin
getPlugins: unsafe extern "system" fn(core: *mut VSCore) -> *mut VSMap
getFunctions: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *mut VSMap
createFilter: unsafe extern "system" fn(in_: *const VSMap, out: *mut VSMap, name: *const c_char, init: VSFilterInit, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, flags: c_int, instanceData: *mut c_void, core: *mut VSCore)
setError: unsafe extern "system" fn(map: *mut VSMap, errorMessage: *const c_char)
getError: unsafe extern "system" fn(map: *const VSMap) -> *const c_char
setFilterError: unsafe extern "system" fn(errorMessage: *const c_char, frameCtx: *mut VSFrameContext)
invoke: unsafe extern "system" fn(plugin: *mut VSPlugin, name: *const c_char, args: *const VSMap) -> *mut VSMap
getFormatPreset: unsafe extern "system" fn(id: c_int, core: *mut VSCore) -> *const VSFormat
registerFormat: unsafe extern "system" fn(colorFamily: c_int, sampleType: c_int, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> *const VSFormat
getFrame: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, errorMsg: *mut c_char, bufSize: c_int) -> *const VSFrameRef
getFrameAsync: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, callback: VSFrameDoneCallback, userData: *mut c_void)
getFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, frameCtx: *mut VSFrameContext) -> *const VSFrameRef
requestFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, frameCtx: *mut VSFrameContext)
queryCompletedFrame: unsafe extern "system" fn(node: *mut *mut VSNodeRef, n: *mut c_int, frameCtx: *mut VSFrameContext)
releaseFrameEarly: unsafe extern "system" fn(node: *mut VSNodeRef, n: c_int, frameCtx: *mut VSFrameContext)
getStride: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int
getReadPtr: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> *const u8
getWritePtr: unsafe extern "system" fn(f: *mut VSFrameRef, plane: c_int) -> *mut u8
createFunc: unsafe extern "system" fn(func: VSPublicFunction, userData: *mut c_void, free: VSFreeFuncData, core: *mut VSCore, vsapi: *const VSAPI) -> *mut VSFuncRef
callFunc: unsafe extern "system" fn(func: *mut VSFuncRef, in_: *const VSMap, out: *mut VSMap, core: *mut VSCore, vsapi: *const VSAPI)
createMap: unsafe extern "system" fn() -> *mut VSMap
freeMap: unsafe extern "system" fn(map: *mut VSMap)
clearMap: unsafe extern "system" fn(map: *mut VSMap)
getVideoInfo: unsafe extern "system" fn(node: *mut VSNodeRef) -> *const VSVideoInfo
setVideoInfo: unsafe extern "system" fn(vi: *const VSVideoInfo, numOutputs: c_int, node: *mut VSNode)
getFrameFormat: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSFormat
getFrameWidth: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int
getFrameHeight: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_int
getFramePropsRO: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSMap
getFramePropsRW: unsafe extern "system" fn(f: *mut VSFrameRef) -> *mut VSMap
propNumKeys: unsafe extern "system" fn(map: *const VSMap) -> c_int
propGetKey: unsafe extern "system" fn(map: *const VSMap, index: c_int) -> *const c_char
propNumElements: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_int
propGetType: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_char
propGetInt: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> i64
propGetFloat: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> f64
propGetData: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const c_char
propGetDataSize: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int
propGetNode: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSNodeRef
propGetFrame: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const VSFrameRef
propGetFunc: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSFuncRef
propDeleteKey: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char) -> c_int
propSetInt: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: i64, append: c_int) -> c_int
propSetFloat: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: f64, append: c_int) -> c_int
propSetData: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, data: *const c_char, size: c_int, append: c_int) -> c_int
propSetNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNodeRef, append: c_int) -> c_int
propSetFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrameRef, append: c_int) -> c_int
propSetFunc: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFuncRef, append: c_int) -> c_int
setMaxCacheSize: unsafe extern "system" fn(bytes: i64, core: *mut VSCore) -> i64
getOutputIndex: unsafe extern "system" fn(frameCtx: *mut VSFrameContext) -> c_int
newVideoFrame2: unsafe extern "system" fn(format: *const VSFormat, width: c_int, height: c_int, planeSrc: *mut *const VSFrameRef, planes: *const c_int, propSrc: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRef
setMessageHandler: unsafe extern "system" fn(handler: VSMessageHandler, userData: *mut c_void)
👎 Deprecated:
use addMessageHandler
and removeMessageHandler
instead
setThreadCount: unsafe extern "system" fn(threads: c_int, core: *mut VSCore) -> c_int
getPluginPath: unsafe extern "system" fn(plugin: *const VSPlugin) -> *const c_char
propGetIntArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const i64
propGetFloatArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const f64
propSetIntArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: *const i64, size: c_int) -> c_int
propSetFloatArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: *const f64, size: c_int) -> c_int
logMessage: unsafe extern "system" fn(msgType: c_int, msg: *const c_char)
addMessageHandler: unsafe extern "system" fn(handler: VSMessageHandler, free: VSMessageHandlerFree, userData: *mut c_void) -> VSMessageHandlerId
removeMessageHandler: unsafe extern "system" fn(id: VSMessageHandlerId) -> c_int
getCoreInfo2: unsafe extern "system" fn(core: *mut VSCore, info: *mut VSCoreInfo)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VSAPI
impl Send for VSAPI
impl Sync for VSAPI
impl Unpin for VSAPI
impl UnwindSafe for VSAPI
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more