View Single Post
Old 7th March 2015, 07:40   #46  |  Link
anonymlol
Registered User
 
Join Date: Apr 2013
Posts: 25
Here you go:

Code:
DGSource("src.dgi")
mrdaa2(resharpen=0)
flash3kyuu_deband_f3kdb(grainY=0, grainC=0, output_mode=2, output_depth=16)
mrdaa2 is a slightly modified version of MrdaaLame().

Code:
# modified version of mandarinka's MrdaaLame (http://forum.doom9.org/showthread.php?t=167480) by anonymlol
# Based on Daa: Anti-aliasing with contra-sharpening by Didée, modded by Terranigma for nnedi and by thetoof for merge
# fixed chroma shift by OnDeed

function Mrdaa2(clip c, float "resharpen", bool "OpenCL") {

    resharpen = Default(resharpen, 0)
    OpenCL    = Default(OpenCL, true)

    dblshift     = (OpenCL) ? c.nnedi3x(field=1, dh=true).fturnright().nnedi3x(field=1, dh=true).fturnleft() 
                          \ : c.nnedi3(field = 1,dh=true).fturnright().nnedi3(field = 1,dh=true).fturnleft()
    dbl          = dblshift.Spline36Resize(c.width,c.height,-0.5,-0.5,c.width*2,c.height*2).MergeChroma(dblshift.Spline36Resize(c.width,c.height,-1.0,-1.0,c.width*2,c.height*2))
    dblD         = mt_makediff(c,dbl,U=3,V=3)
    shrpD        = mt_makediff(dbl,dbl.blur(resharpen*0.2,MMX=false),U=3,V=3)
    DD           = shrpD.repair(dblD,13)
    
    return dbl.mt_adddiff(DD,U=3,V=3) 
}
edit: Got some errors in cmd this time:
Seems like the error is somewhere in
Code:
    dblshift     = (OpenCL) ? c.nnedi3x(field=1, dh=true).fturnright().nnedi3x(field=1, dh=true).fturnleft() 
                          \ : c.nnedi3(field = 1,dh=true).fturnright().nnedi3(field = 1,dh=true).fturnleft()
I'll remove the condition for now and use it with nnedi3ocl as default. But I'd appreciate it if someone could explain to me why it crashes during that condition.

edit2: I'll continue with this issue in the nnedi3 ocl thread. Thanks for your help so far.

Last edited by anonymlol; 7th March 2015 at 13:29.
anonymlol is offline   Reply With Quote