Skip to content

Commit

Permalink
vstrt/vs_tensorrt.cpp: always configure plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Feb 26, 2024
1 parent 5f65ca4 commit 02ddd92
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vstrt/vs_tensorrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ VS_EXTERNAL_API(void) VapourSynthPluginInit(
VSRegisterFunction registerFunc,
VSPlugin *plugin
) noexcept {

configFunc(
"io.github.amusementclub.vs_tensorrt", "trt",
"TensorRT ML Filter Runtime",
VAPOURSYNTH_API_VERSION, 1, plugin
);

int ver = getInferLibVersion(); // must ensure this is the first nvinfer function called
#ifdef _WIN32
if (ver == 0) { // a sentinel value, see dummy function in win32.cpp.
Expand All @@ -496,12 +503,6 @@ VS_EXTERNAL_API(void) VapourSynthPluginInit(

myself = plugin;

configFunc(
"io.github.amusementclub.vs_tensorrt", "trt",
"TensorRT ML Filter Runtime",
VAPOURSYNTH_API_VERSION, 1, plugin
);

registerFunc("Model",
"clips:clip[];"
"engine_path:data;"
Expand Down

0 comments on commit 02ddd92

Please sign in to comment.