public AviSynthSettings(string template, ResizeFilterType resizeMethod, bool resize,
			DenoiseFilterType denoiseMethod, bool denoise, bool mpeg2deblock, bool colourCorrect, mod16Method method, bool dss2)
        {
            this.Template = template;
            this.Resize = resize;
            this.ResizeMethod = resizeMethod;
            this.DenoiseMethod = denoiseMethod;
            this.Deinterlace = deinterlace;
            this.Denoise = denoise;
            this.IVTC = ivtc;
            this.MPEG2Deblock = mpeg2deblock;
            this.ColourCorrect = colourCorrect;
            this.Mod16Method = method;
            this.DSS2 = dss2;
        }
Example #2
0
 public static string GetDenoiseLines(bool denoise, DenoiseFilterType type)
 {
     string denoiseLines = "#denoise";
     string strPath = "";
     if (denoise)
     {
         EnumProxy p = EnumProxy.Create(type);
         if (p.Tag != null)
         {
             if (p.Tag.ToString().ToLower().Contains("undot"))
                 strPath = "LoadPlugin(\"" + Path.Combine(MainForm.Instance.Settings.AvisynthPluginsPath, "UnDot.dll") + "\")\r\n";
             else if (p.Tag.ToString().ToLower().Contains("fluxsmoothst"))
                 strPath = "LoadPlugin(\"" + Path.Combine(MainForm.Instance.Settings.AvisynthPluginsPath, "FluxSmooth.dll") + "\")\r\n";
             else if (p.Tag.ToString().ToLower().Contains("convolution3d"))
                 strPath = "LoadPlugin(\"" + Path.Combine(MainForm.Instance.Settings.AvisynthPluginsPath, "Convolution3DYV12.dll") + "\")\r\n";
             denoiseLines = string.Format(strPath + p.Tag + " # " + p);
         }
         else
             denoiseLines = "#denoise - " + p;
     }
     return denoiseLines;
 }