Struct vapoursynth4_sys::VSAPI

source ·
#[repr(C)]
pub struct VSAPI {
Show 113 fields pub createVideoFilter: unsafe extern "system" fn(out: *mut VSMap, name: *const c_char, vi: *const VSVideoInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore), pub createVideoFilter2: unsafe extern "system" fn(name: *const c_char, vi: *const VSVideoInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore) -> *mut VSNode, pub createAudioFilter: unsafe extern "system" fn(out: *mut VSMap, name: *const c_char, ai: *const VSAudioInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore), pub createAudioFilter2: unsafe extern "system" fn(name: *const c_char, ai: *const VSAudioInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore) -> *mut VSNode, pub setLinearFilter: unsafe extern "system" fn(node: *mut VSNode) -> c_int, pub setCacheMode: unsafe extern "system" fn(node: *mut VSNode, mode: c_int), pub setCacheOptions: unsafe extern "system" fn(node: *mut VSNode, fixedSize: c_int, maxSize: c_int, maxHistorySize: c_int), pub freeNode: unsafe extern "system" fn(node: *mut VSNode), pub addNodeRef: unsafe extern "system" fn(node: *mut VSNode) -> *mut VSNode, pub getNodeType: unsafe extern "system" fn(node: *mut VSNode) -> VSMediaType, pub getVideoInfo: unsafe extern "system" fn(node: *mut VSNode) -> *const VSVideoInfo, pub getAudioInfo: unsafe extern "system" fn(node: *mut VSNode) -> *const VSAudioInfo, pub newVideoFrame: unsafe extern "system" fn(format: *const VSVideoFormat, width: c_int, height: c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame, pub newVideoFrame2: unsafe extern "system" fn(format: *const VSVideoFormat, width: c_int, height: c_int, planeSrc: *const *const VSFrame, planes: *const c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame, pub newAudioFrame: unsafe extern "system" fn(format: *const VSAudioFormat, numSamples: c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame, pub newAudioFrame2: unsafe extern "system" fn(format: *const VSAudioFormat, numSamples: c_int, channelSrc: *const *const VSFrame, channels: *const c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame, pub freeFrame: unsafe extern "system" fn(f: *const VSFrame), pub addFrameRef: unsafe extern "system" fn(f: *const VSFrame) -> *mut VSFrame, pub copyFrame: unsafe extern "system" fn(f: *const VSFrame, core: *mut VSCore) -> *mut VSFrame, pub getFramePropertiesRO: unsafe extern "system" fn(f: *const VSFrame) -> *const VSMap, pub getFramePropertiesRW: unsafe extern "system" fn(f: *mut VSFrame) -> *mut VSMap, pub getStride: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> isize, pub getReadPtr: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> *const u8, pub getWritePtr: unsafe extern "system" fn(f: *mut VSFrame, plane: c_int) -> *mut u8, pub getVideoFrameFormat: unsafe extern "system" fn(f: *const VSFrame) -> *const VSVideoFormat, pub getAudioFrameFormat: unsafe extern "system" fn(f: *const VSFrame) -> *const VSAudioFormat, pub getFrameType: unsafe extern "system" fn(f: *const VSFrame) -> c_int, pub getFrameWidth: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> c_int, pub getFrameHeight: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> c_int, pub getFrameLength: unsafe extern "system" fn(f: *const VSFrame) -> c_int, pub getVideoFormatName: unsafe extern "system" fn(format: *const VSVideoFormat, buffer: *mut c_char) -> c_int, pub getAudioFormatName: unsafe extern "system" fn(format: *const VSAudioFormat, buffer: *mut c_char) -> c_int, pub queryVideoFormat: unsafe extern "system" fn(format: *mut VSVideoFormat, colorFamily: c_int, sampleType: c_int, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> c_int, pub queryAudioFormat: unsafe extern "system" fn(format: *mut VSAudioFormat, sampleType: c_int, bitsPerSample: c_int, channelLayout: u64, core: *mut VSCore) -> c_int, pub queryVideoFormatID: unsafe extern "system" fn(colorFamily: VSColorFamily, sampleType: VSSampleType, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> u32, pub getVideoFormatByID: unsafe extern "system" fn(format: *mut VSVideoFormat, id: u32, core: *mut VSCore) -> c_int, pub getFrame: unsafe extern "system" fn(n: c_int, node: *mut VSNode, errorMsg: *mut c_char, bufSize: c_int) -> *const VSFrame, pub getFrameAsync: unsafe extern "system" fn(n: c_int, node: *mut VSNode, callback: VSFrameDoneCallback, userData: *mut c_void), pub getFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNode, frameCtx: *mut VSFrameContext) -> *const VSFrame, pub requestFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNode, frameCtx: *mut VSFrameContext), pub releaseFrameEarly: unsafe extern "system" fn(node: *mut VSNode, n: c_int, frameCtx: *mut VSFrameContext), pub cacheFrame: unsafe extern "system" fn(frame: *const VSFrame, n: c_int, frameCtx: *mut VSFrameContext), pub setFilterError: unsafe extern "system" fn(errorMessage: *const c_char, frameCtx: *mut VSFrameContext), pub createFunction: unsafe extern "system" fn(func: VSPublicFunction, userData: *mut c_void, free: VSFreeFunctionData, core: *mut VSCore) -> *mut VSFunction, pub freeFunction: unsafe extern "system" fn(f: *mut VSFunction), pub addFunctionRef: unsafe extern "system" fn(f: *mut VSFunction) -> *mut VSFunction, pub callFunction: unsafe extern "system" fn(func: *mut VSFunction, in_: *const VSMap, out: *mut VSMap), 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 copyMap: unsafe extern "system" fn(src: *const VSMap, dst: *mut VSMap), pub mapSetError: unsafe extern "system" fn(map: *mut VSMap, errorMessage: *const c_char), pub mapGetError: unsafe extern "system" fn(map: *const VSMap) -> *const c_char, pub mapNumKeys: unsafe extern "system" fn(map: *const VSMap) -> c_int, pub mapGetKey: unsafe extern "system" fn(map: *const VSMap, index: c_int) -> *const c_char, pub mapDeleteKey: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char) -> c_int, pub mapNumElements: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_int, pub mapGetType: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> VSPropertyType, pub mapSetEmpty: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, type_: c_int) -> c_int, pub mapGetInt: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> i64, pub mapGetIntSaturated: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int, pub mapGetIntArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const i64, pub mapSetInt: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: i64, append: c_int) -> c_int, pub mapSetIntArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: *const i64, size: c_int) -> c_int, pub mapGetFloat: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_double, pub mapGetFloatSaturated: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_float, pub mapGetFloatArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const c_double, pub mapSetFloat: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: c_double, append: c_int) -> c_int, pub mapSetFloatArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: *const c_double, size: c_int) -> c_int, pub mapGetData: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const c_char, pub mapGetDataSize: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int, pub mapGetDataTypeHint: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> VSDataTypeHint, pub mapSetData: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, data: *const c_char, size: c_int, type_: c_int, append: c_int) -> c_int, pub mapGetNode: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSNode, pub mapSetNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNode, append: c_int) -> c_int, pub mapConsumeNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNode, append: c_int) -> c_int, pub mapGetFrame: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const VSFrame, pub mapSetFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrame, append: c_int) -> c_int, pub mapConsumeFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrame, append: c_int) -> c_int, pub mapGetFunction: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSFunction, pub mapSetFunction: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFunction, append: c_int) -> c_int, pub mapConsumeFunction: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFunction, append: c_int) -> c_int, pub registerFunction: unsafe extern "system" fn(name: *const c_char, args: *const c_char, returnType: *const c_char, argsFunc: VSPublicFunction, functionData: *mut c_void, plugin: *mut VSPlugin) -> c_int, pub getPluginByID: unsafe extern "system" fn(identifier: *const c_char, core: *mut VSCore) -> *mut VSPlugin, pub getPluginByNamespace: unsafe extern "system" fn(ns: *const c_char, core: *mut VSCore) -> *mut VSPlugin, pub getNextPlugin: unsafe extern "system" fn(plugin: *mut VSPlugin, core: *mut VSCore) -> *mut VSPlugin, pub getPluginName: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char, pub getPluginID: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char, pub getPluginNamespace: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char, pub getNextPluginFunction: unsafe extern "system" fn(func: *mut VSPluginFunction, plugin: *mut VSPlugin) -> *mut VSPluginFunction, pub getPluginFunctionByName: unsafe extern "system" fn(name: *const c_char, plugin: *mut VSPlugin) -> *mut VSPluginFunction, pub getPluginFunctionName: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char, pub getPluginFunctionArguments: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char, pub getPluginFunctionReturnType: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char, pub getPluginPath: unsafe extern "system" fn(plugin: *const VSPlugin) -> *const c_char, pub getPluginVersion: unsafe extern "system" fn(plugin: *const VSPlugin) -> c_int, pub invoke: unsafe extern "system" fn(plugin: *mut VSPlugin, name: *const c_char, args: *const VSMap) -> *mut VSMap, pub createCore: unsafe extern "system" fn(flags: VSCoreCreationFlags) -> *mut VSCore, pub freeCore: unsafe extern "system" fn(core: *mut VSCore), pub setMaxCacheSize: unsafe extern "system" fn(bytes: i64, core: *mut VSCore) -> i64, pub setThreadCount: unsafe extern "system" fn(threads: c_int, core: *mut VSCore) -> c_int, pub getCoreInfo: unsafe extern "system" fn(core: *mut VSCore, info: *mut VSCoreInfo), pub getAPIVersion: unsafe extern "system" fn() -> c_int, pub logMessage: unsafe extern "system" fn(msgType: c_int, msg: *const c_char, core: *mut VSCore), pub addLogHandler: unsafe extern "system" fn(handler: VSLogHandler, free: Option<VSLogHandlerFree>, userData: *mut c_void, core: *mut VSCore) -> *mut VSLogHandle, pub removeLogHandler: unsafe extern "system" fn(handle: *mut VSLogHandle, core: *mut VSCore) -> c_int, pub getNodeCreationFunctionName: unsafe extern "system" fn(node: *mut VSNode, level: c_int) -> *const c_char, pub getNodeCreationFunctionArguments: unsafe extern "system" fn(node: *mut VSNode, level: c_int) -> *const VSMap, pub getNodeName: unsafe extern "system" fn(node: *mut VSNode) -> *const c_char, pub getNodeFilterMode: unsafe extern "system" fn(node: *mut VSNode) -> VSFilterMode, pub getNodeFilterTime: unsafe extern "system" fn(node: *mut VSNode) -> i64, pub getNodeDependencies: unsafe extern "system" fn(node: *mut VSNode) -> *const VSFilterDependency, pub getNumNodeDependencies: unsafe extern "system" fn(node: *mut VSNode) -> c_int,
}

Fields§

§createVideoFilter: unsafe extern "system" fn(out: *mut VSMap, name: *const c_char, vi: *const VSVideoInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore)

output nodes are appended to the clip key in the out map

§createVideoFilter2: unsafe extern "system" fn(name: *const c_char, vi: *const VSVideoInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore) -> *mut VSNode

same as createVideoFilter() but returns a pointer to the VSNode directly or NULL on failure

§createAudioFilter: unsafe extern "system" fn(out: *mut VSMap, name: *const c_char, ai: *const VSAudioInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore)

output nodes are appended to the clip key in the out map

§createAudioFilter2: unsafe extern "system" fn(name: *const c_char, ai: *const VSAudioInfo, getFrame: VSFilterGetFrame, free: VSFilterFree, filterMode: c_int, dependencies: *const VSFilterDependency, numDeps: c_int, instanceData: *mut c_void, core: *mut VSCore) -> *mut VSNode

same as createAudioFilter() but returns a pointer to the VSNode directly or NULL on failure

§setLinearFilter: unsafe extern "system" fn(node: *mut VSNode) -> c_int

Use right after create*Filter*, sets the correct cache mode for using the cacheFrame API and returns the recommended upper number of additional frames to cache per request

§setCacheMode: unsafe extern "system" fn(node: *mut VSNode, mode: c_int)

