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;
        }
Exemple #2
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;
 }
 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;
 }
Exemple #4
0
        /// <summary>
        /// calculates the mod value
        /// </summary>
        /// <param name="modMethod">the selected mod method</param>
        /// <param name="modMethod">the selected mod value</param>
        /// <param name="signalAR">whether or not we're going to signal the aspect ratio</param>
        /// <returns>the mod value</returns>
        public static int GetModValue(modValue modValue, mod16Method modMethod, bool signalAR)
        {
            int mod = 16;

            if (!signalAR || modMethod != mod16Method.nonMod16)
            {
                switch (modValue)
                {
                case modValue.mod8: mod = 8; break;

                case modValue.mod4: mod = 4; break;

                case modValue.mod2: mod = 2; break;
                }
            }
            else
            {
                mod = 1;
            }

            return(mod);
        }
 public AviSynthSettings(string template, ResizeFilterType resizeMethod, bool resize,
                         DenoiseFilterType denoiseMethod, bool denoise, bool mpeg2deblock, bool colourCorrect, mod16Method method)
 {
     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;
 }
Exemple #6
0
        public static bool autocrop(out CropValues cropValues, IVideoReader reader, bool signalAR, mod16Method cropMethod, modValue mValue)
        {
            cropValues = Autocrop.autocrop(reader);

            if (signalAR)
            {
                if (cropMethod == mod16Method.overcrop)
                {
                    ScriptServer.overcrop(ref cropValues, mValue);
                }
                else if (cropMethod == mod16Method.mod4Horizontal)
                {
                    ScriptServer.cropMod4Horizontal(ref cropValues);
                }
                else if (cropMethod == mod16Method.undercrop)
                {
                    ScriptServer.undercrop(ref cropValues, mValue);
                }
            }

            if (cropValues.left < 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }