Crate rustsynth_sys

Crate rustsynth_sys 

Source
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 library
  • vsscript-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
VSAudioFormat
VSAudioInfo
VSCore
VSCoreCreationFlags
VSCoreInfo
VSFilterDependency
VSFrame
VSFrameContext
VSFunction
VSLogHandle
VSMap
VSNode
VSPLUGINAPI
VSPlugin
VSPluginConfigFlags
VSPluginFunction
VSSCRIPTAPI
VSScript
VSVideoFormat
VSVideoInfo

Enums§

VSActivationReason
VSAudioChannels
VSCacheMode
VSChromaLocation
VSColorFamily
VSColorPrimaries
VSColorRange
VSDataTypeHint
VSFieldBased
VSFilterMode
VSMapAppendMode
VSMapPropertyError
VSMatrixCoefficients
VSMediaType
VSMessageType
VSPresetVideoFormat
VSPropertyType
VSRequestPattern
VSSampleType
VSTransferCharacteristics

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
areValidDimensions
Check if the frame dimensions are valid for a given format
bitblt
Bitblt function for copying image data
doubleToFloatS
Converts a double to float with saturation
getVSScriptAPI
getVapourSynthAPI
int64ToIntS
Converts an int64 to int with saturation
isConstantVideoFormat
Convenience function for checking if the format never changes between frames
isSameAudioFormat
Convenience function to check if two clips have the same audio format
isSameAudioInfo
Convenience function to check if two clips have the same audio info
isSameVideoFormat
Convenience function to check if two clips have the same format
isSameVideoInfo
Convenience function to check if two clips have the same format while also including width and height
isSameVideoPresetFormat
Convenience function to check if a clip has the same format as a format id
muldivRational
Multiplies and divides a rational number and reduces the result
reduceRational
Reduces a rational number

Type Aliases§

VSFilterFree
VSFilterGetFrame
VSFrameDoneCallback
VSFreeFunctionData
VSGetVapourSynthAPI
VSInitPlugin
VSLogHandler
VSLogHandlerFree
VSPublicFunction