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. |
3rd July 2009, 23:27 | #42 | Link |
Registered User
Join Date: May 2008
Posts: 35
|
SEt
Thank you for your effort. I have ported this plug-in to GCC. Impemented into my CoreVF framework, under MacOS X env. It runs well. Great! One thing, Warp() function seems to check CPU is SSSE3 ready every line inside asm, is this required? I have split SSSE3 loop and SSE2 loop, seems to run well. It could be faster. (I am not sure, but original code does not run well under CoreDuo - no SSSE3 support; Of course not original, but gas rewritten code though. Splitting loops works well both on Core2Duo and CoreDuo) |
4th July 2009, 03:41 | #43 | Link |
Registered User
Join Date: Aug 2007
Posts: 374
|
There should be no problem with that conditional jump - any modern cpu should be able to always correctly predict it so it will consume no time at all. And even mispredicted once per line is very small cost. What you are observing might be cache related - it has far more serious impact on performance. But of course it's only a theory.
|
21st July 2009, 20:13 | #50 | Link |
Advanced Blogging
Join Date: May 2009
Posts: 480
|
Mapping of parameters to original aws
In the awarpsharp.txt file included with your filter, you mention that the mapping between "thresh" in aWarpSharp2 and aWarpSharp is "aWarpSharp2 value * 256" but the aWarpSharp documentation says that thresh goes from 0.0 to 1.0. How does this work?
Edit: Oh, sorry, read the equation the wrong away around. Sorry about that. Someone can delete this post. Edit2: I am getting an access violation (reading from 0x0 at 0xfaa1415) when setting blur to "1". The documentation says that values from 0 to 100 are supported. Edit3: Oh wait, that's just a mod16 error. Last edited by thewebchat; 21st July 2009 at 20:59. |
26th July 2009, 21:55 | #52 | Link |
Registered User
Join Date: Aug 2007
Posts: 374
|
As requested, i've updated Toon to use aWarpSharp2 instead of aWarpSharp. As i don't see the sources - made it by patching the dll, so no optimizations or bugfixes in this v1.1.
lych_necross, YUY2 is very inconvenient format for vectorized processing (MMX/SSE) while YV16 has no such problems and adding its support to YV12 code is almost trivial. |
27th July 2009, 07:16 | #53 | Link |
ZZZzzzz...
Join Date: Jan 2007
Location: USA
Posts: 303
|
Oh, I didn't know that. Thats cool as I usually use YV12 anyways.
P.S. SWEET!!! new toon.dll!! I think Soulhunter originally posted toon.dll, so he would probably have the sources. Last edited by lych_necross; 27th July 2009 at 07:22. Reason: added ps |
28th July 2009, 14:39 | #55 | Link | |
Bored...
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
|
Quote:
...so he cant post here anymore ...so I do it for him But, the aWarpSharp version in his dumpster (2nd Google result when searching for aWarpSharp.dll) should already contain the fixed version I mentioned in my last post... So, is there really a reason to update Toon.dll besides the minimal (the old aWarpSharp already runs way above realtime, doesn't it?) speed gain? |
|
30th April 2010, 20:09 | #57 | Link |
Registered User
Join Date: Feb 2005
Location: Ukraine, Lviv
Posts: 121
|
Hi guys.
I have VD crash with this script: Code:
s=AVISource("h:\dt_314.avi") a1=trim(s,0,13566).crop(10,0,-6,0) a2=trim(s,13567,22584).crop(6,0,-10,0) a3=trim(s,22585,32818).crop(8,0,-8,0) a1++a2++a3 mergechroma(awarpsharp2(blur=16,thresh=128, type=1)) Code:
a1=AVISource("h:\dt_314.avi").mergechroma(awarpsharp2(blur=16,thresh=128, type=1)).trim(0,13566).crop(10,0,-6,0) a2=AVISource("h:\dt_314.avi").mergechroma(awarpsharp2(blur=16,thresh=128, type=1)).trim(13567,22584).crop(6,0,-10,0) a3=AVISource("h:\dt_314.avi").mergechroma(awarpsharp2(blur=16,thresh=128, type=1)).trim(22585,32818).crop(8,0,-8,0) a1++a2++a3 In same with simple usage like this: Code:
AVISource("h:\dt_314.avi") mergechroma(awarpsharp2(blur=16,thresh=128, type=1)) Last edited by Great Dragon; 30th April 2010 at 20:12. |
30th April 2010, 20:33 | #58 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
You need to do it like this: Code:
AVISource("h:\dt_314.avi") mergechroma(awarpsharp2(blur=16,thresh=128, type=1)) a1=trim(0,13566).crop(10,0,-6,0) a2=trim(13567,22584).crop(6,0,-10,0) a3=trim(22585,32818).crop(8,0,-8,0) a1++a2++a3 |
|
30th April 2010, 20:43 | #59 | Link | |
契約者
Join Date: Jun 2008
Posts: 1,576
|
This script crashes for me even without aWarpsharp2.
Quote:
EDIT: oops, quoted wrong script. now is fine. Last edited by Keiyakusha; 30th April 2010 at 20:46. |
|
|
|