From 601d50546828a53706c144d50aaadefe2a408951 Mon Sep 17 00:00:00 2001 From: Asd-g <65298684+Asd-g@users.noreply.github.com> Date: Thu, 15 Apr 2021 02:02:33 +0300 Subject: [PATCH] Set MT mode: MT_MULTI_INSTANCE --- Changelog | 3 +++ src/hqdn3d.cpp | 4 ++++ src/hqdn3d.rc | 8 ++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index d634cef..30d57ab 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +hqdn3d 1.0.1 (2021-4-15): +Set MT mode: MT_MULTI_INSTANCE. + hqdn3d 1.0.0 (2021-4-12): Add parameters y, u, v. Add support for all YUV planar formats. diff --git a/src/hqdn3d.cpp b/src/hqdn3d.cpp index 0541faa..83d3892 100644 --- a/src/hqdn3d.cpp +++ b/src/hqdn3d.cpp @@ -50,6 +50,10 @@ class hqdn3d : public GenericVideoFilter public: hqdn3d(PClip _child, double LumSpac, double ChromSpac, double LumTmp, double ChromTmp, int restart, int y, int u, int v, IScriptEnvironment* env); + int __stdcall SetCacheHints(int cachehints, int frame_range) override + { + return cachehints == CACHE_GET_MTMODE ? MT_MULTI_INSTANCE : 0; + } ~hqdn3d(); PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env); }; diff --git a/src/hqdn3d.rc b/src/hqdn3d.rc index ac428f8..b2adf5a 100644 --- a/src/hqdn3d.rc +++ b/src/hqdn3d.rc @@ -2,8 +2,8 @@ #include VS_VERSION_INFO VERSIONINFO -FILEVERSION 1,0,0,0 -PRODUCTVERSION 1,0,0,0 +FILEVERSION 1,0,1,0 +PRODUCTVERSION 1,0,1,0 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS 0x0L FILEOS VOS__WINDOWS32 @@ -16,11 +16,11 @@ BEGIN BEGIN VALUE "Comments", "High Quality DeNoise 3D filter." VALUE "FileDescription", "hqdn3d for AviSynth 2.6 / AviSynth+" - VALUE "FileVersion", "1.0.0" + VALUE "FileVersion", "1.0.1" VALUE "InternalName", "hqdn3d" VALUE "OriginalFilename", "hqdn3d.dll" VALUE "ProductName", "hqdn3d" - VALUE "ProductVersion", "1.0.0" + VALUE "ProductVersion", "1.0.1" END END BLOCK "VarFileInfo"