VSCacheMode, changing the cache mode also resets all options to their default

§setCacheOptions: unsafe extern "system" fn(node: *mut VSNode, fixedSize: c_int, maxSize: c_int, maxHistorySize: c_int)

passing -1 means no change

§freeNode: unsafe extern "system" fn(node: *mut VSNode)§addNodeRef: unsafe extern "system" fn(node: *mut VSNode) -> *mut VSNode§getNodeType: unsafe extern "system" fn(node: *mut VSNode) -> VSMediaType§getVideoInfo: unsafe extern "system" fn(node: *mut VSNode) -> *const VSVideoInfo§getAudioInfo: unsafe extern "system" fn(node: *mut VSNode) -> *const VSAudioInfo§newVideoFrame: unsafe extern "system" fn(format: *const VSVideoFormat, width: c_int, height: c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame§newVideoFrame2: unsafe extern "system" fn(format: *const VSVideoFormat, width: c_int, height: c_int, planeSrc: *const *const VSFrame, planes: *const c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame

same as newVideoFrame() but allows the specified planes to be effectively copied from the source frames

§newAudioFrame: unsafe extern "system" fn(format: *const VSAudioFormat, numSamples: c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame§newAudioFrame2: unsafe extern "system" fn(format: *const VSAudioFormat, numSamples: c_int, channelSrc: *const *const VSFrame, channels: *const c_int, propSrc: *const VSFrame, core: *mut VSCore) -> *mut VSFrame

same as newAudioFrame() but allows the specified channels to be effectively copied from the source frames

§freeFrame: unsafe extern "system" fn(f: *const VSFrame)§addFrameRef: unsafe extern "system" fn(f: *const VSFrame) -> *mut VSFrame§copyFrame: unsafe extern "system" fn(f: *const VSFrame, core: *mut VSCore) -> *mut VSFrame§getFramePropertiesRO: unsafe extern "system" fn(f: *const VSFrame) -> *const VSMap§getFramePropertiesRW: unsafe extern "system" fn(f: *mut VSFrame) -> *mut VSMap§getStride: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> isize§getReadPtr: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> *const u8§getWritePtr: unsafe extern "system" fn(f: *mut VSFrame, plane: c_int) -> *mut u8

calling this function invalidates previously gotten read pointers to the same frame

§getVideoFrameFormat: unsafe extern "system" fn(f: *const VSFrame) -> *const VSVideoFormat§getAudioFrameFormat: unsafe extern "system" fn(f: *const VSFrame) -> *const VSAudioFormat§getFrameType: unsafe extern "system" fn(f: *const VSFrame) -> c_int§getFrameWidth: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> c_int§getFrameHeight: unsafe extern "system" fn(f: *const VSFrame, plane: c_int) -> c_int§getFrameLength: unsafe extern "system" fn(f: *const VSFrame) -> c_int§getVideoFormatName: unsafe extern "system" fn(format: *const VSVideoFormat, buffer: *mut c_char) -> c_int

up to 32 characters including terminating null may be written to the buffer, non-zero return value on success

§getAudioFormatName: unsafe extern "system" fn(format: *const VSAudioFormat, buffer: *mut c_char) -> c_int

up to 32 characters including terminating null may be written to the buffer, non-zero return value on success

§queryVideoFormat: unsafe extern "system" fn(format: *mut VSVideoFormat, colorFamily: c_int, sampleType: c_int, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> c_int

non-zero return value on success

§queryAudioFormat: unsafe extern "system" fn(format: *mut VSAudioFormat, sampleType: c_int, bitsPerSample: c_int, channelLayout: u64, core: *mut VSCore) -> c_int

non-zero return value on success

§queryVideoFormatID: unsafe extern "system" fn(colorFamily: VSColorFamily, sampleType: VSSampleType, bitsPerSample: c_int, subSamplingW: c_int, subSamplingH: c_int, core: *mut VSCore) -> u32

returns 0 on failure

§getVideoFormatByID: unsafe extern "system" fn(format: *mut VSVideoFormat, id: u32, core: *mut VSCore) -> c_int

non-zero return value on success

§getFrame: unsafe extern "system" fn(n: c_int, node: *mut VSNode, errorMsg: *mut c_char, bufSize: c_int) -> *const VSFrame

only for external applications using the core as a library or for requesting frames in a filter constructor, do not use inside a filter’s getFrame function

§getFrameAsync: unsafe extern "system" fn(n: c_int, node: *mut VSNode, callback: VSFrameDoneCallback, userData: *mut c_void)

only for external applications using the core as a library or for requesting frames in a filter constructor, do not use inside a filter’s getFrame function

§getFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNode, frameCtx: *mut VSFrameContext) -> *const VSFrame

only use inside a filter’s getFrame function

§requestFrameFilter: unsafe extern "system" fn(n: c_int, node: *mut VSNode, frameCtx: *mut VSFrameContext)

only use inside a filter’s getFrame function

§releaseFrameEarly: unsafe extern "system" fn(node: *mut VSNode, n: c_int, frameCtx: *mut VSFrameContext)

only use inside a filter’s getFrame function, unless this function is called a requested frame is kept in memory until the end of processing the current frame

§cacheFrame: unsafe extern "system" fn(frame: *const VSFrame, n: c_int, frameCtx: *mut VSFrameContext)

used to store intermediate frames in cache, useful for filters where random access is slow, must call setLinearFilter on the node before using or the result is undefined

§setFilterError: unsafe extern "system" fn(errorMessage: *const c_char, frameCtx: *mut VSFrameContext)

used to signal errors in the filter getFrame function

§createFunction: unsafe extern "system" fn(func: VSPublicFunction, userData: *mut c_void, free: VSFreeFunctionData, core: *mut VSCore) -> *mut VSFunction§freeFunction: unsafe extern "system" fn(f: *mut VSFunction)§addFunctionRef: unsafe extern "system" fn(f: *mut VSFunction) -> *mut VSFunction§callFunction: unsafe extern "system" fn(func: *mut VSFunction, in_: *const VSMap, out: *mut VSMap)§createMap: unsafe extern "system" fn() -> *mut VSMap§freeMap: unsafe extern "system" fn(map: *mut VSMap)§clearMap: unsafe extern "system" fn(map: *mut VSMap)§copyMap: unsafe extern "system" fn(src: *const VSMap, dst: *mut VSMap)

copies all values in src to dst, if a key already exists in dst it’s replaced

§mapSetError: unsafe extern "system" fn(map: *mut VSMap, errorMessage: *const c_char)

used to signal errors outside filter getFrame function

§mapGetError: unsafe extern "system" fn(map: *const VSMap) -> *const c_char

used to query errors, returns 0 if no error

§mapNumKeys: unsafe extern "system" fn(map: *const VSMap) -> c_int§mapGetKey: unsafe extern "system" fn(map: *const VSMap, index: c_int) -> *const c_char§mapDeleteKey: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char) -> c_int§mapNumElements: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> c_int

returns -1 if a key doesn’t exist

§mapGetType: unsafe extern "system" fn(map: *const VSMap, key: *const c_char) -> VSPropertyType§mapSetEmpty: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, type_: c_int) -> c_int§mapGetInt: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> i64§mapGetIntSaturated: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int§mapGetIntArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const i64§mapSetInt: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: i64, append: c_int) -> c_int§mapSetIntArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, i: *const i64, size: c_int) -> c_int§mapGetFloat: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_double§mapGetFloatSaturated: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_float§mapGetFloatArray: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, error: *mut c_int) -> *const c_double§mapSetFloat: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: c_double, append: c_int) -> c_int§mapSetFloatArray: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, d: *const c_double, size: c_int) -> c_int§mapGetData: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const c_char§mapGetDataSize: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> c_int§mapGetDataTypeHint: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> VSDataTypeHint§mapSetData: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, data: *const c_char, size: c_int, type_: c_int, append: c_int) -> c_int§mapGetNode: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSNode§mapSetNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNode, append: c_int) -> c_int

