feisty2
12th September 2014, 12:18
I wanna port a lut written by Didee in 2011 to 16bpc precision, so I can use it on 16 bpc clips
original script
mt_lutxy(o,o.removegrain(20),"x x y - abs 4 / 1 4 / ^ 4 * 1.51 * x y - x y - abs 1.001 + / * +",U=2,V=2)
#http://forum.doom9.org/showthread.php?t=163598#
here's my try
#16bpc input clip#
#16bpc sharp clip#
#str=1.51#
Sharpdif = Dither_sub16 (sharp, input, dif=True, y=3, u=3, v=3)
Dif = Dither_lut16 (Sharpdif, "4 "+String (str)+" * x 32768 - abs 4 / 1 4 / ^ * x 32768 - x 32768 - abs / 256.256 + * 32768 +", y=3, u=3, v=3)
input.Dither_add16 (Dif, dif=True, y=3, u=3, v=3)
somehow it didn't work as I expected, things get totally messed up, what did I do wrong? thx in advance
:stupid:
original script
mt_lutxy(o,o.removegrain(20),"x x y - abs 4 / 1 4 / ^ 4 * 1.51 * x y - x y - abs 1.001 + / * +",U=2,V=2)
#http://forum.doom9.org/showthread.php?t=163598#
here's my try
#16bpc input clip#
#16bpc sharp clip#
#str=1.51#
Sharpdif = Dither_sub16 (sharp, input, dif=True, y=3, u=3, v=3)
Dif = Dither_lut16 (Sharpdif, "4 "+String (str)+" * x 32768 - abs 4 / 1 4 / ^ * x 32768 - x 32768 - abs / 256.256 + * 32768 +", y=3, u=3, v=3)
input.Dither_add16 (Dif, dif=True, y=3, u=3, v=3)
somehow it didn't work as I expected, things get totally messed up, what did I do wrong? thx in advance
:stupid: