Are you a regular stikked user? Signup so you can keep track of your pastes!

Untitled

By nitephire (Verified), 1 Year ago, written in AviSynth.
URL http://stikked.com/view/88201322
  1. function PostProcess (clip c, int "threshL", int "threshC", int "threshM", bool "average", string "method1", string "method2", bool "wide", bool "full", bool "show") {
  2.         threshL = default (threshL, 4)
  3.         threshC = default (threshC, 4)
  4.         threshM = default (threshM, 8)
  5.         average = default (average, false)
  6.         method1 = default (method1, "nnedi")
  7.         method2 = default (method2, "mcbob")
  8.         wide = default (wide, false)
  9.         full = default (full, false)
  10.         show = default (show, false)
  11.        
  12.         pp1 =   (method1 == "blend")    ? c.FieldDeinterlace (blend = true) :
  13.                 \       (method1 == "eedi")     ? c.SeparateFields().SelectEven().eedi2() :
  14.                 \       (method1 == "mcbob") ? c.MCBob().SelectEven() :
  15.                 \       c.nnedi2 ()
  16.        
  17.         pp2 =   (average == false)      ? NOP () :
  18.                 \       (method2 == "blend")    ? c.FieldDeinterlace (blend = true) :
  19.                 \       (method2 == "eedi")     ? c.SeparateFields().SelectEven().eedi2() :
  20.                 \       (method2 == "nnedi")    ? c.nnedi2 () :
  21.                 \       c.MCBob().SelectEven()
  22.        
  23.         pp = (average == true) ? mt_average (pp1, pp2) : pp1
  24.  
  25.         mask = c.TCombMask(athreshL = threshL, athreshC = threshC, MI = threshM)
  26.         mask = mask.mt_expand(mode = "both")
  27.         mask = (wide == true) ? mask.mt_expand(mode="both").mt_expand(mode="both").mt_expand(mode="both") : mask
  28.         merged = mt_merge (c, pp, mask)
  29.        
  30.         result = (full == true) ? c.TelecideHints(pp) : c.TelecideHints(merged)
  31.         result = (show == true) ? mask : result
  32.                
  33.         return result
  34. }
  35.  
  36. function MaskedMCBob (clip c, int "threshL", int "threshC", int "threshM", bool "wide", bool "show") {
  37.         threshL = default (threshL, 4)
  38.         threshC = default (threshC, 4)
  39.         threshM = default (threshM, 8)
  40.         wide = default (wide, false)
  41.         show = default (show, false)
  42.        
  43.         pp = c.MCBob().SelectEven()
  44.  
  45.         mask = c.TCombMask(athreshL = threshL, athreshC = threshC, MI = threshM)
  46.         mask = mask.mt_expand(mode = "both")
  47.         mask = (wide == true) ? mask.mt_expand(mode="both").mt_expand(mode="both") : mask
  48.         merged = mt_merge (c, pp, mask)
  49.        
  50.         result = (show == true) ? mask : merged
  51.                
  52.         return result
  53. }
  54.  
  55.  

Reply to "Untitled"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.