diff options
author | sr55 <[email protected]> | 2007-12-01 00:09:00 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-12-01 00:09:00 +0000 |
commit | eff4cb31ca2a39852235357cd4a287a1e2eb2085 (patch) | |
tree | 4aa27a7cc21169d03a13eab8fe3b9926e6ec2852 /win/C# | |
parent | 35b65e6e13f552193fd910e4778fe38dd4d3406d (diff) |
WinGui:
- Added VFR and Loose Anamorphic Check boxes.
- Added placeholder widgets for Optimise MP4 and iPod Atom Check boxes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1091 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 29 | ||||
-rw-r--r-- | win/C#/frmMain.Designer.cs | 133 | ||||
-rw-r--r-- | win/C#/frmMain.cs | 86 |
3 files changed, 210 insertions, 38 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index 6c4f4f265..40731273f 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -219,6 +219,18 @@ namespace Handbrake.Functions }
}
+ private Boolean q_vfr;
+ /// <summary>
+ /// Returns a boolean to indicate wither DeTelecine is on or off
+ /// </summary>
+ public Boolean VFR
+ {
+ get
+ {
+ return this.q_vfr;
+ }
+ }
+
private Boolean q_deBlock;
/// <summary>
/// Returns a boolean to indicate wither DeBlock is on or off.
@@ -267,6 +279,18 @@ namespace Handbrake.Functions }
}
+ private Boolean q_looseAnamorphic;
+ /// <summary>
+ /// Returns a boolean to indicate wither Anamorphic is on or off.
+ /// </summary>
+ public Boolean LooseAnamorphic
+ {
+ get
+ {
+ return this.q_looseAnamorphic;
+ }
+ }
+
private Boolean q_chapterMarkers;
/// <summary>
/// Returns a boolean to indicate wither Chapter Markers is on or off.
@@ -500,6 +524,8 @@ namespace Handbrake.Functions Match anamorphic = Regex.Match(input, @"-p ");
Match chapterMarkers = Regex.Match(input, @"-m");
Match crop = Regex.Match(input, @"--crop ([0-9]):([0-9]):([0-9]):([0-9])");
+ Match vfr = Regex.Match(input, @"-V");
+ Match lanamorphic = Regex.Match(input, @"-P");
//Video Settings Tab
Match videoFramerate = Regex.Match(input, @"-r ([0-9]*)");
@@ -682,6 +708,9 @@ namespace Handbrake.Functions }
thisQuery.q_anamorphic = anamorphic.Success;
thisQuery.q_chapterMarkers = chapterMarkers.Success;
+ thisQuery.q_vfr = vfr.Success;
+ thisQuery.q_looseAnamorphic = lanamorphic.Success;
+
#endregion
//
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index bdba38bc6..c148ef030 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -140,6 +140,8 @@ namespace Handbrake this.Label32 = new System.Windows.Forms.Label();
this.Label18 = new System.Windows.Forms.Label();
this.TabPage3 = new System.Windows.Forms.TabPage();
+ this.check_iPodAtom = new System.Windows.Forms.CheckBox();
+ this.check_optimiseMP4 = new System.Windows.Forms.CheckBox();
this.check_grayscale = new System.Windows.Forms.CheckBox();
this.lbl_largeMp4Warning = new System.Windows.Forms.Label();
this.Label22 = new System.Windows.Forms.Label();
@@ -150,6 +152,8 @@ namespace Handbrake this.Label46 = new System.Windows.Forms.Label();
this.Label40 = new System.Windows.Forms.Label();
this.TabPage1 = new System.Windows.Forms.TabPage();
+ this.check_lAnamorphic = new System.Windows.Forms.CheckBox();
+ this.check_vfr = new System.Windows.Forms.CheckBox();
this.label24 = new System.Windows.Forms.Label();
this.drp_deNoise = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
@@ -177,6 +181,7 @@ namespace Handbrake this.groupBox_dest = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.treeView_presets = new System.Windows.Forms.TreeView();
+ this.lbl_vfr = new System.Windows.Forms.Label();
Label38 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).BeginInit();
this.frmMainMenu.SuspendLayout();
@@ -197,7 +202,7 @@ namespace Handbrake Label38.AutoSize = true;
Label38.BackColor = System.Drawing.Color.Transparent;
Label38.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- Label38.Location = new System.Drawing.Point(304, 67);
+ Label38.Location = new System.Drawing.Point(304, 65);
Label38.Name = "Label38";
Label38.Size = new System.Drawing.Size(108, 13);
Label38.TabIndex = 11;
@@ -500,9 +505,9 @@ namespace Handbrake "24",
"25",
"29.97"});
- this.drp_videoFramerate.Location = new System.Drawing.Point(126, 149);
+ this.drp_videoFramerate.Location = new System.Drawing.Point(133, 189);
this.drp_videoFramerate.Name = "drp_videoFramerate";
- this.drp_videoFramerate.Size = new System.Drawing.Size(112, 21);
+ this.drp_videoFramerate.Size = new System.Drawing.Size(81, 21);
this.drp_videoFramerate.TabIndex = 7;
this.drp_videoFramerate.Text = "Automatic";
this.ToolTip.SetToolTip(this.drp_videoFramerate, "Can be left to automcatic in most cases.");
@@ -524,7 +529,7 @@ namespace Handbrake this.text_filesize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text_filesize.Location = new System.Drawing.Point(446, 63);
this.text_filesize.Name = "text_filesize";
- this.text_filesize.Size = new System.Drawing.Size(156, 21);
+ this.text_filesize.Size = new System.Drawing.Size(81, 21);
this.text_filesize.TabIndex = 12;
this.ToolTip.SetToolTip(this.text_filesize, "Set the file size you wish the encoded file to be.");
this.text_filesize.TextChanged += new System.EventHandler(this.text_filesize_TextChanged);
@@ -535,7 +540,7 @@ namespace Handbrake this.text_bitrate.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text_bitrate.Location = new System.Drawing.Point(446, 36);
this.text_bitrate.Name = "text_bitrate";
- this.text_bitrate.Size = new System.Drawing.Size(156, 21);
+ this.text_bitrate.Size = new System.Drawing.Size(81, 21);
this.text_bitrate.TabIndex = 10;
this.ToolTip.SetToolTip(this.text_bitrate, "Set the bitrate of the video");
this.text_bitrate.TextChanged += new System.EventHandler(this.text_bitrate_TextChanged);
@@ -1016,7 +1021,7 @@ namespace Handbrake this.lbl_update.AutoSize = true;
this.lbl_update.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_update.ForeColor = System.Drawing.Color.Black;
- this.lbl_update.Location = new System.Drawing.Point(90, 543);
+ this.lbl_update.Location = new System.Drawing.Point(90, 551);
this.lbl_update.Name = "lbl_update";
this.lbl_update.Size = new System.Drawing.Size(193, 13);
this.lbl_update.TabIndex = 7;
@@ -1030,7 +1035,7 @@ namespace Handbrake this.btn_queue.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_queue.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_queue.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
- this.btn_queue.Location = new System.Drawing.Point(414, 538);
+ this.btn_queue.Location = new System.Drawing.Point(414, 546);
this.btn_queue.Name = "btn_queue";
this.btn_queue.Size = new System.Drawing.Size(115, 22);
this.btn_queue.TabIndex = 9;
@@ -1046,7 +1051,7 @@ namespace Handbrake this.btn_encode.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_encode.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_encode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
- this.btn_encode.Location = new System.Drawing.Point(535, 538);
+ this.btn_encode.Location = new System.Drawing.Point(535, 546);
this.btn_encode.Name = "btn_encode";
this.btn_encode.Size = new System.Drawing.Size(124, 22);
this.btn_encode.TabIndex = 10;
@@ -1059,7 +1064,7 @@ namespace Handbrake //
this.Version.BackColor = System.Drawing.Color.Transparent;
this.Version.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Version.Location = new System.Drawing.Point(11, 543);
+ this.Version.Location = new System.Drawing.Point(11, 551);
this.Version.Name = "Version";
this.Version.Size = new System.Drawing.Size(105, 20);
this.Version.TabIndex = 6;
@@ -1069,7 +1074,7 @@ namespace Handbrake //
this.lbl_encode.AutoSize = true;
this.lbl_encode.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lbl_encode.Location = new System.Drawing.Point(11, 523);
+ this.lbl_encode.Location = new System.Drawing.Point(11, 531);
this.lbl_encode.Name = "lbl_encode";
this.lbl_encode.Size = new System.Drawing.Size(129, 13);
this.lbl_encode.TabIndex = 5;
@@ -1084,7 +1089,7 @@ namespace Handbrake this.btn_eCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_eCancel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_eCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
- this.btn_eCancel.Location = new System.Drawing.Point(343, 538);
+ this.btn_eCancel.Location = new System.Drawing.Point(343, 546);
this.btn_eCancel.Name = "btn_eCancel";
this.btn_eCancel.Size = new System.Drawing.Size(65, 22);
this.btn_eCancel.TabIndex = 8;
@@ -1107,7 +1112,7 @@ namespace Handbrake this.TabPage6.Location = new System.Drawing.Point(4, 22);
this.TabPage6.Name = "TabPage6";
this.TabPage6.Padding = new System.Windows.Forms.Padding(3);
- this.TabPage6.Size = new System.Drawing.Size(639, 215);
+ this.TabPage6.Size = new System.Drawing.Size(639, 226);
this.TabPage6.TabIndex = 6;
this.TabPage6.Text = "Query Editor";
//
@@ -1200,7 +1205,7 @@ namespace Handbrake this.h264Tab.Location = new System.Drawing.Point(4, 22);
this.h264Tab.Name = "h264Tab";
this.h264Tab.Padding = new System.Windows.Forms.Padding(3);
- this.h264Tab.Size = new System.Drawing.Size(639, 215);
+ this.h264Tab.Size = new System.Drawing.Size(639, 226);
this.h264Tab.TabIndex = 5;
this.h264Tab.Text = "H.264";
//
@@ -1292,7 +1297,7 @@ namespace Handbrake this.TabPage2.Location = new System.Drawing.Point(4, 22);
this.TabPage2.Name = "TabPage2";
this.TabPage2.Padding = new System.Windows.Forms.Padding(3);
- this.TabPage2.Size = new System.Drawing.Size(639, 215);
+ this.TabPage2.Size = new System.Drawing.Size(639, 226);
this.TabPage2.TabIndex = 3;
this.TabPage2.Text = "Audio && Subtitles";
//
@@ -1428,6 +1433,9 @@ namespace Handbrake // TabPage3
//
this.TabPage3.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.TabPage3.Controls.Add(this.lbl_vfr);
+ this.TabPage3.Controls.Add(this.check_iPodAtom);
+ this.TabPage3.Controls.Add(this.check_optimiseMP4);
this.TabPage3.Controls.Add(this.check_grayscale);
this.TabPage3.Controls.Add(this.lbl_largeMp4Warning);
this.TabPage3.Controls.Add(this.check_largeFile);
@@ -1448,10 +1456,34 @@ namespace Handbrake this.TabPage3.Location = new System.Drawing.Point(4, 22);
this.TabPage3.Name = "TabPage3";
this.TabPage3.Padding = new System.Windows.Forms.Padding(3);
- this.TabPage3.Size = new System.Drawing.Size(639, 215);
+ this.TabPage3.Size = new System.Drawing.Size(639, 226);
this.TabPage3.TabIndex = 2;
this.TabPage3.Text = "Video Settings";
//
+ // check_iPodAtom
+ //
+ this.check_iPodAtom.AutoSize = true;
+ this.check_iPodAtom.BackColor = System.Drawing.Color.DarkRed;
+ this.check_iPodAtom.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.check_iPodAtom.Location = new System.Drawing.Point(16, 167);
+ this.check_iPodAtom.Name = "check_iPodAtom";
+ this.check_iPodAtom.Size = new System.Drawing.Size(110, 17);
+ this.check_iPodAtom.TabIndex = 26;
+ this.check_iPodAtom.Text = "Add iPod Atom";
+ this.check_iPodAtom.UseVisualStyleBackColor = false;
+ //
+ // check_optimiseMP4
+ //
+ this.check_optimiseMP4.AutoSize = true;
+ this.check_optimiseMP4.BackColor = System.Drawing.Color.DarkRed;
+ this.check_optimiseMP4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.check_optimiseMP4.Location = new System.Drawing.Point(16, 144);
+ this.check_optimiseMP4.Name = "check_optimiseMP4";
+ this.check_optimiseMP4.Size = new System.Drawing.Size(184, 17);
+ this.check_optimiseMP4.TabIndex = 25;
+ this.check_optimiseMP4.Text = "Optimize MP4 for streaming";
+ this.check_optimiseMP4.UseVisualStyleBackColor = false;
+ //
// check_grayscale
//
this.check_grayscale.AutoSize = true;
@@ -1536,7 +1568,7 @@ namespace Handbrake this.Label46.AutoSize = true;
this.Label46.BackColor = System.Drawing.Color.Transparent;
this.Label46.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Label46.Location = new System.Drawing.Point(13, 152);
+ this.Label46.Location = new System.Drawing.Point(13, 192);
this.Label46.Name = "Label46";
this.Label46.Size = new System.Drawing.Size(107, 13);
this.Label46.TabIndex = 6;
@@ -1547,7 +1579,7 @@ namespace Handbrake this.Label40.AutoSize = true;
this.Label40.BackColor = System.Drawing.Color.Transparent;
this.Label40.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Label40.Location = new System.Drawing.Point(304, 96);
+ this.Label40.Location = new System.Drawing.Point(304, 95);
this.Label40.Name = "Label40";
this.Label40.Size = new System.Drawing.Size(107, 13);
this.Label40.TabIndex = 13;
@@ -1556,6 +1588,8 @@ namespace Handbrake // TabPage1
//
this.TabPage1.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.TabPage1.Controls.Add(this.check_lAnamorphic);
+ this.TabPage1.Controls.Add(this.check_vfr);
this.TabPage1.Controls.Add(this.label24);
this.TabPage1.Controls.Add(this.drp_deNoise);
this.TabPage1.Controls.Add(this.label11);
@@ -1582,10 +1616,36 @@ namespace Handbrake this.TabPage1.Location = new System.Drawing.Point(4, 22);
this.TabPage1.Name = "TabPage1";
this.TabPage1.Padding = new System.Windows.Forms.Padding(3);
- this.TabPage1.Size = new System.Drawing.Size(639, 215);
+ this.TabPage1.Size = new System.Drawing.Size(639, 226);
this.TabPage1.TabIndex = 0;
this.TabPage1.Text = "Picture Settings";
//
+ // check_lAnamorphic
+ //
+ this.check_lAnamorphic.AutoSize = true;
+ this.check_lAnamorphic.BackColor = System.Drawing.Color.Transparent;
+ this.check_lAnamorphic.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.check_lAnamorphic.Location = new System.Drawing.Point(440, 166);
+ this.check_lAnamorphic.Name = "check_lAnamorphic";
+ this.check_lAnamorphic.Size = new System.Drawing.Size(131, 17);
+ this.check_lAnamorphic.TabIndex = 24;
+ this.check_lAnamorphic.Text = "Loose Anamorphic";
+ this.check_lAnamorphic.UseVisualStyleBackColor = false;
+ this.check_lAnamorphic.CheckedChanged += new System.EventHandler(this.check_lAnamorphic_CheckedChanged);
+ //
+ // check_vfr
+ //
+ this.check_vfr.AutoSize = true;
+ this.check_vfr.BackColor = System.Drawing.Color.Transparent;
+ this.check_vfr.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.check_vfr.Location = new System.Drawing.Point(416, 36);
+ this.check_vfr.Name = "check_vfr";
+ this.check_vfr.Size = new System.Drawing.Size(48, 17);
+ this.check_vfr.TabIndex = 23;
+ this.check_vfr.Text = "VFR";
+ this.check_vfr.UseVisualStyleBackColor = false;
+ this.check_vfr.CheckedChanged += new System.EventHandler(this.check_vfr_CheckedChanged);
+ //
// label24
//
this.label24.AutoSize = true;
@@ -1607,7 +1667,7 @@ namespace Handbrake "Weak",
"Medium",
"Strong"});
- this.drp_deNoise.Location = new System.Drawing.Point(416, 91);
+ this.drp_deNoise.Location = new System.Drawing.Point(416, 111);
this.drp_deNoise.Name = "drp_deNoise";
this.drp_deNoise.Size = new System.Drawing.Size(161, 21);
this.drp_deNoise.TabIndex = 19;
@@ -1618,7 +1678,7 @@ namespace Handbrake this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.Color.Transparent;
this.label11.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label11.Location = new System.Drawing.Point(314, 94);
+ this.label11.Location = new System.Drawing.Point(314, 114);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(58, 13);
this.label11.TabIndex = 18;
@@ -1629,7 +1689,7 @@ namespace Handbrake this.check_deblock.AutoSize = true;
this.check_deblock.BackColor = System.Drawing.Color.Transparent;
this.check_deblock.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.check_deblock.Location = new System.Drawing.Point(416, 37);
+ this.check_deblock.Location = new System.Drawing.Point(317, 59);
this.check_deblock.Name = "check_deblock";
this.check_deblock.Size = new System.Drawing.Size(72, 17);
this.check_deblock.TabIndex = 15;
@@ -1653,7 +1713,7 @@ namespace Handbrake this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label4.Location = new System.Drawing.Point(314, 66);
+ this.label4.Location = new System.Drawing.Point(314, 86);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(77, 13);
this.label4.TabIndex = 16;
@@ -1670,7 +1730,7 @@ namespace Handbrake "yadif (Slow)",
"yadif + mcdeint (Slower)",
"yadif + mcdeint (Slowest)"});
- this.drp_deInterlace_option.Location = new System.Drawing.Point(416, 63);
+ this.drp_deInterlace_option.Location = new System.Drawing.Point(416, 83);
this.drp_deInterlace_option.Name = "drp_deInterlace_option";
this.drp_deInterlace_option.Size = new System.Drawing.Size(161, 21);
this.drp_deInterlace_option.TabIndex = 17;
@@ -1681,7 +1741,7 @@ namespace Handbrake this.Check_ChapterMarkers.AutoSize = true;
this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;
this.Check_ChapterMarkers.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Check_ChapterMarkers.Location = new System.Drawing.Point(317, 173);
+ this.Check_ChapterMarkers.Location = new System.Drawing.Point(313, 189);
this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";
this.Check_ChapterMarkers.Size = new System.Drawing.Size(122, 17);
this.Check_ChapterMarkers.TabIndex = 22;
@@ -1694,7 +1754,7 @@ namespace Handbrake this.CheckPixelRatio.AutoSize = true;
this.CheckPixelRatio.BackColor = System.Drawing.Color.Transparent;
this.CheckPixelRatio.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.CheckPixelRatio.Location = new System.Drawing.Point(317, 150);
+ this.CheckPixelRatio.Location = new System.Drawing.Point(313, 166);
this.CheckPixelRatio.Name = "CheckPixelRatio";
this.CheckPixelRatio.Size = new System.Drawing.Size(121, 17);
this.CheckPixelRatio.TabIndex = 21;
@@ -1707,7 +1767,7 @@ namespace Handbrake this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label6.Location = new System.Drawing.Point(314, 128);
+ this.label6.Location = new System.Drawing.Point(310, 144);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(173, 13);
this.label6.TabIndex = 20;
@@ -1867,7 +1927,7 @@ namespace Handbrake this.advancedOptions.Location = new System.Drawing.Point(14, 276);
this.advancedOptions.Name = "advancedOptions";
this.advancedOptions.SelectedIndex = 0;
- this.advancedOptions.Size = new System.Drawing.Size(647, 241);
+ this.advancedOptions.Size = new System.Drawing.Size(647, 252);
this.advancedOptions.TabIndex = 4;
this.advancedOptions.TabStop = false;
//
@@ -1912,13 +1972,25 @@ namespace Handbrake this.treeView_presets.TabIndex = 2;
this.treeView_presets.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_presets_AfterSelect);
//
+ // lbl_vfr
+ //
+ this.lbl_vfr.AutoSize = true;
+ this.lbl_vfr.BackColor = System.Drawing.Color.Transparent;
+ this.lbl_vfr.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbl_vfr.Location = new System.Drawing.Point(220, 193);
+ this.lbl_vfr.Name = "lbl_vfr";
+ this.lbl_vfr.Size = new System.Drawing.Size(52, 12);
+ this.lbl_vfr.TabIndex = 27;
+ this.lbl_vfr.Text = "(VFR On)";
+ this.lbl_vfr.Visible = false;
+ //
// frmMain
//
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLight;
- this.ClientSize = new System.Drawing.Size(874, 566);
+ this.ClientSize = new System.Drawing.Size(874, 574);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox_dest);
this.Controls.Add(this.btn_eCancel);
@@ -2111,6 +2183,11 @@ namespace Handbrake private System.Windows.Forms.ToolStripMenuItem mnu_showPresets;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.TreeView treeView_presets;
+ internal System.Windows.Forms.CheckBox check_lAnamorphic;
+ internal System.Windows.Forms.CheckBox check_vfr;
+ internal System.Windows.Forms.CheckBox check_iPodAtom;
+ private System.Windows.Forms.CheckBox check_optimiseMP4;
+ internal System.Windows.Forms.Label lbl_vfr;
}
}
\ No newline at end of file diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 9831a1039..dd6b4325e 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -709,6 +709,25 @@ namespace Handbrake }
}
+ private void check_vfr_CheckedChanged(object sender, EventArgs e)
+ {
+ if (check_vfr.CheckState == CheckState.Checked)
+ {
+ check_detelecine.Enabled = false;
+ check_detelecine.CheckState = CheckState.Checked;
+ drp_videoFramerate.Enabled = false;
+ drp_videoFramerate.SelectedItem = "29.97";
+ lbl_vfr.Visible = true;
+ }
+ else
+ {
+ check_detelecine.Enabled = true;
+ drp_videoFramerate.Enabled = true;
+ drp_videoFramerate.SelectedItem = "Automatic";
+ lbl_vfr.Visible = false;
+ }
+ }
+
private void CheckPixelRatio_CheckedChanged(object sender, EventArgs e)
{
text_width.Text = "";
@@ -716,6 +735,25 @@ namespace Handbrake text_width.BackColor = Color.White;
text_height.BackColor = Color.White;
CheckPixelRatio.BackColor = TabPage1.BackColor;
+
+ if (CheckPixelRatio.Checked)
+ {
+ check_lAnamorphic.Enabled = false;
+ check_lAnamorphic.Checked = false;
+ }
+ else
+ check_lAnamorphic.Enabled = true;
+ }
+
+ private void check_lAnamorphic_CheckedChanged(object sender, EventArgs e)
+ {
+ if (check_lAnamorphic.Checked)
+ {
+ CheckPixelRatio.Enabled = false;
+ CheckPixelRatio.Checked = false;
+ }
+ else
+ CheckPixelRatio.Enabled = true;
}
private void check_2PassEncode_CheckedChanged(object sender, EventArgs e)
@@ -1287,7 +1325,12 @@ namespace Handbrake string grayscale = "";
string pixelRatio = "";
string ChapterMarkers = "";
- // Returns Crop Query
+ string vfr = "";
+ string deblock = "";
+ string detelecine = "";
+ string lanamorphic = "";
+
+
if (cropSetting == "Auto Crop")
cropOut = "";
@@ -1349,7 +1392,19 @@ namespace Handbrake if (Check_ChapterMarkers.Checked)
ChapterMarkers = " -m ";
- string queryPictureSettings = cropOut + subtitles + deinterlace + grayscale + pixelRatio + ChapterMarkers;
+ if (check_deblock.Checked)
+ deblock = " --deblock";
+
+ if (check_detelecine.Checked)
+ detelecine = " --detelecine";
+
+ if (check_vfr.Checked)
+ vfr = " -V ";
+
+ if (check_lAnamorphic.Checked)
+ lanamorphic = " -P ";
+
+ string queryPictureSettings = cropOut + subtitles + deinterlace + deblock + detelecine + vfr + grayscale + pixelRatio + lanamorphic + ChapterMarkers;
#endregion
// Video Settings Tab
@@ -1363,8 +1418,6 @@ namespace Handbrake string videoFramerate = drp_videoFramerate.Text;
string turboH264 = "";
string largeFile = "";
- string deblock = "";
- string detelecine = "";
string denoise = "";
string CRF = CheckCRF.CheckState.ToString();
@@ -1407,11 +1460,6 @@ namespace Handbrake if (check_largeFile.Checked)
largeFile = " -4 ";
- if (check_deblock.Checked)
- deblock = " --deblock";
-
- if (check_detelecine.Checked)
- detelecine = " --detelecine";
switch (drp_deNoise.Text)
{
@@ -1432,7 +1480,7 @@ namespace Handbrake break;
}
- string queryVideoSettings = videoBitrate + videoFilesize + vidQSetting + CRF + twoPassEncoding + videoFramerate + turboH264 + largeFile + deblock + detelecine + denoise;
+ string queryVideoSettings = videoBitrate + videoFilesize + vidQSetting + CRF + twoPassEncoding + videoFramerate + turboH264 + largeFile + denoise;
#endregion
// Audio Settings Tab
@@ -1640,6 +1688,24 @@ namespace Handbrake {
CheckPixelRatio.CheckState = CheckState.Unchecked;
}
+
+ if (presetQuery.LooseAnamorphic == true)
+ {
+ check_lAnamorphic.CheckState = CheckState.Checked;
+ }
+ else
+ {
+ check_lAnamorphic.CheckState = CheckState.Unchecked;
+ }
+
+ if (presetQuery.VFR == true)
+ {
+ check_vfr.CheckState = CheckState.Checked;
+ }
+ else
+ {
+ check_vfr.CheckState = CheckState.Unchecked;
+ }
#endregion
// Video Settings Tab
|