returns 0 on success

§mapConsumeNode: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, node: *mut VSNode, append: c_int) -> c_int

always consumes the reference, even on error

§mapGetFrame: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *const VSFrame§mapSetFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrame, append: c_int) -> c_int§mapConsumeFrame: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, f: *const VSFrame, append: c_int) -> c_int§mapGetFunction: unsafe extern "system" fn(map: *const VSMap, key: *const c_char, index: c_int, error: *mut c_int) -> *mut VSFunction§mapSetFunction: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFunction, append: c_int) -> c_int

returns 0 on success

§mapConsumeFunction: unsafe extern "system" fn(map: *mut VSMap, key: *const c_char, func: *mut VSFunction, append: c_int) -> c_int

always consumes the reference, even on error

§registerFunction: unsafe extern "system" fn(name: *const c_char, args: *const c_char, returnType: *const c_char, argsFunc: VSPublicFunction, functionData: *mut c_void, plugin: *mut VSPlugin) -> c_int

non-zero return value on success

§getPluginByID: unsafe extern "system" fn(identifier: *const c_char, core: *mut VSCore) -> *mut VSPlugin§getPluginByNamespace: unsafe extern "system" fn(ns: *const c_char, core: *mut VSCore) -> *mut VSPlugin§getNextPlugin: unsafe extern "system" fn(plugin: *mut VSPlugin, core: *mut VSCore) -> *mut VSPlugin

