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. |
23rd January 2009, 21:29 | #1 | Link |
LaTo INV.
Join Date: Jun 2007
Location: France
Posts: 701
|
GradFun2DBmod [v1.5 - Update 2009/12/30]
Code:
######################################################################################## ### ### ### GradFun2DB MOD : function GradFun2DBmod() ### ### ### ### v1.5 by "LaTo INV." ### ### ### ### 30 December 2009 ### ### ### ######################################################################################## ### ### ### /!\ Needed filters : Masktools (v2.0a36), Removegrain (v1.0PR), ### -------------------- GradFun2db (v1.0), AddGrainC(v1.4). ### ### ### USAGE: GradFun2DBmod( thr, thrC, mode, ### str, strC, temp, adapt, custom, ### mask, radius, range, ### show, screenW, screenH ) ### ### ### +--------+ ### | DITHER | ### +--------+ ### ### thr [default: 1.2] ### ------------------ ### GradFun2DB "thr" parameter ### ### thrC [default: thr] ### ------------------- ### GradFun2DB "thrC" parameter ### ### mode [default: 2] ### ----------------- ### Mode for the addition of 16 pixels around the image ### 0 = Off [same as GradFun2DB] ### 1 = AddBorders (speed:+ quality:-) [same as GradFunk] ### 2 = PointResize (speed:+ quality:+) ### 3 = Flip/Stack (speed:- quality:+) [same as GradFunkMirror] ### ### ### +-------+ ### | GRAIN | ### +-------+ ### ### str [default: 0.8] ### ------------------ ### AddGrainC "var" parameter ### ### strC [default: 0.0] ### ------------------- ### AddGrainC "uvar" parameter ### ### temp [default: 50] ### ------------------ ### Strength for temporal stabilization ### -1 = off ### 0 = nervous grain ### .. ### 100 = calm grain ### ### adapt [default: 64] ### ------------------- ### Threshold for luma-adaptative grain ### -1 = off ### 0 = source ### .. ### 255 = invert ### ### custom [default: "empty"] ### ------------------------- ### Use your own grain generator instead of AddGrain ### (temp & adapt parameters are on, set -1 to turn off) ### ### ### +------+ ### | MASK | ### +------+ ### ### mask [default: true] ### -------------------- ### Use adaptative deband mask ### (dither/grain is only applied to areas with banding's susceptibility) ### ### radius [default: 2] ### ------------------- ### Radius for the mask (1 is the fastest, 2-3 are slower) ### ### range [default: 2] ### ------------------ ### Range used in the mask (1-3 are good value) ### ### ### +-------+ ### | DEBUG | ### +-------+ ### ### show [default: false] ### --------------------- ### Show debug clip & informations ### ### screenW [default: 1280] ### ----------------------- ### Screen horizontal resolution (for show clip) ### ### screenH [default: 1024] ### ----------------------- ### Screen vertical resolution (for show clip) ### ######################################################################################## Update 2009.12.30 : GradFun2DBmod v1.5 v1.5: added MOD4 restriction changed script to accept MOD8 clip updated documentation v1.4: changed "temp" parameter (-1=off) updated documentation v1.3: replaced chroma parameter by thrC & strC v1.2: changed int->float for str parameter added custom parameter v1.1: added show parameter added small speed improvements added warning for bad settings fixed small bug with chroma=false v1.0: first public release Last edited by LaTo; 9th January 2010 at 09:57. |
|
|