summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-10-23 13:54:50 +0000
committersr55 <[email protected]>2011-10-23 13:54:50 +0000
commit21f50a8bb97e2fe04a650b11a82f6b35f90f8aad (patch)
tree7d885fb41d6c2ee77d9c3c96b52dee3a201c44cf
parentd750952f674316543f3623a11c552ce056ed2b25 (diff)
WinGui: Add support for new decomb options.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4312 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/Controls/Filters.Designer.cs39
-rw-r--r--win/CS/Controls/Filters.cs6
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs3
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs3
4 files changed, 30 insertions, 21 deletions
diff --git a/win/CS/Controls/Filters.Designer.cs b/win/CS/Controls/Filters.Designer.cs
index 33531caa1..63223a8db 100644
--- a/win/CS/Controls/Filters.Designer.cs
+++ b/win/CS/Controls/Filters.Designer.cs
@@ -52,8 +52,8 @@
//
// text_customDT
//
- this.text_customDT.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.text_customDT.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.text_customDT.Location = new System.Drawing.Point(251, 3);
this.text_customDT.Name = "text_customDT";
this.text_customDT.Size = new System.Drawing.Size(115, 21);
@@ -74,8 +74,8 @@
//
// drop_detelecine
//
- this.drop_detelecine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.drop_detelecine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.drop_detelecine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.drop_detelecine.FormattingEnabled = true;
this.drop_detelecine.Items.AddRange(new object[] {
@@ -90,8 +90,8 @@
//
// text_customDC
//
- this.text_customDC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.text_customDC.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.text_customDC.Location = new System.Drawing.Point(251, 30);
this.text_customDC.Name = "text_customDC";
this.text_customDC.Size = new System.Drawing.Size(115, 21);
@@ -112,14 +112,15 @@
//
// drop_decomb
//
- this.drop_decomb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.drop_decomb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.drop_decomb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.drop_decomb.FormattingEnabled = true;
this.drop_decomb.Items.AddRange(new object[] {
"Off",
"Custom",
- "Default"});
+ "Default",
+ "Fast"});
this.drop_decomb.Location = new System.Drawing.Point(71, 30);
this.drop_decomb.Name = "drop_decomb";
this.drop_decomb.Size = new System.Drawing.Size(174, 21);
@@ -128,8 +129,8 @@
//
// text_customDI
//
- this.text_customDI.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.text_customDI.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.text_customDI.Location = new System.Drawing.Point(251, 57);
this.text_customDI.Name = "text_customDI";
this.text_customDI.Size = new System.Drawing.Size(115, 21);
@@ -150,8 +151,8 @@
//
// drop_deinterlace
//
- this.drop_deinterlace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.drop_deinterlace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.drop_deinterlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.drop_deinterlace.FormattingEnabled = true;
this.drop_deinterlace.Items.AddRange(new object[] {
@@ -168,8 +169,8 @@
//
// text_customDN
//
- this.text_customDN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.text_customDN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.text_customDN.Location = new System.Drawing.Point(251, 84);
this.text_customDN.Name = "text_customDN";
this.text_customDN.Size = new System.Drawing.Size(115, 21);
@@ -190,8 +191,8 @@
//
// drop_denoise
//
- this.drop_denoise.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.drop_denoise.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.drop_denoise.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.drop_denoise.FormattingEnabled = true;
this.drop_denoise.Items.AddRange(new object[] {
@@ -208,8 +209,8 @@
//
// slider_deblock
//
- this.slider_deblock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.slider_deblock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.slider_deblock.BackColor = System.Drawing.SystemColors.Window;
this.slider_deblock.Location = new System.Drawing.Point(71, 111);
this.slider_deblock.Maximum = 15;
diff --git a/win/CS/Controls/Filters.cs b/win/CS/Controls/Filters.cs
index 967df4e7d..b091b65ff 100644
--- a/win/CS/Controls/Filters.cs
+++ b/win/CS/Controls/Filters.cs
@@ -185,6 +185,9 @@ namespace Handbrake.Controls
case "Custom":
query += " --decomb=\"" + text_customDC.Text + "\"";
break;
+ case "Fast":
+ query += " --decomb=\"7:2:6:9:1:80\"";
+ break;
default:
query += string.Empty;
break;
@@ -365,6 +368,9 @@ namespace Handbrake.Controls
case Decomb.Default:
drop_decomb.SelectedIndex = 2;
break;
+ case Decomb.Fast:
+ drop_decomb.SelectedIndex = 3;
+ break;
default:
drop_decomb.SelectedIndex = 1;
text_customDC.Text = custom;
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs
index 29a2329f8..806a40f62 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs
@@ -222,7 +222,8 @@ namespace HandBrake.ApplicationServices.Utilities
parsed.Decomb = Decomb.Default;
if (decombValue.Success)
{
- parsed.CustomDecomb = decombValue.ToString().Replace("--decomb=", string.Empty).Replace("\"", string.Empty);
+ parsed.CustomDecomb = decombValue.ToString().Replace("--decomb=", string.Empty).Replace("\"", string.Empty).Trim();
+ parsed.Decomb = parsed.CustomDecomb == "7:2:6:9:1:80" ? Decomb.Fast : Decomb.Custom;
}
}
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs
index f56e6f03e..c019f00ae 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs
@@ -13,6 +13,7 @@ namespace HandBrake.Interop.Model.Encoding
{
Off = 0,
Default,
- Custom
+ Custom,
+ Fast
}
}