pass NULL to get the first plugin

§getPluginName: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char

pass NULL to get the first plugin function

§getPluginID: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char§getPluginNamespace: unsafe extern "system" fn(plugin: *mut VSPlugin) -> *const c_char§getNextPluginFunction: unsafe extern "system" fn(func: *mut VSPluginFunction, plugin: *mut VSPlugin) -> *mut VSPluginFunction§getPluginFunctionByName: unsafe extern "system" fn(name: *const c_char, plugin: *mut VSPlugin) -> *mut VSPluginFunction§getPluginFunctionName: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char§getPluginFunctionArguments: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char

returns an argument format string

§getPluginFunctionReturnType: unsafe extern "system" fn(func: *mut VSPluginFunction) -> *const c_char

returns an argument format string

§getPluginPath: unsafe extern "system" fn(plugin: *const VSPlugin) -> *const c_char

the full path to the loaded library file containing the plugin entry point

§getPluginVersion: unsafe extern "system" fn(plugin: *const VSPlugin) -> c_int§invoke: unsafe extern "system" fn(plugin: *mut VSPlugin, name: *const c_char, args: *const VSMap) -> *mut VSMap

user must free the returned VSMap

§createCore: unsafe extern "system" fn(flags: VSCoreCreationFlags) -> *mut VSCore§freeCore: unsafe extern "system" fn(core: *mut VSCore)

