Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
4th September 2017, 07:45 | #21 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks, I need automatic loading though for my use case, anything else is suboptimal, now it does xcopy the files to the sys dir which in my opinion is bad practice. I can make a request at pinterf's FFT3DFilter github tracker asking if FFT3DFilter could load the DLLs if they are located in the same dir then FFT3DFilter.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
4th September 2017, 08:02 | #22 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Not a bad idea. This is pretty easy - Get the full path to fft3dfilter with GetCurrentDirectory() and use a loadlibrary() call with the full path in addition to just "LoadLibrary("libfftw3f-3.dll")".
Last edited by Groucho2004; 4th September 2017 at 08:16. |
4th September 2017, 12:25 | #23 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
The proper solution is to use LoadLibraryEx() and altered search paths.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
4th September 2017, 16:51 | #25 | Link | |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Quote:
Replacing the Avs+ LoadLibrary call with LoadLibraryEx using LOAD_WITH_ALTERED_SEARCH_PATH might fix the problem without the silly process-wide loading directory juggling if the search order stuff persists for the loaded DLL after LoadLibrary returns, but I have no idea if that is the case. I think I would expect that it doesn't, but I haven't found a satisfactory answer. For whatever reason, VS went with LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR instead. There's nothing that says the current directory is the plugins folder. You can actually get a DLL's own path though using some other mildly exotic win32 API gymnastics (I resorted to it in assrender once upon a time) but it's silly. Don't do that, fix the loading side instead. Last edited by TheFluff; 4th September 2017 at 16:58. |
|
4th September 2017, 17:04 | #26 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
This would work to get the fully qualified path to the plugin when called from the plugin (I assume that's what you meant by "You can actually get a DLL's own path though using some other mildly exotic win32 API gymnastics"): Code:
HMODULE GetCurrentModule() { HMODULE hModule = NULL; GetModuleHandleEx( GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCTSTR)GetCurrentModule, &hModule); return hModule; } HMODULE hm = GetCurrentModule(); char szPath[MAX_PATH + 1]; GetModuleFileName(hm, szPath, MAX_PATH); Last edited by Groucho2004; 4th September 2017 at 17:55. |
|
4th September 2017, 17:10 | #27 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@TheFluff
Not only staxrip loads avs but also the encoders, it might be possible to configure the encoder process, setting working dir or path variable but this would be a great ugly mess I believe, doesn't feel right, I would even consider to examine it.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
4th September 2017, 23:18 | #28 | Link | |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Quote:
Yes that's what I'm saying, it should be fixed in Avisynth itself. No point in trying to work around it on the client side. |
|
2nd July 2018, 15:27 | #30 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
New build
Download FFT3DFilter 2.5 Code:
Change log FFT3DFilter v2.5 (20180702) - 32bit Float YUV: Chroma center to 0.0 instead of 0.5, to match new Avisynth+ r2728- FFT3DFilter v2.4 (20170608) - some inline asm (not all) ported to simd intrisics, helps speedup x64 mode, but some of them faster also on x86. - intrinsics bt=0 - intrinsics bt=2, degrid=0, pfactor=0 - intrinsics bt=3 sharpen=0/1 dehalo=0/1 - intrinsics bt=3 - Adaptive MT settings for Avisynth+: MT_SERIALIZED for bt==0 (temporal), MT_MULTI_INSTANCE for others - Copy Alpha plane if exists - reentrancy checks against bad multithreading usage Note: for properly operating in MT_SERIALIZED mode in Avisynth MT, please use Avs+ r2504 or better. FFT3DFilter v2.3 (20170221) - apply current avs+ headers - 10-16 bits and 32 bit float colorspace support in AVS+ - Planar RGB support - look for libfftw3f-3.dll first, then fftw3.dll - inline asm ignored on x64 builds - pre-check: if plane to process for greyscale is U and/or V return original clip - auto register MT mode for avs+: MT_SERIALIZED Previous versions by Fizick and martin53 |
5th July 2018, 12:36 | #33 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Perhaps you could try that yourself, and tell us all the result {In ordinary Sharpen(), 1.0 is [I think] the max}.
EDIT: You dont need to bother Pinterf with questions that you could easily verify yourself, P's time is way more valuable than yours
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 5th July 2018 at 12:40. |
8th November 2018, 17:56 | #36 | Link |
Registered User
Join Date: Dec 2015
Posts: 309
|
A posible problem with fft3dfilter and fftw lib:
https://forum.doom9.org/showthread.p...44#post1856944 |
8th November 2018, 18:33 | #38 | Link | ||
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
For example: Quote:
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 8th November 2018 at 18:52. |
||
|
|