Esempio n. 1
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(System.Globalization.CultureInfo.InvariantCulture).Contains("undot"))
                    {
                        strPath = "LoadPlugin(\"" + Path.Combine(MainForm.Instance.Settings.AvisynthPluginsPath, "UnDot.dll") + "\")\r\n";
                    }
                    else if (p.Tag.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture).Contains("fluxsmoothst"))
                    {
                        strPath = "LoadPlugin(\"" + Path.Combine(MainForm.Instance.Settings.AvisynthPluginsPath, "FluxSmooth.dll") + "\")\r\n";
                    }
                    else if (p.Tag.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture).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);
        }
Esempio n. 2
0
 public AviSynthSettings(string template, ResizeFilterType resizeMethod, bool resize,
                         DenoiseFilterType denoiseMethod, bool denoise, bool mpeg2deblock, bool colourCorrect, mod16Method method)
 {
     this.Template      = template;
     this.ResizeMethod  = resizeMethod;
     this.DenoiseMethod = denoiseMethod;
     this.Deinterlace   = deinterlace;
     this.Denoise       = denoise;
     this.IVTC          = ivtc;
     this.MPEG2Deblock  = mpeg2deblock;
     this.ColourCorrect = colourCorrect;
     this.Mod16Method   = method;
 }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
 public AviSynthSettings()
 {
     this.Template               = "<input>\r\n<deinterlace>\r\n<crop>\r\n<resize>\r\n<denoise>\r\n"; // Default -- will act as it did before avs profiles
     this.resize                 = true;
     this.resizeMethod           = ResizeFilterType.Lanczos;                                          // Lanczos
     this.preferAnimeDeinterlace = false;
     this.denoise                = false;
     this.denoiseMethod          = 0; // UnDot
     this.mpeg2deblock           = false;
     this.colourCorrect          = true;
     this.mod16Method            = mod16Method.none;
     this.modValueUsed           = modValue.mod8;
     this.dss2   = false;
     this.upsize = false;
     this.acceptableAspectError = 1;
     this.nvResize = false;
 }
Esempio n. 5
0
        public static string GetDenoiseLines(bool denoise, DenoiseFilterType type)
        {
            string denoiseLines = "#denoise";

            if (denoise)
            {
                EnumProxy p = EnumProxy.Create(type);
                if (p.Tag != null)
                {
                    denoiseLines = string.Format(p.Tag + " # " + p);
                }
                else
                {
                    denoiseLines = "#denoise - " + p;
                }
            }
            return(denoiseLines);
        }
Esempio n. 6
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;
 }
Esempio n. 7
0
 public AviSynthSettings(string template, ResizeFilterType resizeMethod, bool resize, bool upsize, DenoiseFilterType denoiseMethod,
                         bool denoise, bool mpeg2deblock, bool colourCorrect, mod16Method method, bool dss2, modValue modValueUsed, decimal acceptableAspectError)
 {
     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;
     this.Upsize                = upsize;
     this.ModValue              = modValueUsed;
     this.acceptableAspectError = acceptableAspectError;
 }