only call this function after all node, frame and function references belonging to the core have been freed

§setMaxCacheSize: unsafe extern "system" fn(bytes: i64, core: *mut VSCore) -> i64

the total cache size at which vapoursynth more aggressively tries to reclaim memory, it is not a hard limit

§setThreadCount: unsafe extern "system" fn(threads: c_int, core: *mut VSCore) -> c_int

setting threads to 0 means automatic detection

§getCoreInfo: unsafe extern "system" fn(core: *mut VSCore, info: *mut VSCoreInfo)§getAPIVersion: unsafe extern "system" fn() -> c_int§logMessage: unsafe extern "system" fn(msgType: c_int, msg: *const c_char, core: *mut VSCore)§addLogHandler: unsafe extern "system" fn(handler: VSLogHandler, free: Option<VSLogHandlerFree>, userData: *mut c_void, core: *mut VSCore) -> *mut VSLogHandle

free and userData can be NULL, returns a handle that can be passed to removeLogHandler()

§removeLogHandler: unsafe extern "system" fn(handle: *mut VSLogHandle, core: *mut VSCore) -> c_int

returns non-zero if successfully removed

§getNodeCreationFunctionName: unsafe extern "system" fn(node: *mut VSNode, level: c_int) -> *const c_char
Available on crate feature vs-graph only.

level=0 returns the name of the function that created the filter, specifying a higher level will retrieve the function above that invoked it or NULL if a non-existent level is requested

§getNodeCreationFunctionArguments: unsafe extern "system" fn(node: *mut VSNode, level: c_int) -> *const VSMap
Available on crate feature vs-graph only.

level=0 returns a copy of the arguments passed to the function that created the filter, returns NULL if a non-existent level is requested

§getNodeName: unsafe extern "system" fn(node: *mut VSNode) -> *const c_char
Available on crate feature vs-graph only.

the name passed to create*Filter*

§getNodeFilterMode: unsafe extern "system" fn(node: *mut VSNode) -> VSFilterMode
Available on crate feature vs-graph only.
§getNodeFilterTime: unsafe extern "system" fn(node: *mut VSNode) -> i64
Available on crate feature vs-graph only.

time spent processing frames in nanoseconds

§getNodeDependencies: unsafe extern "system" fn(node: *mut VSNode) -> *const VSFilterDependency
Available on crate feature vs-graph only.
§getNumNodeDependencies: unsafe extern "system" fn(node: *mut VSNode) -> c_int
Available on crate feature vs-graph only.

Implementations§

source§

impl VSAPI

source

pub unsafe fn isSameVideoPresetFormat( &self, presetFormat: VSPresetFormat, v: &VSVideoFormat, core: *mut VSCore ) -> bool

Convenience function to check if a clip has the same format as a format id

Safety

core must be valid

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.