summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Controls')
-rw-r--r--win/C#/Controls/Decomb.Designer.cs97
-rw-r--r--win/C#/Controls/Decomb.cs89
-rw-r--r--win/C#/Controls/Deinterlace.Designer.cs99
-rw-r--r--win/C#/Controls/Deinterlace.cs102
-rw-r--r--win/C#/Controls/Deinterlace.resx120
-rw-r--r--win/C#/Controls/Denoise.Designer.cs99
-rw-r--r--win/C#/Controls/Denoise.cs94
-rw-r--r--win/C#/Controls/Denoise.resx120
-rw-r--r--win/C#/Controls/Detelecine.Designer.cs97
-rw-r--r--win/C#/Controls/Detelecine.cs80
-rw-r--r--win/C#/Controls/Detelecine.resx120
-rw-r--r--win/C#/Controls/Filters.Designer.cs296
-rw-r--r--win/C#/Controls/Filters.cs246
-rw-r--r--win/C#/Controls/Filters.resx (renamed from win/C#/Controls/Decomb.resx)0
14 files changed, 542 insertions, 1117 deletions
diff --git a/win/C#/Controls/Decomb.Designer.cs b/win/C#/Controls/Decomb.Designer.cs
deleted file mode 100644
index 7826c27e3..000000000
--- a/win/C#/Controls/Decomb.Designer.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-/* Decomb.designer.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-namespace Handbrake
-{
- partial class Decomb
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.label18 = new System.Windows.Forms.Label();
- this.drop_decomb = new System.Windows.Forms.ComboBox();
- this.text_custom = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.BackColor = System.Drawing.Color.Transparent;
- this.label18.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label18.Location = new System.Drawing.Point(3, 7);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(59, 13);
- this.label18.TabIndex = 43;
- this.label18.Text = "Decomb:";
- //
- // drop_decomb
- //
- this.drop_decomb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.drop_decomb.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.drop_decomb.FormattingEnabled = true;
- this.drop_decomb.Items.AddRange(new object[] {
- "Off",
- "Default",
- "Custom"});
- this.drop_decomb.Location = new System.Drawing.Point(111, 4);
- this.drop_decomb.Name = "drop_decomb";
- this.drop_decomb.Size = new System.Drawing.Size(161, 21);
- this.drop_decomb.TabIndex = 42;
- this.drop_decomb.SelectedIndexChanged += new System.EventHandler(this.drop_decomb_SelectedIndexChanged);
- //
- // text_custom
- //
- this.text_custom.Location = new System.Drawing.Point(278, 4);
- this.text_custom.Name = "text_custom";
- this.text_custom.Size = new System.Drawing.Size(115, 20);
- this.text_custom.TabIndex = 44;
- this.text_custom.Visible = false;
- //
- // Decomb
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.AutoSize = true;
- this.Controls.Add(this.text_custom);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.drop_decomb);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.MaximumSize = new System.Drawing.Size(400, 30);
- this.Name = "Decomb";
- this.Size = new System.Drawing.Size(400, 30);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- internal System.Windows.Forms.Label label18;
- internal System.Windows.Forms.ComboBox drop_decomb;
- private System.Windows.Forms.TextBox text_custom;
- }
-}
diff --git a/win/C#/Controls/Decomb.cs b/win/C#/Controls/Decomb.cs
deleted file mode 100644
index 35c613ae4..000000000
--- a/win/C#/Controls/Decomb.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Decomb.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-
-using System;
-using System.Windows.Forms;
-
-namespace Handbrake
-{
- public partial class Decomb : UserControl
- {
- public Decomb()
- {
- InitializeComponent();
- drop_decomb.SelectedIndex = 0;
- }
-
- private void drop_decomb_SelectedIndexChanged(object sender, EventArgs e)
- {
- text_custom.Visible = drop_decomb.Text == "Custom";
-
- valueChanged(null);
- }
-
- public string getDropValue
- {
- get { return drop_decomb.Text; }
- }
-
- public string getCustomValue
- {
- get { return text_custom.Text; }
- }
-
- public string getCLIQuery
- {
- get
- {
- string query;
- switch (drop_decomb.Text)
- {
- case "Off":
- query = "";
- break;
- case "Default":
- query = " --decomb";
- break;
- case "Custom":
- query = " --decomb=\"" + text_custom.Text + "\"";
- break;
- default:
- query = "";
- break;
- }
- return query;
- }
- }
-
- public void setOption(string value)
- {
- text_custom.Text = "";
- text_custom.Visible = false;
- switch (value)
- {
- case "Off":
- drop_decomb.SelectedIndex = 0;
- break;
- case "Default":
- drop_decomb.SelectedIndex = 1;
- break;
- default:
- drop_decomb.SelectedIndex = 2;
- text_custom.Text = value;
- text_custom.Visible = true;
- break;
- }
- }
-
- public event EventHandler onChange;
- protected virtual void valueChanged(EventArgs e)
- {
- if (onChange != null)
- onChange(this, e);
- }
-
- }
-}
diff --git a/win/C#/Controls/Deinterlace.Designer.cs b/win/C#/Controls/Deinterlace.Designer.cs
deleted file mode 100644
index 3792cc308..000000000
--- a/win/C#/Controls/Deinterlace.Designer.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Deinterlace.designer.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-namespace Handbrake
-{
- partial class Deinterlace
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.label18 = new System.Windows.Forms.Label();
- this.drop_deinterlace = new System.Windows.Forms.ComboBox();
- this.text_custom = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.BackColor = System.Drawing.Color.Transparent;
- this.label18.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label18.Location = new System.Drawing.Point(3, 7);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(72, 13);
- this.label18.TabIndex = 43;
- this.label18.Text = "Deinterlace:";
- //
- // drop_deinterlace
- //
- this.drop_deinterlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.drop_deinterlace.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.drop_deinterlace.FormattingEnabled = true;
- this.drop_deinterlace.Items.AddRange(new object[] {
- "None",
- "Fast",
- "Slow",
- "Slower",
- "Custom"});
- this.drop_deinterlace.Location = new System.Drawing.Point(111, 4);
- this.drop_deinterlace.Name = "drop_deinterlace";
- this.drop_deinterlace.Size = new System.Drawing.Size(161, 21);
- this.drop_deinterlace.TabIndex = 42;
- this.drop_deinterlace.SelectedIndexChanged += new System.EventHandler(this.drop_detelecine_SelectedIndexChanged);
- //
- // text_custom
- //
- this.text_custom.Location = new System.Drawing.Point(278, 4);
- this.text_custom.Name = "text_custom";
- this.text_custom.Size = new System.Drawing.Size(115, 20);
- this.text_custom.TabIndex = 44;
- this.text_custom.Visible = false;
- //
- // Deinterlace
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.AutoSize = true;
- this.Controls.Add(this.text_custom);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.drop_deinterlace);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.MaximumSize = new System.Drawing.Size(400, 30);
- this.Name = "Deinterlace";
- this.Size = new System.Drawing.Size(400, 30);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- internal System.Windows.Forms.Label label18;
- internal System.Windows.Forms.ComboBox drop_deinterlace;
- private System.Windows.Forms.TextBox text_custom;
- }
-}
diff --git a/win/C#/Controls/Deinterlace.cs b/win/C#/Controls/Deinterlace.cs
deleted file mode 100644
index 2ff9b33ef..000000000
--- a/win/C#/Controls/Deinterlace.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-/* Deinterlace.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-using System;
-using System.Windows.Forms;
-
-namespace Handbrake
-{
- public partial class Deinterlace : UserControl
- {
- public Deinterlace()
- {
- InitializeComponent();
- drop_deinterlace.SelectedIndex = 0;
- }
-
- private void drop_detelecine_SelectedIndexChanged(object sender, EventArgs e)
- {
- text_custom.Visible = drop_deinterlace.Text == "Custom";
-
- valueChanged(null);
- }
-
- public string getDropValue
- {
- get { return drop_deinterlace.Text; }
- }
-
- public string getCustomValue
- {
- get { return text_custom.Text; }
- }
-
- public string getCLIQuery
- {
- get
- {
- string query;
- switch (drop_deinterlace.Text)
- {
- case "None":
- query = "";
- break;
- case "Fast":
- query = " --deinterlace=\"fast\"";
- break;
- case "Slow":
- query = " --deinterlace=\"slow\"";
- break;
- case "Slower":
- query = " --deinterlace=\"slower\"";
- break;
- case "Custom":
- query = " --deinterlace=\"" + text_custom.Text + "\"";
- break;
- default:
- query = "";
- break;
- }
- return query;
- }
- }
-
- public void setOption(string value)
- {
- text_custom.Text = "";
- text_custom.Visible = false;
- switch (value)
- {
-
- case "None":
- drop_deinterlace.SelectedIndex = 0;
- break;
- case "Fast":
- drop_deinterlace.SelectedIndex = 1;
- break;
- case "Slow":
- drop_deinterlace.SelectedIndex = 2;
- break;
- case "Slower":
- drop_deinterlace.SelectedIndex = 3;
-
- break;
- default:
- drop_deinterlace.SelectedIndex = 4;
- text_custom.Text = value;
- text_custom.Visible = true;
- break;
- }
- }
-
- public event EventHandler onChange;
- protected virtual void valueChanged(EventArgs e)
- {
- if (onChange != null)
- onChange(this, e);
- }
-
- }
-}
diff --git a/win/C#/Controls/Deinterlace.resx b/win/C#/Controls/Deinterlace.resx
deleted file mode 100644
index ff31a6db5..000000000
--- a/win/C#/Controls/Deinterlace.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root> \ No newline at end of file
diff --git a/win/C#/Controls/Denoise.Designer.cs b/win/C#/Controls/Denoise.Designer.cs
deleted file mode 100644
index e4b96219e..000000000
--- a/win/C#/Controls/Denoise.Designer.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Denoise.designer.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-namespace Handbrake
-{
- partial class Denoise
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.label18 = new System.Windows.Forms.Label();
- this.drop_denoise = new System.Windows.Forms.ComboBox();
- this.text_custom = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.BackColor = System.Drawing.Color.Transparent;
- this.label18.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label18.Location = new System.Drawing.Point(3, 7);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(58, 13);
- this.label18.TabIndex = 43;
- this.label18.Text = "Denoise:";
- //
- // drop_denoise
- //
- this.drop_denoise.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.drop_denoise.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.drop_denoise.FormattingEnabled = true;
- this.drop_denoise.Items.AddRange(new object[] {
- "None",
- "Weak",
- "Medium",
- "Strong",
- "Custom"});
- this.drop_denoise.Location = new System.Drawing.Point(111, 4);
- this.drop_denoise.Name = "drop_denoise";
- this.drop_denoise.Size = new System.Drawing.Size(161, 21);
- this.drop_denoise.TabIndex = 42;
- this.drop_denoise.SelectedIndexChanged += new System.EventHandler(this.drop_decomb_SelectedIndexChanged);
- //
- // text_custom
- //
- this.text_custom.Location = new System.Drawing.Point(278, 4);
- this.text_custom.Name = "text_custom";
- this.text_custom.Size = new System.Drawing.Size(115, 20);
- this.text_custom.TabIndex = 44;
- this.text_custom.Visible = false;
- //
- // Denoise
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.AutoSize = true;
- this.Controls.Add(this.text_custom);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.drop_denoise);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.MaximumSize = new System.Drawing.Size(400, 30);
- this.Name = "Denoise";
- this.Size = new System.Drawing.Size(400, 30);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- internal System.Windows.Forms.Label label18;
- internal System.Windows.Forms.ComboBox drop_denoise;
- private System.Windows.Forms.TextBox text_custom;
- }
-}
diff --git a/win/C#/Controls/Denoise.cs b/win/C#/Controls/Denoise.cs
deleted file mode 100644
index d8b7e9162..000000000
--- a/win/C#/Controls/Denoise.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-/* DeNoise.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-using System;
-using System.Windows.Forms;
-
-namespace Handbrake
-{
- public partial class Denoise : UserControl
- {
- public Denoise()
- {
- InitializeComponent();
- drop_denoise.SelectedIndex = 0;
- }
-
- private void drop_decomb_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (drop_denoise.Text == "Custom")
- text_custom.Visible = true;
- else
- text_custom.Visible = false;
- }
-
- public string getDropValue
- {
- get { return drop_denoise.Text; }
- }
-
- public string getCustomValue
- {
- get { return text_custom.Text; }
- }
-
- public string getCLIQuery
- {
- get
- {
- string query;
- switch (drop_denoise.Text)
- {
- case "None":
- query = "";
- break;
- case "Weak":
- query = " --denoise=\"weak\"";
- break;
- case "Medium":
- query = " --denoise=\"medium\"";
- break;
- case "Strong":
- query = " --denoise=\"strong\"";
- break;
- case "Custom":
- query = " --denoise=\"" + text_custom.Text + "\"";
- break;
- default:
- query = "";
- break;
- }
- return query;
- }
- }
-
- public void setOption(string value)
- {
- text_custom.Text = "";
- text_custom.Visible = false;
- switch (value)
- {
- case "None":
- drop_denoise.SelectedIndex = 0;
- break;
- case "Weak":
- drop_denoise.SelectedIndex = 1;
- break;
- case "Medium":
- drop_denoise.SelectedIndex = 2;
- break;
- case "Strong":
- drop_denoise.SelectedIndex = 3;
- break;
- default:
- drop_denoise.SelectedIndex = 4;
- text_custom.Text = value;
- text_custom.Visible = true;
- break;
- }
- }
-
- }
-}
diff --git a/win/C#/Controls/Denoise.resx b/win/C#/Controls/Denoise.resx
deleted file mode 100644
index ff31a6db5..000000000
--- a/win/C#/Controls/Denoise.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root> \ No newline at end of file
diff --git a/win/C#/Controls/Detelecine.Designer.cs b/win/C#/Controls/Detelecine.Designer.cs
deleted file mode 100644
index 71983b32d..000000000
--- a/win/C#/Controls/Detelecine.Designer.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-/* Detelecine.Designer.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-namespace Handbrake
-{
- partial class Detelecine
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.label18 = new System.Windows.Forms.Label();
- this.drop_detelecine = new System.Windows.Forms.ComboBox();
- this.text_custom = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.BackColor = System.Drawing.Color.Transparent;
- this.label18.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label18.Location = new System.Drawing.Point(3, 7);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(72, 13);
- this.label18.TabIndex = 43;
- this.label18.Text = "Detelecine:";
- //
- // drop_detelecine
- //
- this.drop_detelecine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.drop_detelecine.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.drop_detelecine.FormattingEnabled = true;
- this.drop_detelecine.Items.AddRange(new object[] {
- "Off",
- "Default",
- "Custom"});
- this.drop_detelecine.Location = new System.Drawing.Point(111, 4);
- this.drop_detelecine.Name = "drop_detelecine";
- this.drop_detelecine.Size = new System.Drawing.Size(161, 21);
- this.drop_detelecine.TabIndex = 42;
- this.drop_detelecine.SelectedIndexChanged += new System.EventHandler(this.drop_detelecine_SelectedIndexChanged);
- //
- // text_custom
- //
- this.text_custom.Location = new System.Drawing.Point(278, 4);
- this.text_custom.Name = "text_custom";
- this.text_custom.Size = new System.Drawing.Size(115, 20);
- this.text_custom.TabIndex = 44;
- this.text_custom.Visible = false;
- //
- // Detelecine
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.AutoSize = true;
- this.Controls.Add(this.text_custom);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.drop_detelecine);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.MaximumSize = new System.Drawing.Size(400, 30);
- this.Name = "Detelecine";
- this.Size = new System.Drawing.Size(400, 30);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- internal System.Windows.Forms.ComboBox drop_detelecine;
- private System.Windows.Forms.TextBox text_custom;
- private System.Windows.Forms.Label label18;
- }
-}
diff --git a/win/C#/Controls/Detelecine.cs b/win/C#/Controls/Detelecine.cs
deleted file mode 100644
index 4c2e0b237..000000000
--- a/win/C#/Controls/Detelecine.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Detelecine.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License. */
-
-using System;
-using System.Windows.Forms;
-
-namespace Handbrake
-{
- public partial class Detelecine : UserControl
- {
- public Detelecine()
- {
- InitializeComponent();
- drop_detelecine.SelectedIndex = 0;
- }
-
- private void drop_detelecine_SelectedIndexChanged(object sender, EventArgs e)
- {
- text_custom.Visible = drop_detelecine.Text == "Custom";
- }
-
- public string getDropValue
- {
- get { return drop_detelecine.Text; }
- }
-
- public string getCustomValue
- {
- get { return text_custom.Text; }
- }
-
- public string getCLIQuery
- {
- get
- {
- string query;
- switch (drop_detelecine.Text)
- {
- case "Off":
- query = "";
- break;
- case "Default":
- query = " --detelecine";
- break;
- case "Custom":
- query = " --detelecine=\"" + text_custom.Text + "\"";
- break;
- default:
- query = "";
- break;
- }
- return query;
- }
- }
-
- public void setOption(string value)
- {
- text_custom.Text = "";
- text_custom.Visible = false;
- switch (value)
- {
- case "Off":
- drop_detelecine.SelectedIndex = 0;
- break;
- case "Default":
- drop_detelecine.SelectedIndex = 1;
- break;
- default:
- drop_detelecine.SelectedIndex = 2;
- text_custom.Text = value;
- text_custom.Visible = true;
- break;
- }
- }
-
- }
-}
diff --git a/win/C#/Controls/Detelecine.resx b/win/C#/Controls/Detelecine.resx
deleted file mode 100644
index ff31a6db5..000000000
--- a/win/C#/Controls/Detelecine.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root> \ No newline at end of file
diff --git a/win/C#/Controls/Filters.Designer.cs b/win/C#/Controls/Filters.Designer.cs
new file mode 100644
index 000000000..a395778b8
--- /dev/null
+++ b/win/C#/Controls/Filters.Designer.cs
@@ -0,0 +1,296 @@
+namespace Handbrake.Controls
+{
+ partial class Filters
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.text_customDT = new System.Windows.Forms.TextBox();
+ this.label18 = new System.Windows.Forms.Label();
+ this.drop_detelecine = new System.Windows.Forms.ComboBox();
+ this.text_customDC = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.drop_decomb = new System.Windows.Forms.ComboBox();
+ this.text_customDI = new System.Windows.Forms.TextBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.drop_deinterlace = new System.Windows.Forms.ComboBox();
+ this.text_customDN = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.drop_denoise = new System.Windows.Forms.ComboBox();
+ this.slider_deblock = new System.Windows.Forms.TrackBar();
+ this.check_grayscale = new System.Windows.Forms.CheckBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.lbl_deblockVal = new System.Windows.Forms.Label();
+ this.label68 = new System.Windows.Forms.Label();
+ ((System.ComponentModel.ISupportInitialize)(this.slider_deblock)).BeginInit();
+ this.SuspendLayout();
+ //
+ // text_customDT
+ //
+ this.text_customDT.Location = new System.Drawing.Point(288, 32);
+ this.text_customDT.Name = "text_customDT";
+ this.text_customDT.Size = new System.Drawing.Size(115, 20);
+ this.text_customDT.TabIndex = 47;
+ this.text_customDT.Visible = false;
+ //
+ // label18
+ //
+ this.label18.AutoSize = true;
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label18.Location = new System.Drawing.Point(13, 35);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(72, 13);
+ this.label18.TabIndex = 46;
+ this.label18.Text = "Detelecine:";
+ //
+ // drop_detelecine
+ //
+ this.drop_detelecine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.drop_detelecine.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.drop_detelecine.FormattingEnabled = true;
+ this.drop_detelecine.Items.AddRange(new object[] {
+ "Off",
+ "Default",
+ "Custom"});
+ this.drop_detelecine.Location = new System.Drawing.Point(121, 32);
+ this.drop_detelecine.Name = "drop_detelecine";
+ this.drop_detelecine.Size = new System.Drawing.Size(161, 21);
+ this.drop_detelecine.TabIndex = 45;
+ this.drop_detelecine.SelectedIndexChanged += new System.EventHandler(this.drop_detelecine_SelectedIndexChanged);
+ //
+ // text_customDC
+ //
+ this.text_customDC.Location = new System.Drawing.Point(288, 59);
+ this.text_customDC.Name = "text_customDC";
+ this.text_customDC.Size = new System.Drawing.Size(115, 20);
+ this.text_customDC.TabIndex = 50;
+ this.text_customDC.Visible = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.Location = new System.Drawing.Point(13, 62);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(59, 13);
+ this.label1.TabIndex = 49;
+ this.label1.Text = "Decomb:";
+ //
+ // drop_decomb
+ //
+ this.drop_decomb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.drop_decomb.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.drop_decomb.FormattingEnabled = true;
+ this.drop_decomb.Items.AddRange(new object[] {
+ "Off",
+ "Default",
+ "Custom"});
+ this.drop_decomb.Location = new System.Drawing.Point(121, 59);
+ this.drop_decomb.Name = "drop_decomb";
+ this.drop_decomb.Size = new System.Drawing.Size(161, 21);
+ this.drop_decomb.TabIndex = 48;
+ this.drop_decomb.SelectedIndexChanged += new System.EventHandler(this.drop_decomb_SelectedIndexChanged);
+ //
+ // text_customDI
+ //
+ this.text_customDI.Location = new System.Drawing.Point(288, 86);
+ this.text_customDI.Name = "text_customDI";
+ this.text_customDI.Size = new System.Drawing.Size(115, 20);
+ this.text_customDI.TabIndex = 53;
+ this.text_customDI.Visible = false;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.Location = new System.Drawing.Point(13, 89);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(77, 13);
+ this.label2.TabIndex = 52;
+ this.label2.Text = "Deinterlace:";
+ //
+ // drop_deinterlace
+ //
+ this.drop_deinterlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.drop_deinterlace.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.drop_deinterlace.FormattingEnabled = true;
+ this.drop_deinterlace.Items.AddRange(new object[] {
+ "None",
+ "Fast",
+ "Slow",
+ "Slower",
+ "Custom"});
+ this.drop_deinterlace.Location = new System.Drawing.Point(121, 86);
+ this.drop_deinterlace.Name = "drop_deinterlace";
+ this.drop_deinterlace.Size = new System.Drawing.Size(161, 21);
+ this.drop_deinterlace.TabIndex = 51;
+ this.drop_deinterlace.SelectedIndexChanged += new System.EventHandler(this.drop_deinterlace_SelectedIndexChanged);
+ //
+ // text_customDN
+ //
+ this.text_customDN.Location = new System.Drawing.Point(288, 113);
+ this.text_customDN.Name = "text_customDN";
+ this.text_customDN.Size = new System.Drawing.Size(115, 20);
+ this.text_customDN.TabIndex = 56;
+ this.text_customDN.Visible = false;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.Transparent;
+ this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.Location = new System.Drawing.Point(13, 116);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(58, 13);
+ this.label3.TabIndex = 55;
+ this.label3.Text = "Denoise:";
+ //
+ // drop_denoise
+ //
+ this.drop_denoise.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.drop_denoise.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.drop_denoise.FormattingEnabled = true;
+ this.drop_denoise.Items.AddRange(new object[] {
+ "None",
+ "Weak",
+ "Medium",
+ "Strong",
+ "Custom"});
+ this.drop_denoise.Location = new System.Drawing.Point(121, 113);
+ this.drop_denoise.Name = "drop_denoise";
+ this.drop_denoise.Size = new System.Drawing.Size(161, 21);
+ this.drop_denoise.TabIndex = 54;
+ this.drop_denoise.SelectedIndexChanged += new System.EventHandler(this.drop_denoise_SelectedIndexChanged);
+ //
+ // slider_deblock
+ //
+ this.slider_deblock.Location = new System.Drawing.Point(121, 140);
+ this.slider_deblock.Maximum = 15;
+ this.slider_deblock.Minimum = 4;
+ this.slider_deblock.Name = "slider_deblock";
+ this.slider_deblock.Size = new System.Drawing.Size(174, 45);
+ this.slider_deblock.TabIndex = 58;
+ this.slider_deblock.Value = 4;
+ this.slider_deblock.Scroll += new System.EventHandler(this.slider_deblock_Scroll);
+ //
+ // check_grayscale
+ //
+ this.check_grayscale.AutoSize = true;
+ this.check_grayscale.BackColor = System.Drawing.Color.Transparent;
+ this.check_grayscale.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.check_grayscale.Location = new System.Drawing.Point(121, 191);
+ this.check_grayscale.Name = "check_grayscale";
+ this.check_grayscale.Size = new System.Drawing.Size(138, 17);
+ this.check_grayscale.TabIndex = 57;
+ this.check_grayscale.Text = "Grayscale Encoding";
+ this.check_grayscale.UseVisualStyleBackColor = false;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.Transparent;
+ this.label8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label8.Location = new System.Drawing.Point(13, 147);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(58, 13);
+ this.label8.TabIndex = 60;
+ this.label8.Text = "Deblock:";
+ //
+ // lbl_deblockVal
+ //
+ this.lbl_deblockVal.AutoSize = true;
+ this.lbl_deblockVal.BackColor = System.Drawing.Color.Transparent;
+ this.lbl_deblockVal.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbl_deblockVal.Location = new System.Drawing.Point(301, 147);
+ this.lbl_deblockVal.Name = "lbl_deblockVal";
+ this.lbl_deblockVal.Size = new System.Drawing.Size(24, 13);
+ this.lbl_deblockVal.TabIndex = 59;
+ this.lbl_deblockVal.Text = "Off";
+ //
+ // label68
+ //
+ this.label68.AutoSize = true;
+ this.label68.BackColor = System.Drawing.Color.Transparent;
+ this.label68.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label68.Location = new System.Drawing.Point(13, 13);
+ this.label68.Name = "label68";
+ this.label68.Size = new System.Drawing.Size(49, 13);
+ this.label68.TabIndex = 61;
+ this.label68.Text = "Filters";
+ //
+ // Filters
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.BackColor = System.Drawing.Color.Transparent;
+ this.Controls.Add(this.label68);
+ this.Controls.Add(this.slider_deblock);
+ this.Controls.Add(this.check_grayscale);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.lbl_deblockVal);
+ this.Controls.Add(this.text_customDN);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.drop_denoise);
+ this.Controls.Add(this.text_customDI);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.drop_deinterlace);
+ this.Controls.Add(this.text_customDC);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.drop_decomb);
+ this.Controls.Add(this.text_customDT);
+ this.Controls.Add(this.label18);
+ this.Controls.Add(this.drop_detelecine);
+ this.Name = "Filters";
+ this.Size = new System.Drawing.Size(592, 270);
+ ((System.ComponentModel.ISupportInitialize)(this.slider_deblock)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox text_customDT;
+ private System.Windows.Forms.Label label18;
+ internal System.Windows.Forms.ComboBox drop_detelecine;
+ private System.Windows.Forms.TextBox text_customDC;
+ internal System.Windows.Forms.Label label1;
+ internal System.Windows.Forms.ComboBox drop_decomb;
+ private System.Windows.Forms.TextBox text_customDI;
+ internal System.Windows.Forms.Label label2;
+ internal System.Windows.Forms.ComboBox drop_deinterlace;
+ private System.Windows.Forms.TextBox text_customDN;
+ internal System.Windows.Forms.Label label3;
+ internal System.Windows.Forms.ComboBox drop_denoise;
+ internal System.Windows.Forms.TrackBar slider_deblock;
+ internal System.Windows.Forms.CheckBox check_grayscale;
+ internal System.Windows.Forms.Label label8;
+ internal System.Windows.Forms.Label lbl_deblockVal;
+ internal System.Windows.Forms.Label label68;
+ }
+}
diff --git a/win/C#/Controls/Filters.cs b/win/C#/Controls/Filters.cs
new file mode 100644
index 000000000..22d2c5771
--- /dev/null
+++ b/win/C#/Controls/Filters.cs
@@ -0,0 +1,246 @@
+using System;
+using System.Windows.Forms;
+
+namespace Handbrake.Controls
+{
+ public partial class Filters : UserControl
+ {
+ public Filters()
+ {
+ InitializeComponent();
+ drop_decomb.SelectedIndex = 0;
+ drop_deinterlace.SelectedIndex = 0;
+ drop_denoise.SelectedIndex = 0;
+ drop_detelecine.SelectedIndex = 0;
+ }
+
+ // Controls
+ private void drop_detelecine_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ text_customDT.Visible = drop_detelecine.Text == "Custom";
+ }
+ private void drop_decomb_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ text_customDC.Visible = drop_decomb.Text == "Custom";
+ if (drop_decomb.SelectedIndex != 0 && drop_deinterlace.SelectedIndex != 0)
+ drop_deinterlace.SelectedIndex = 0;
+ }
+ private void drop_deinterlace_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ text_customDI.Visible = drop_deinterlace.Text == "Custom";
+ if (drop_decomb.SelectedIndex != 0 && drop_deinterlace.SelectedIndex != 0)
+ drop_decomb.SelectedIndex = 0;
+ }
+ private void drop_denoise_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ text_customDN.Visible = drop_denoise.Text == "Custom";
+ }
+ private void slider_deblock_Scroll(object sender, EventArgs e)
+ {
+ lbl_deblockVal.Text = slider_deblock.Value == 4 ? "Off" : slider_deblock.Value.ToString();
+ }
+
+ // Returns the CLI query for the query generator.
+ public string getCLIQuery
+ {
+ get
+ {
+ string query = "";
+
+ switch (drop_detelecine.Text) // DeTelecine
+ {
+ case "Off":
+ query += "";
+ break;
+ case "Default":
+ query += " --detelecine";
+ break;
+ case "Custom":
+ query += " --detelecine=\"" + text_customDT.Text + "\"";
+ break;
+ default:
+ query += "";
+ break;
+ }
+
+
+ switch (drop_decomb.Text) // Decomb
+ {
+ case "Off":
+ query += "";
+ break;
+ case "Default":
+ query += " --decomb";
+ break;
+ case "Custom":
+ query += " --decomb=\"" + text_customDC.Text + "\"";
+ break;
+ default:
+ query += "";
+ break;
+ }
+
+ switch (drop_deinterlace.Text) // DeInterlace
+ {
+ case "None":
+ query += "";
+ break;
+ case "Fast":
+ query += " --deinterlace=\"fast\"";
+ break;
+ case "Slow":
+ query += " --deinterlace=\"slow\"";
+ break;
+ case "Slower":
+ query += " --deinterlace=\"slower\"";
+ break;
+ case "Custom":
+ query += " --deinterlace=\"" + text_customDI.Text + "\"";
+ break;
+ default:
+ query += "";
+ break;
+ }
+
+ switch (drop_denoise.Text) // Denoise
+ {
+ case "None":
+ query += "";
+ break;
+ case "Weak":
+ query += " --denoise=\"weak\"";
+ break;
+ case "Medium":
+ query += " --denoise=\"medium\"";
+ break;
+ case "Strong":
+ query += " --denoise=\"strong\"";
+ break;
+ case "Custom":
+ query += " --denoise=\"" + text_customDN.Text + "\"";
+ break;
+ default:
+ query += "";
+ break;
+ }
+
+ if (slider_deblock.Value != 4)
+ query += " --deblock=" + slider_deblock.Value;
+
+ if (check_grayscale.Checked)
+ query += " -g ";
+
+ return query;
+ }
+ }
+
+ // Setup for each component for the preset loader.
+ public void setDeTelecine(string value)
+ {
+ text_customDT.Text = "";
+ text_customDT.Visible = false;
+ switch (value)
+ {
+ case "Off":
+ drop_detelecine.SelectedIndex = 0;
+ break;
+ case "Default":
+ drop_detelecine.SelectedIndex = 1;
+ break;
+ default:
+ drop_detelecine.SelectedIndex = 2;
+ text_customDT.Text = value;
+ text_customDT.Visible = true;
+ break;
+ }
+ }
+ public void setDeNoise(string value)
+ {
+ text_customDN.Text = "";
+ text_customDN.Visible = false;
+ switch (value)
+ {
+ case "None":
+ drop_denoise.SelectedIndex = 0;
+ break;
+ case "Weak":
+ drop_denoise.SelectedIndex = 1;
+ break;
+ case "Medium":
+ drop_denoise.SelectedIndex = 2;
+ break;
+ case "Strong":
+ drop_denoise.SelectedIndex = 3;
+ break;
+ default:
+ drop_denoise.SelectedIndex = 4;
+ text_customDN.Text = value;
+ text_customDN.Visible = true;
+ break;
+ }
+ }
+ public void setDeInterlace(string value)
+ {
+ text_customDI.Text = "";
+ text_customDI.Visible = false;
+ switch (value)
+ {
+
+ case "None":
+ drop_deinterlace.SelectedIndex = 0;
+ break;
+ case "Fast":
+ drop_deinterlace.SelectedIndex = 1;
+ break;
+ case "Slow":
+ drop_deinterlace.SelectedIndex = 2;
+ break;
+ case "Slower":
+ drop_deinterlace.SelectedIndex = 3;
+
+ break;
+ default:
+ drop_deinterlace.SelectedIndex = 4;
+ text_customDI.Text = value;
+ text_customDI.Visible = true;
+ break;
+ }
+ }
+ public void setDecomb(string value)
+ {
+ text_customDC.Text = "";
+ text_customDC.Visible = false;
+ switch (value)
+ {
+ case "Off":
+ drop_decomb.SelectedIndex = 0;
+ break;
+ case "Default":
+ drop_decomb.SelectedIndex = 1;
+ break;
+ default:
+ drop_decomb.SelectedIndex = 2;
+ text_customDC.Text = value;
+ text_customDC.Visible = true;
+ break;
+ }
+ }
+ public void setDeBlock(int value)
+ {
+ if (value != 0)
+ {
+ slider_deblock.Value = value;
+ lbl_deblockVal.Text = value.ToString();
+ }
+ else
+ {
+ slider_deblock.Value = 4;
+ lbl_deblockVal.Text = "Off";
+ }
+ }
+ public void setGrayScale(bool value)
+ {
+ check_grayscale.CheckState = value ? CheckState.Checked : CheckState.Unchecked;
+ }
+ }
+}
diff --git a/win/C#/Controls/Decomb.resx b/win/C#/Controls/Filters.resx
index ff31a6db5..ff31a6db5 100644
--- a/win/C#/Controls/Decomb.resx
+++ b/win/C#/Controls/Filters.resx