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. |
|
|
Thread Tools | Search this Thread | Display Modes |
16th December 2007, 23:20 | #41 | Link |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
He sent me the source of his plugin (the plugin itself is included):
http://www.wilbertdijkhof.com/mg262/Average_v11.zip I didn't test it myself, so, test it as much as your can. He also sent me some other things, but i will post about that in an other thread. Last edited by Wilbert; 6th December 2009 at 14:40. |
27th December 2007, 21:52 | #43 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Crash
The old 2005 version (73kB dll) works on my AthlonXP.
The new one (102kB dll) crashes. In debug mode it writes: Unhandled exception at 0x01e97151 (Average.dll) in VirtualDub.exe: 0xC0000005: Access violation reading location 0x00000000. It crashes somewhere after leaving averageplane_P3 called by WeightedAverage in averageplane_P3(PLANAR_Y, env); when coming back to WeightedAverage...it crashed somewhere around the bold spot: Code:
...end of averageplane_P3 99: } 100: } 01E9712F push edx 01E97130 mov ecx,ebp 01E97132 push eax 01E97133 lea edx,[ (1E97158h)] 01E97139 call @ILT+2455(@_RTC_CheckStackVars@8) (1E7C99Ch) 01E9713E pop eax 01E9713F pop edx 01E97140 pop edi 01E97141 pop esi 01E97142 mov ecx,dword ptr [ebp-4] 01E97145 xor ecx,ebp 01E97147 call @ILT+640(@__security_check_cookie@4) (1E7C285h) 01E9714C mov esp,ebp 01E9714E pop ebp 01E9714F mov esp,ebx 01E97151 pop ebx 01E97152 ret 8 Code:
warning C4731: 'WeightedAverage::averageplane_P4' : frame pointer register 'ebx' modified by inline assembly code |
27th December 2007, 23:36 | #45 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
well, Wilbert asked me to compile it, but he forget to ask me to test it
i confirm the bug. I tested it right now only push ebx ... pop ebx will be enough I also provided him the version compiled by VC7.1 (VC 2003 tollkit), it works fine with same code (without the patch). http://forum.doom9.org/showthread.php?t=100374 Last edited by Fizick; 27th December 2007 at 23:45. |
28th December 2007, 15:03 | #46 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
I made function AverageM(clip, maskclip, clip, maskclip....) based on Average.
However I have one problem (it is similar as in MaskedMerge in MaskTools): I cannot deliver full range of mask values [0,256] but only [0,255] in maskclips. I have folowing options and I don't know what to do: 1) divide by 256 at the end...cons:cannot have full scale in one maskclip 2) divide by 255 at the end...cons:cannot do fifty-fifty for example (averaging pixels from two clips weighted both by 128 results in x=(a*128+b*128)/255=(a+b)/1.99 instead of (a+b)/2 3) make the weightscale [0,128]... cons: reduced precision What is your opinion on this? |
28th April 2008, 01:02 | #54 | Link | |
Registered User
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
|
Quote:
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007. [ Home page | Download page ] |
|
28th April 2008, 18:58 | #56 | Link | |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Quote:
You missed it? How I can send it to you?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
|
28th April 2008, 19:01 | #57 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
ttttt
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
4th December 2009, 12:42 | #60 | Link |
Registered User
Join Date: Jun 2009
Location: UK
Posts: 263
|
Wilbert's links appear to be dead now.
Please, oh gods of AVIsynth, do not allow this wonderful, really useful filter to die out. Could it not be incorporated into the AVIsynth core filter set? It really is that useful! |
|
|