#[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 VSCorefreeCore: 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 VSFrameRefcloneNodeRef: unsafe extern "system" fn(node: *mut VSNodeRef) -> *mut VSNodeRefcloneFuncRef: unsafe extern "system" fn(f: *mut VSFuncRef) -> *mut VSFuncReffreeFrame: 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 VSFrameRefcopyFrame: unsafe extern "system" fn(f: *const VSFrameRef, core: *mut VSCore) -> *mut VSFrameRefcopyFrameProps: 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 VSPlugingetPluginByNs: unsafe extern "system" fn(ns: *const c_char, core: *mut VSCore) -> *mut VSPlugingetPlugins: unsafe extern "system" fn(core: *mut VSCore) -> *mut VSMapgetFunctions: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *mut VSMapcreateFilter: 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_charsetFilterError: 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 VSMapgetFormatPreset: unsafe extern "system" fn(id: c_int, core: *mut VSCore) -> *const VSFormatregisterFormat: unsafe extern "system" fn(colorFamily: c_int, sampleType: c_int, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> *const VSFormatgetFrame: unsafe extern "system" fn(n: c_int, node: *mut VSNodeRef, errorMsg: *mut c_char, bufSize: c_int) -> *const VSFrameRefgetFrameAsync: 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 VSFrameRefrequestFrameFilter: 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_intgetReadPtr: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> *const u8getWritePtr: unsafe extern "system" fn(f: *mut VSFrameRef, plane: c_int) -> *mut u8createFunc: unsafe extern "system" fn(func: VSPublicFunction, userData: *mut c_void, free: VSFreeFuncData, core: *mut VSCore, vsapi: *const VSAPI) -> *mut VSFuncRefcallFunc: 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 VSMapfreeMap: unsafe extern "system" fn(map: *mut VSMap)clearMap: unsafe extern "system" fn(map: *mut VSMap)getVideoInfo: unsafe extern "system" fn(node: *mut VSNodeRef) -> *const VSVideoInfosetVideoInfo: unsafe extern "system" fn(vi: *const VSVideoInfo, numOutputs: c_int, node: *mut VSNode)getFrameFormat: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSFormatgetFrameWidth: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_intgetFrameHeight: unsafe extern "system" fn(f: *const VSFrameRef, plane: c_int) -> c_intgetFramePropsRO: unsafe extern "system" fn(f: *const VSFrameRef) -> *const VSMapgetFramePropsRW: unsafe extern "system" fn(f: *mut VSFrameRef) -> *mut VSMappropNumKeys: unsafe extern "system" fn(map: *const VSMap) -> c_intpropGetKey: unsafe extern "system" fn(map: *const VSMap, index: c_int) -> *const c_charpropNumElements: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_intpropGetType: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_charpropGetInt: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> i64propGetFloat: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> f64propGetData: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const c_charpropGetDataSize: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_intpropGetNode: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSNodeRefpropGetFrame: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const VSFrameRefpropGetFunc: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSFuncRefpropDeleteKey: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char) -> c_intpropSetInt: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: i64, append: c_int) -> c_intpropSetFloat: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: f64, append: c_int) -> c_intpropSetData: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, data: *const c_char, size: c_int, append: c_int) -> c_intpropSetNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNodeRef, append: c_int) -> c_intpropSetFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrameRef, append: c_int) -> c_intpropSetFunc: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFuncRef, append: c_int) -> c_intsetMaxCacheSize: unsafe extern "system" fn(bytes: i64, core: *mut VSCore) -> i64getOutputIndex: unsafe extern "system" fn(frameCtx: *mut VSFrameContext) -> c_intnewVideoFrame2: 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 VSFrameRefsetMessageHandler: 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_intgetPluginPath: unsafe extern "system" fn(plugin: *const VSPlugin) -> *const c_charpropGetIntArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const i64propGetFloatArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const f64propSetIntArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: *const i64, size: c_int) -> c_intpropSetFloatArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: *const f64, size: c_int) -> c_intlogMessage: unsafe extern "system" fn(msgType: c_int, msg: *const c_char)addMessageHandler: unsafe extern "system" fn(handler: VSMessageHandler, free: VSMessageHandlerFree, userData: *mut c_void) -> VSMessageHandlerIdremoveMessageHandler: unsafe extern "system" fn(id: VSMessageHandlerId) -> c_intgetCoreInfo2: unsafe extern "system" fn(core: *mut VSCore, info: *mut VSCoreInfo)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.