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. |
19th May 2009, 01:22 | #2 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
After looking at the source code for it, all it appears to be capable of doing is to apply a typical gaussian blur or the normal [-1 2 -1] sharpening kernel blended with the original image. Try sharpen(), I think it works about the same really. I am now officially disappointed after looking at the code.
I was going to add it to my FFMS2 package but now it seems completely redundant...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 19th May 2009 at 01:28. |
19th May 2009, 11:50 | #3 | Link |
masktools2 (ab)user
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
|
Code:
# SWScalerSharpen() v1.00 (28/08/08) # - a function that provides easy access to ffdshow's swscaler sharpener # # Requierments: # ffavisynth and YV12/YUY2/RGB colorspace # # Parameters: # lsharp (integer) - swscaler luma sharpnening strength (32) # csharp (integer) - swscaler chroma sharpnening strength (32) # ssw (integer) - supersample factor horizontally (1) # ssh (integer) - supersample factor vertically (1) function SWScalerSharpen(clip c, int "lsharp", int "csharp", int "ssw", int "ssh") { lsharp = Default(lsharp,32) csharp = Default(csharp,32) ssw = Default(ssw,1) ssh = Default(ssh,1) Assert(ssh>=1 && ssw>=1, "SWScalerSharpen(): ssw and ssh cannot be less than one") main = (ssw==1 && ssh==1) ? c.ffdshow(options="xsharpen=1,sharpenMethod=5,mplayerSharpLuma="+String(lsharp)+",mplayerSharpChroma="+String(csharp)) : \ c.LanczosResize(c.width*ssw,c.height*ssh). \ ffdshow(options="xsharpen=1,sharpenMethod=5,mplayerSharpLuma="+String(lsharp)+",mplayerSharpChroma="+String(csharp)). \ LanczosResize(c.width,c.height) return main } # Changelog: # 28/08/2008 v1.00 # - initial version
__________________
My x264 builds (win32 only up to rev965) and useless AviSynth functions -- use at your own risk Last edited by martino; 19th May 2009 at 11:56. |
19th May 2009, 14:59 | #4 | Link | |
Registered User
Join Date: Feb 2004
Posts: 743
|
Quote:
Richard photorecall.net |
|
Tags |
ffdshow, sharpening, swscaler |
|
|