Skip to content

Commit

Permalink
vsncnn/vs_ncnn.cpp: report ncnn version
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Sep 15, 2022
1 parent 89f488e commit b0adf9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vsncnn/vs_ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,11 @@ VS_EXTERNAL_API(void) VapourSynthPluginInit(
ONNX_NAMESPACE::LAST_RELEASE_VERSION, -1, paReplace
);

vsapi->propSetData(
out, "ncnn_version",
NCNN_VERSION_STRING, -1, paReplace
);

vsapi->propSetData(out, "path", vsapi->getPluginPath(myself), -1, paReplace);
};
registerFunc("Version", "", getVersion, nullptr, plugin);
Expand Down

0 comments on commit b0adf9f

Please sign in to comment.