Beispiel #1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            Methods.ListComboContent meMethod  = (Methods.ListComboContent)comboBoxMEMethods.SelectedItem;
            Methods.ListComboContent picFormat = (Methods.ListComboContent)comboBoxPictureFormats.SelectedItem;
            Methods.ListComboContent bstrat    = (Methods.ListComboContent)comboBoxBFStrats.SelectedItem;
            Methods.ListComboContent cmp       = (Methods.ListComboContent)comboBoxCMPFuncs.SelectedItem;
            Methods.ListComboContent subcmp    = (Methods.ListComboContent)comboBoxSubCMPFuncs.SelectedItem;
            Methods.ListComboContent trellis   = (Methods.ListComboContent)comboBoxTrellis.SelectedItem;

            Video.BFrames       = Methods.TextToInt(textBoxBFrames.Text);
            Video.BFStrategy    = bstrat.X;
            Video.CMP           = cmp.X;
            Video.DiaSize       = Methods.TextToInt(textBoxDiaSize.Text);
            Video.GOPSize       = Methods.TextToInt(textBoxGOPSize.Text);
            Video.MEMethod      = meMethod.Value;
            Video.PictureFormat = picFormat.Value;
            Video.SubCMP        = subcmp.X;
            Video.Trellis       = trellis.X;

            if (groupBoxCodec.Enabled == true)
            {
                Methods.ListComboContent codecProfile = (Methods.ListComboContent)comboBoxCodecProfiles.SelectedItem;
                Video.CodecLevel   = Methods.TextToDouble(textBoxCodecLevel.Text);
                Video.CodecProfile = codecProfile.Value;
            }

            if (comboBoxEncoderPresets.Enabled == true)
            {
                Methods.ListComboContent encPreset = (Methods.ListComboContent)comboBoxEncoderPresets.SelectedItem;
                Video.EncoderPreset = encPreset.Value;
            }

            this.Close();
        }
Beispiel #2
0
 private void buttonApply_Click(object sender, EventArgs e)
 {
     Methods.ListComboContent codecProfile = (Methods.ListComboContent)comboBoxCodecProfiles.SelectedItem;
     Audio.CodecProfile = codecProfile.Value;
     this.Close();
 }