Expand description
Low level VapourSynth bindings to Rust
This crate provides raw unsafe FFI bindings to the VapourSynth API. For a safe wrapper, see rustsynth.
§Feature Flags
The bindings are conditionally compiled based on feature flags:
api-41
- Enables VapourSynth API version 4.1 headers (VS_USE_API_41
)vs-graph-api
- Enables the experimental graph API (VS_GRAPH_API
)script-api-42
- Enables VSScript API 4.2 headers (VSSCRIPT_USE_API_42
)vapoursynth-functions
- Links to the main VapourSynth functions libraryvsscript-functions
- Links to the VSScript functions library
Different feature combinations will expose different functions and types in the generated bindings.
Macros§
- version
- Makes a VS compatible version integer
Structs§
- VSAPI
- VSAudio
Format - VSAudio
Info - VSCore
- VSCore
Creation Flags - VSCore
Info - VSFilter
Dependency - VSFrame
- VSFrame
Context - VSFunction
- VSLog
Handle - VSMap
- VSNode
- VSPLUGINAPI
- VSPlugin
- VSPlugin
Config Flags - VSPlugin
Function - VSSCRIPTAPI
- VSScript
- VSVideo
Format - VSVideo
Info
Enums§
- VSActivation
Reason - VSAudio
Channels - VSCache
Mode - VSChroma
Location - VSColor
Family - VSColor
Primaries - VSColor
Range - VSData
Type Hint - VSField
Based - VSFilter
Mode - VSMap
Append Mode - VSMap
Property Error - VSMatrix
Coefficients - VSMedia
Type - VSMessage
Type - VSPreset
Video Format - VSProperty
Type - VSRequest
Pattern - VSSample
Type - VSTransfer
Characteristics
Constants§
- VAPOURSYNTH_
API_ MAJOR - VAPOURSYNTH_
API_ MINOR - VAPOURSYNTH_
API_ VERSION - VSH_
RESIZE_ PLUGIN_ ID - VSH_
STD_ PLUGIN_ ID - VSH_
TEXT_ PLUGIN_ ID - VSSCRIPT_
API_ MAJOR - VSSCRIPT_
API_ MINOR - VSSCRIPT_
API_ VERSION - VS_
AUDIO_ FRAME_ SAMPLES
Functions§
- addRational⚠
- Add two rational numbers and reduces the result
- areValid
Dimensions ⚠ - Check if the frame dimensions are valid for a given format
- bitblt⚠
- Bitblt function for copying image data
- double
ToFloatS - Converts a double to float with saturation
- getVS
ScriptAPI ⚠ - getVapour
SynthAPI ⚠ - int64
ToIntS - Converts an int64 to int with saturation
- isConstant
Video ⚠Format - Convenience function for checking if the format never changes between frames
- isSame
Audio ⚠Format - Convenience function to check if two clips have the same audio format
- isSame
Audio ⚠Info - Convenience function to check if two clips have the same audio info
- isSame
Video ⚠Format - Convenience function to check if two clips have the same format
- isSame
Video ⚠Info - Convenience function to check if two clips have the same format while also including width and height
- isSame
Video ⚠Preset Format - Convenience function to check if a clip has the same format as a format id
- muldiv
Rational ⚠ - Multiplies and divides a rational number and reduces the result
- reduce
Rational ⚠ - Reduces a rational number