当前位置: 首页>>代码示例>>C#>>正文


C# Massive.Clone方法代码示例

本文整理汇总了C#中XviD4PSP.Massive.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# Massive.Clone方法的具体用法?C# Massive.Clone怎么用?C# Massive.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XviD4PSP.Massive的用法示例。


在下文中一共展示了Massive.Clone方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Normalize

        public Normalize(Massive mass)
        {
            this.InitializeComponent();
            this.Owner = App.Current.MainWindow;
            this.m = mass.Clone();

            //колличество обрабатываемых фреймов
            int accuratepr = Convert.ToInt32(m.volumeaccurate.Replace("%", ""));
            vtrim = Calculate.GetProcentValue(m.inframes, accuratepr);
            if (vtrim < 10000) vtrim = Math.Min(10000, m.inframes);

            //забиваем
            prCurrent.Maximum = vtrim;
            prCurrent.ToolTip = Languages.Translate("Current progress");
            Title = Languages.Translate("Normalizer");
            text_info.Content = Languages.Translate("Please wait... Work in progress...");

            //BackgroundWorker
            CreateBackgroundWorker();
            worker.RunWorkerAsync();

            //Сворачиваем окно, если программа минимизирована или свернута в трей
            if (!Owner.IsVisible || Owner.WindowState == WindowState.Minimized)
            {
                this.WindowState = WindowState.Minimized;
                this.SizeToContent = System.Windows.SizeToContent.Manual;
                this.StateChanged += new EventHandler(Window_StateChanged);
                this.Name = "Hidden";
            }

            ShowDialog();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:32,代码来源:Normalizer.xaml.cs

示例2: FFHUFF

        public FFHUFF(Massive mass, VideoEncoding VideoEncWindow, MainWindow parent)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.p = parent;
            this.root_window = VideoEncWindow;

            //прогружаем fourcc
            combo_fourcc.Items.Add("HFYU");
            combo_fourcc.Items.Add("FFVH");

            //прогружаем colorspace
            combo_color.Items.Add("YV12");
            combo_color.Items.Add("YUY2");
            combo_color.Items.Add("RGB32");

            //предиктор
            combo_predictor.Items.Add("Left");
            combo_predictor.Items.Add("Plane");
            combo_predictor.Items.Add("Median");

            LoadFromProfile();
            SetToolTips();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:25,代码来源:FFHUFF.xaml.cs

示例3: QuickTimeAAC

        public QuickTimeAAC(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            //--check    Show library versions and exit
            //--formats  Show available AAC formats and exit

            combo_mode.Items.Add("CBR");             //-c, --cbr <bitrate>   AAC CBR mode / bitrate
            combo_mode.Items.Add("ABR");             //-a, --abr <bitrate>   AAC ABR mode / bitrate
            combo_mode.Items.Add("Constrained VBR"); //-v, --cvbr <bitrate>  AAC Constrained VBR mode / bitrate
            combo_mode.Items.Add("True VBR");        //-V, --tvbr <quality>  AAC True VBR mode / quality [0-127] (AAC-HE не поддерживается)
            combo_mode.Items.Add("Lossless (ALAC)"); //-A, --alac            ALAC encoding mode

            combo_accuracy.Items.Add("0 - Fast");
            combo_accuracy.Items.Add("1");
            combo_accuracy.Items.Add("2 - Slow");

            combo_aac_profile.Items.Add("AAC-LC");
            combo_aac_profile.Items.Add("AAC-HE");

            //Предупреждение о неточности битрейта
            combo_bitrate.Tag = Languages.Translate("Do not expect that selected bitrate will be strictly observed by the encoder!") + "\r\n" +
                Languages.Translate("The actual value will varies with encoding mode (ABR/CBR/CVBR), profile (LC/HE), sample rate and number of channels.") + "\r\n" +
                Languages.Translate("Click on \"Bitrate\" label to get detailed information about all supported combinations.");

            text_mode.Content = Languages.Translate("Encoding mode") + ":";
            text_accuracy.Content = Languages.Translate("Accuracy") + ":";

            LoadFromProfile();
        }
开发者ID:BrunoReX,项目名称:xvid4psp,代码行数:33,代码来源:QAAC.xaml.cs

示例4: FFV1

        public FFV1(Massive mass, VideoEncoding VideoEncWindow, MainWindow parent)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.p = parent;
            this.root_window = VideoEncWindow;

            //прогружаем colorspace
            combo_color.Items.Add("YV12");
            combo_color.Items.Add("YUY2");
            combo_color.Items.Add("RGB32");
            combo_color.Items.Add("YUV410P");
            combo_color.Items.Add("YUV411P");
            combo_color.Items.Add("YUV444P");

            //codertype
            combo_codertype.Items.Add("VLC");
            combo_codertype.Items.Add("AC");

            //context model
            combo_contextmodel.Items.Add("Small");
            combo_contextmodel.Items.Add("Large");

            LoadFromProfile();
            SetToolTips();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:27,代码来源:FFV1.xaml.cs

示例5: AviSynthEncoder

 public AviSynthEncoder(Massive mass)
 {
     m = mass.Clone();
     this.script = m.script;
     AudioStream stream = (AudioStream)m.outaudiostreams[0];
     this.outfilepath = stream.audiopath;
 }
开发者ID:BrunoReX,项目名称:xvid4psp,代码行数:7,代码来源:AviSynthEncoder.cs

示例6: NeroAAC

        public NeroAAC(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            combo_mode.Items.Add("CBR");
            combo_mode.Items.Add("VBR");
            combo_mode.Items.Add("ABR");
            combo_mode.Items.Add("ABR 2-Pass");

            combo_aac_profile.Items.Add("Auto");
            combo_aac_profile.Items.Add("AAC-LC");
            combo_aac_profile.Items.Add("AAC-HE");
            combo_aac_profile.Items.Add("AAC-HEv2");

            this.num_period.ValueChanged += new RoutedPropertyChangedEventHandler<decimal>(num_period_ValueChanged);
            num_period.ToolTip = "2-Pass encoding bitrate averaging period, milliseconds. \r\nDefault and recommended: 0 (Auto).\r\n" +
            "\r\nWARNING! Low values may produce crash of neroAacEnc.exe!";

            text_mode.Content = Languages.Translate("Encoding mode") + ":";

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:25,代码来源:NeroAAC.xaml.cs

示例7: FMP2

        public FMP2(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:9,代码来源:FMP2.xaml.cs

示例8: LameMP3

        public LameMP3(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            combo_mode.Items.Add("CBR");
            combo_mode.Items.Add("VBR");
            combo_mode.Items.Add("ABR");

            combo_channels_mode.Items.Add("Auto");                //default is (j) or (s) depending on bitrate
            combo_channels_mode.Items.Add("Stereo");              //"-m s" (s)imple = force LR stereo on all frames
            combo_channels_mode.Items.Add("Joint Stereo");        //"-m j" (j)oint  = joins the best possible of MS and LR stereo
            combo_channels_mode.Items.Add("Forced Joint Stereo"); //"-m f" (f)orce  = force MS stereo on all frames.
            combo_channels_mode.Items.Add("Mono");                //"-m m" (d)ual-mono, (m)ono
            combo_channels_mode.ToolTip = "Auto - auto select (depending on bitrate), default\r\n" +
                "Stereo - force LR stereo on all frames\r\n" +
                "Joint Stereo - joins the best possible of MS and LR stereo\r\n" +
                "Forced Joint Stereo - force MS stereo on all frames\r\n" +
                "Mono - encode as mono";

            combo_quality.Items.Add("0 - Best Quality");
            combo_quality.Items.Add("1");
            combo_quality.Items.Add("2 - Recommended");
            combo_quality.Items.Add("3");
            combo_quality.Items.Add("4");
            combo_quality.Items.Add("5 - Good Speed");
            combo_quality.Items.Add("6");
            combo_quality.Items.Add("7 - Very Fast");
            combo_quality.Items.Add("8");
            combo_quality.Items.Add("9 - Poor Quality");
            combo_quality.ToolTip = "Noise shaping & psycho acoustic algorithms\r\n" +
                "0 - highest quality, very slow\r\n" +
                "2 - recommended, default\r\n" +
                "9 - poor quality, but fast";

            combo_gain.Items.Add("None");
            combo_gain.Items.Add("Fast");
            combo_gain.Items.Add("Accurate");
            combo_gain.ToolTip = "None - do not compute RG (slightly faster encoding)\r\n" +
                "Fast - compute RG fast and slightly inaccurately, default\r\n" +
                "Accurate - compute RG more accurately, but slower";

            //прогружаем битрейты
            LoadBitrates();

            text_mode.Content = Languages.Translate("Encoding mode") + ":";
            text_quality.Content = Languages.Translate("Accuracy") + ":";

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:52,代码来源:LameMP3.xaml.cs

示例9: FLPCM

        public FLPCM(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            combo_bits.Items.Add("16-bit");
            combo_bits.Items.Add("24-bit");
            combo_bits.Items.Add("32-bit");

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:13,代码来源:FLPCM.xaml.cs

示例10: Caching

        public Caching(Massive mass)
        {
            this.InitializeComponent();
            this.Owner = App.Current.MainWindow;
            this.m = mass.Clone();

            //забиваем
            prCurrent.Maximum = 100;
            Title =  Languages.Translate("Caсhing") + "...";
            text_info.Content = Languages.Translate("Please wait... Work in progress...");

            //Caching
            CreateBackgroundWorker();
            worker.RunWorkerAsync();

            ShowDialog();
        }
开发者ID:BrunoReX,项目名称:xvid4psp,代码行数:17,代码来源:Caching.xaml.cs

示例11: IndexChecker

        public IndexChecker(Massive mass)
        {
            this.InitializeComponent();
            this.Owner = App.Current.MainWindow;
            this.m = mass.Clone();

            //забиваем
            prCurrent.Maximum = 100;
            Title = Languages.Translate("Checking index folder") + "...";
            label_info.Content = Languages.Translate("Please wait... Work in progress...");

            //BackgroundWorker
            CreateBackgroundWorker();
            worker.RunWorkerAsync();

            ShowDialog();
        }
开发者ID:BrunoReX,项目名称:xvid4psp,代码行数:17,代码来源:IndexChecker.xaml.cs

示例12: FFLAC

        public FFLAC(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            for (int n = 0; n < 13; n++) combo_level.Items.Add(n);
            for (int n = 0; n < 11; n++) combo_use_lpc.Items.Add(n);
            for (int n = 0; n < 16; n++) combo_precision.Items.Add(n);

            combo_level.ToolTip = "Set compression level:\r\n0 - fast, but bigger filesize\r\n5 - default\r\n12 - slow, but smaller filesize";
            combo_use_lpc.ToolTip = "LPC method for determining coefficients:\r\n0 - LPC with fixed pre-defined coeffs (fast)\r\n" +
                "1 - LPC with coeffs determined by Levinson-Durbin recursion (default)\r\n2+ - LPC with coeffs determined by Cholesky factorization using (Use LPC - 1) passes (10 - veeery slow)";
            combo_precision.ToolTip = "LPC coefficient precision (15 - default)";

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:18,代码来源:FFFLAC.xaml.cs

示例13: Indexing_FFMS

        public Indexing_FFMS(Massive mass)
        {
            this.InitializeComponent();
            this.Owner = App.Current.MainWindow;
            this.m = mass.Clone();

            //забиваем
            prCurrent.Maximum = 100;
            total = m.infileslist.Length;
            Title = Languages.Translate("Indexing");
            text_info.Content = Languages.Translate("Please wait... Work in progress...");

            //BackgroundWorker
            CreateBackgroundWorker();
            worker.RunWorkerAsync();

            ShowDialog();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:18,代码来源:Indexing_FFMS.xaml.cs

示例14: AftenAC3

        public AftenAC3(Massive mass, AudioEncoding AudioEncWindow)
        {
            this.InitializeComponent();

            this.m = mass.Clone();
            this.root_window = AudioEncWindow;

            for (int i = 1; i < 32; i++) combo_dnorm.Items.Add("-" + i + "dB");

            combo_bandwidth.Items.Add("Auto");
            for (int i = 10; i < 24; i += 1) combo_bandwidth.Items.Add(i + "kHz");

            combo_dnorm.ToolTip = "Dialog normalization level. -31dB means that decoder will leave audio level as is while play back." +
                "\r\nHigher values will produce more quiet sound.\r\nDefault: -31dB";

            combo_bandwidth.ToolTip = "High-frequency cutoff. In Auto mode encoder will auto-select this parameter depending\r\non bitrate, samplerate" +
                " and N of channels. But you can specify it manually.\r\nDefault: Auto (not optimal, very low cutoff frequency!)";

            LoadFromProfile();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:20,代码来源:AftenAC3.xaml.cs

示例15: Filtering

        public Filtering(Massive mass, MainWindow parent)
        {
            this.InitializeComponent();
            this.Owner = this.p = parent;

            if (mass != null)
            {
                m = mass.Clone();
                script_box.Text = m.script;

                button_refresh.Content = Languages.Translate("Apply");
                button_refresh.ToolTip = Languages.Translate("Refresh preview");
                button_fullscreen.ToolTip = Languages.Translate("Fullscreen mode");
                button_Avsp.ToolTip = Languages.Translate("AvsP editor");
            }
            else
            {
                old_filtering = Settings.Filtering;

                grid_profiles.Visibility = Visibility.Visible;
                button_refresh.Visibility = button_fullscreen.Visibility = button_Avsp.Visibility = Visibility.Collapsed;
                text_profile.Content = Languages.Translate("Profile:");
                button_add.ToolTip = Languages.Translate("Add profile");
                button_remove.ToolTip = Languages.Translate("Remove profile");

                LoadProfiles();
                LoadPreset();
            }

            //переводим
            Title = Languages.Translate("Filtering");
            button_ok.Content = Languages.Translate("OK");
            button_ok.ToolTip = Languages.Translate("Save changes");
            button_cancel.Content = button_cancel.ToolTip = Languages.Translate("Cancel");

            //Ограничиваем максимальную ширину окна до его открытия
            this.MaxWidth = Math.Min(((MainWindow)parent).ActualWidth * 1.25, SystemParameters.WorkArea.Width);
            this.SizeChanged += new SizeChangedEventHandler(Window_SizeChanged);

            ShowDialog();
        }
开发者ID:MaksHDR,项目名称:xvid4psp,代码行数:41,代码来源:Filtering.xaml.cs


注:本文中的XviD4PSP.Massive.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。