Skip to content

Add VapourSynth Environment and Node Access - #12

Merged
shssoichiro merged 7 commits into
rust-av:mainfrom
BoatsMcGee:vs-get-node-env
Apr 26, 2026
Merged

Add VapourSynth Environment and Node Access#12
shssoichiro merged 7 commits into
rust-av:mainfrom
BoatsMcGee:vs-get-node-env

Conversation

@BoatsMcGee

Copy link
Copy Markdown
Contributor

Adds a new function to return both the Environment and Video Node. This avoids both mutably and immutably borrowing which makes the below example possible. node_modifier is now public to allow updating it after instantiation.

Also allows specifying an output_index in VapoursynthDecoder (defaults to 0, maintaining previous behavior) to select a specific Video Node when a script/environment produces multiple nodes.

Example

let (env, reference_node) = decoder.get_vapoursynth();
let core = get_core(env);
let distorted_node = import_video(core);
let compared_node = compare_nodes(reference_node, distorted_node);

Comment thread src/helpers/vapoursynth.rs Outdated
@shssoichiro
shssoichiro merged commit f4be9cd into rust-av:main Apr 26, 2026
4 checks passed
@BoatsMcGee
BoatsMcGee deleted the vs-get-node-env branch April 26, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants