OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 18 Jun 2010 19:19:35 +0000 (19:19 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 18 Jun 2010 19:19:35 +0000 (19:19 +0000)
- Updates to the x264 panel.
- Added a Peak Framerate checkbox (--pfr cli option)

git-svn-id: svn://localhost/HandBrake/trunk@3388 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Controls/x264Panel.Designer.cs
win/C#/Controls/x264Panel.cs
win/C#/Controls/x264Panel.resx
win/C#/Functions/PresetLoader.cs
win/C#/Functions/QueryGenerator.cs
win/C#/Functions/QueryParser.cs
win/C#/frmMain.Designer.cs
win/C#/frmMain.cs
win/C#/frmMain.resx

index a28cbee..37fa372 100644 (file)
@@ -47,15 +47,11 @@ namespace Handbrake.Controls
             this.rtf_x264Query = new System.Windows.Forms.RichTextBox();\r
             this.check_Cabac = new System.Windows.Forms.CheckBox();\r
             this.check_noDCTDecimate = new System.Windows.Forms.CheckBox();\r
-            this.check_noFastPSkip = new System.Windows.Forms.CheckBox();\r
             this.lbl_trellis = new System.Windows.Forms.Label();\r
             this.drop_trellis = new System.Windows.Forms.ComboBox();\r
             this.drop_deblockBeta = new System.Windows.Forms.ComboBox();\r
             this.label41 = new System.Windows.Forms.Label();\r
             this.drop_deblockAlpha = new System.Windows.Forms.ComboBox();\r
-            this.panel3 = new System.Windows.Forms.Panel();\r
-            this.panel1 = new System.Windows.Forms.Panel();\r
-            this.panel2 = new System.Windows.Forms.Panel();\r
             this.check_8x8DCT = new System.Windows.Forms.CheckBox();\r
             this.label45 = new System.Windows.Forms.Label();\r
             this.drop_analysis = new System.Windows.Forms.ComboBox();\r
@@ -65,24 +61,30 @@ namespace Handbrake.Controls
             this.drop_MotionEstimationRange = new System.Windows.Forms.ComboBox();\r
             this.label54 = new System.Windows.Forms.Label();\r
             this.drop_MotionEstimationMethod = new System.Windows.Forms.ComboBox();\r
-            this.check_pyrmidalBFrames = new System.Windows.Forms.CheckBox();\r
-            this.check_weightedBFrames = new System.Windows.Forms.CheckBox();\r
             this.lbl_direct_prediction = new System.Windows.Forms.Label();\r
             this.drop_directPrediction = new System.Windows.Forms.ComboBox();\r
             this.label62 = new System.Windows.Forms.Label();\r
             this.drop_bFrames = new System.Windows.Forms.ComboBox();\r
             this.label64 = new System.Windows.Forms.Label();\r
             this.drop_refFrames = new System.Windows.Forms.ComboBox();\r
-            this.check_mixedReferences = new System.Windows.Forms.CheckBox();\r
             this.ToolTip = new System.Windows.Forms.ToolTip(this.components);\r
+            this.check_weightp = new System.Windows.Forms.CheckBox();\r
+            this.slider_adaptiveQuantStrength = new System.Windows.Forms.TrackBar();\r
+            this.combo_pyrmidalBFrames = new System.Windows.Forms.ComboBox();\r
+            this.lbl_adaptiveQuantStrength = new System.Windows.Forms.Label();\r
+            this.label1 = new System.Windows.Forms.Label();\r
+            this.label2 = new System.Windows.Forms.Label();\r
+            this.label3 = new System.Windows.Forms.Label();\r
             ((System.ComponentModel.ISupportInitialize)(this.slider_psytrellis)).BeginInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.slider_psyrd)).BeginInit();\r
+            ((System.ComponentModel.ISupportInitialize)(this.slider_adaptiveQuantStrength)).BeginInit();\r
             this.SuspendLayout();\r
             // \r
             // slider_psytrellis\r
             // \r
             this.slider_psytrellis.BackColor = System.Drawing.SystemColors.Window;\r
-            this.slider_psytrellis.Location = new System.Drawing.Point(436, 194);\r
+            this.slider_psytrellis.Location = new System.Drawing.Point(427, 231);\r
+            this.slider_psytrellis.Maximum = 20;\r
             this.slider_psytrellis.Name = "slider_psytrellis";\r
             this.slider_psytrellis.Size = new System.Drawing.Size(131, 45);\r
             this.slider_psytrellis.TabIndex = 86;\r
@@ -94,7 +96,7 @@ namespace Handbrake.Controls
             // lbl_psytrellis\r
             // \r
             this.lbl_psytrellis.AutoSize = true;\r
-            this.lbl_psytrellis.Location = new System.Drawing.Point(328, 198);\r
+            this.lbl_psytrellis.Location = new System.Drawing.Point(309, 231);\r
             this.lbl_psytrellis.Name = "lbl_psytrellis";\r
             this.lbl_psytrellis.Size = new System.Drawing.Size(102, 13);\r
             this.lbl_psytrellis.TabIndex = 85;\r
@@ -103,7 +105,7 @@ namespace Handbrake.Controls
             // lbl_psyrd\r
             // \r
             this.lbl_psyrd.AutoSize = true;\r
-            this.lbl_psyrd.Location = new System.Drawing.Point(283, 164);\r
+            this.lbl_psyrd.Location = new System.Drawing.Point(264, 199);\r
             this.lbl_psyrd.Name = "lbl_psyrd";\r
             this.lbl_psyrd.Size = new System.Drawing.Size(147, 13);\r
             this.lbl_psyrd.TabIndex = 84;\r
@@ -112,17 +114,19 @@ namespace Handbrake.Controls
             // slider_psyrd\r
             // \r
             this.slider_psyrd.BackColor = System.Drawing.SystemColors.Window;\r
-            this.slider_psyrd.Location = new System.Drawing.Point(436, 153);\r
+            this.slider_psyrd.Location = new System.Drawing.Point(425, 199);\r
+            this.slider_psyrd.Maximum = 20;\r
             this.slider_psyrd.Name = "slider_psyrd";\r
             this.slider_psyrd.Size = new System.Drawing.Size(131, 45);\r
             this.slider_psyrd.TabIndex = 83;\r
             this.ToolTip.SetToolTip(this.slider_psyrd, resources.GetString("slider_psyrd.ToolTip"));\r
+            this.slider_psyrd.Value = 10;\r
             this.slider_psyrd.Scroll += new System.EventHandler(this.widgetControlChanged);\r
             // \r
             // lbl_adaptBFrames\r
             // \r
             this.lbl_adaptBFrames.AutoSize = true;\r
-            this.lbl_adaptBFrames.Location = new System.Drawing.Point(21, 124);\r
+            this.lbl_adaptBFrames.Location = new System.Drawing.Point(309, 28);\r
             this.lbl_adaptBFrames.Name = "lbl_adaptBFrames";\r
             this.lbl_adaptBFrames.Size = new System.Drawing.Size(102, 13);\r
             this.lbl_adaptBFrames.TabIndex = 81;\r
@@ -137,9 +141,9 @@ namespace Handbrake.Controls
             "Off",\r
             "Fast",\r
             "Optimal"});\r
-            this.drop_adaptBFrames.Location = new System.Drawing.Point(129, 121);\r
+            this.drop_adaptBFrames.Location = new System.Drawing.Point(417, 24);\r
             this.drop_adaptBFrames.Name = "drop_adaptBFrames";\r
-            this.drop_adaptBFrames.Size = new System.Drawing.Size(121, 21);\r
+            this.drop_adaptBFrames.Size = new System.Drawing.Size(106, 21);\r
             this.drop_adaptBFrames.TabIndex = 82;\r
             this.ToolTip.SetToolTip(this.drop_adaptBFrames, resources.GetString("drop_adaptBFrames.ToolTip"));\r
             this.drop_adaptBFrames.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
@@ -151,15 +155,15 @@ namespace Handbrake.Controls
             this.label43.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.label43.Location = new System.Drawing.Point(13, 13);\r
             this.label43.Name = "label43";\r
-            this.label43.Size = new System.Drawing.Size(144, 13);\r
+            this.label43.Size = new System.Drawing.Size(60, 13);\r
             this.label43.TabIndex = 49;\r
-            this.label43.Text = "Advanced H.264 Options";\r
+            this.label43.Text = "Encoding:";\r
             // \r
             // btn_reset\r
             // \r
             this.btn_reset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.btn_reset.ForeColor = System.Drawing.Color.DarkOrange;\r
-            this.btn_reset.Location = new System.Drawing.Point(13, 229);\r
+            this.btn_reset.Location = new System.Drawing.Point(634, 230);\r
             this.btn_reset.Name = "btn_reset";\r
             this.btn_reset.Size = new System.Drawing.Size(75, 23);\r
             this.btn_reset.TabIndex = 79;\r
@@ -170,7 +174,7 @@ namespace Handbrake.Controls
             // rtf_x264Query\r
             // \r
             this.rtf_x264Query.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
-            this.rtf_x264Query.Location = new System.Drawing.Point(13, 258);\r
+            this.rtf_x264Query.Location = new System.Drawing.Point(16, 259);\r
             this.rtf_x264Query.Name = "rtf_x264Query";\r
             this.rtf_x264Query.Size = new System.Drawing.Size(698, 43);\r
             this.rtf_x264Query.TabIndex = 80;\r
@@ -183,7 +187,7 @@ namespace Handbrake.Controls
             this.check_Cabac.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
             this.check_Cabac.Checked = true;\r
             this.check_Cabac.CheckState = System.Windows.Forms.CheckState.Checked;\r
-            this.check_Cabac.Location = new System.Drawing.Point(277, 129);\r
+            this.check_Cabac.Location = new System.Drawing.Point(3, 89);\r
             this.check_Cabac.Name = "check_Cabac";\r
             this.check_Cabac.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
             this.check_Cabac.Size = new System.Drawing.Size(141, 17);\r
@@ -198,7 +202,7 @@ namespace Handbrake.Controls
             // \r
             this.check_noDCTDecimate.AutoSize = true;\r
             this.check_noDCTDecimate.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_noDCTDecimate.Location = new System.Drawing.Point(597, 41);\r
+            this.check_noDCTDecimate.Location = new System.Drawing.Point(30, 212);\r
             this.check_noDCTDecimate.Name = "check_noDCTDecimate";\r
             this.check_noDCTDecimate.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
             this.check_noDCTDecimate.Size = new System.Drawing.Size(114, 17);\r
@@ -209,26 +213,10 @@ namespace Handbrake.Controls
             this.check_noDCTDecimate.UseVisualStyleBackColor = true;\r
             this.check_noDCTDecimate.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
             // \r
-            // check_noFastPSkip\r
-            // \r
-            this.check_noFastPSkip.AutoSize = true;\r
-            this.check_noFastPSkip.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_noFastPSkip.Location = new System.Drawing.Point(611, 18);\r
-            this.check_noFastPSkip.Name = "check_noFastPSkip";\r
-            this.check_noFastPSkip.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
-            this.check_noFastPSkip.Size = new System.Drawing.Size(100, 17);\r
-            this.check_noFastPSkip.TabIndex = 76;\r
-            this.check_noFastPSkip.Text = "No Fast-P-Skip:";\r
-            this.check_noFastPSkip.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.ToolTip.SetToolTip(this.check_noFastPSkip, "This can help with blocking on solid colors like blue skies, but it also slows do" +\r
-                    "wn the encode.");\r
-            this.check_noFastPSkip.UseVisualStyleBackColor = true;\r
-            this.check_noFastPSkip.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
-            // \r
             // lbl_trellis\r
             // \r
             this.lbl_trellis.AutoSize = true;\r
-            this.lbl_trellis.Location = new System.Drawing.Point(421, 130);\r
+            this.lbl_trellis.Location = new System.Drawing.Point(563, 43);\r
             this.lbl_trellis.Name = "lbl_trellis";\r
             this.lbl_trellis.Size = new System.Drawing.Size(38, 13);\r
             this.lbl_trellis.TabIndex = 67;\r
@@ -239,11 +227,11 @@ namespace Handbrake.Controls
             this.drop_trellis.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
             this.drop_trellis.FormattingEnabled = true;\r
             this.drop_trellis.Items.AddRange(new object[] {\r
-            "Default (1)",\r
-            "0",\r
-            "1",\r
-            "2"});\r
-            this.drop_trellis.Location = new System.Drawing.Point(468, 127);\r
+            "Default (Encode Only)",\r
+            "Off",\r
+            "Encode Only",\r
+            "Always"});\r
+            this.drop_trellis.Location = new System.Drawing.Point(615, 40);\r
             this.drop_trellis.Name = "drop_trellis";\r
             this.drop_trellis.Size = new System.Drawing.Size(94, 21);\r
             this.drop_trellis.TabIndex = 75;\r
@@ -269,9 +257,9 @@ namespace Handbrake.Controls
             "4",\r
             "5",\r
             "6"});\r
-            this.drop_deblockBeta.Location = new System.Drawing.Point(643, 95);\r
+            this.drop_deblockBeta.Location = new System.Drawing.Point(631, 175);\r
             this.drop_deblockBeta.Name = "drop_deblockBeta";\r
-            this.drop_deblockBeta.Size = new System.Drawing.Size(68, 21);\r
+            this.drop_deblockBeta.Size = new System.Drawing.Size(78, 21);\r
             this.drop_deblockBeta.TabIndex = 74;\r
             this.ToolTip.SetToolTip(this.drop_deblockBeta, resources.GetString("drop_deblockBeta.ToolTip"));\r
             this.drop_deblockBeta.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
@@ -279,7 +267,7 @@ namespace Handbrake.Controls
             // label41\r
             // \r
             this.label41.AutoSize = true;\r
-            this.label41.Location = new System.Drawing.Point(575, 72);\r
+            this.label41.Location = new System.Drawing.Point(563, 152);\r
             this.label41.Name = "label41";\r
             this.label41.Size = new System.Drawing.Size(62, 13);\r
             this.label41.TabIndex = 66;\r
@@ -304,50 +292,23 @@ namespace Handbrake.Controls
             "4",\r
             "5",\r
             "6"});\r
-            this.drop_deblockAlpha.Location = new System.Drawing.Point(643, 69);\r
+            this.drop_deblockAlpha.Location = new System.Drawing.Point(631, 149);\r
             this.drop_deblockAlpha.Name = "drop_deblockAlpha";\r
-            this.drop_deblockAlpha.Size = new System.Drawing.Size(68, 21);\r
+            this.drop_deblockAlpha.Size = new System.Drawing.Size(78, 21);\r
             this.drop_deblockAlpha.TabIndex = 73;\r
             this.ToolTip.SetToolTip(this.drop_deblockAlpha, resources.GetString("drop_deblockAlpha.ToolTip"));\r
             this.drop_deblockAlpha.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
             // \r
-            // panel3\r
-            // \r
-            this.panel3.BackColor = System.Drawing.Color.Black;\r
-            this.panel3.Location = new System.Drawing.Point(277, 123);\r
-            this.panel3.Margin = new System.Windows.Forms.Padding(0);\r
-            this.panel3.Name = "panel3";\r
-            this.panel3.Size = new System.Drawing.Size(290, 1);\r
-            this.panel3.TabIndex = 65;\r
-            // \r
-            // panel1\r
-            // \r
-            this.panel1.BackColor = System.Drawing.Color.Black;\r
-            this.panel1.Location = new System.Drawing.Point(13, 89);\r
-            this.panel1.Margin = new System.Windows.Forms.Padding(0);\r
-            this.panel1.Name = "panel1";\r
-            this.panel1.Size = new System.Drawing.Size(247, 1);\r
-            this.panel1.TabIndex = 51;\r
-            // \r
-            // panel2\r
-            // \r
-            this.panel2.BackColor = System.Drawing.Color.Black;\r
-            this.panel2.Location = new System.Drawing.Point(277, 95);\r
-            this.panel2.Margin = new System.Windows.Forms.Padding(0);\r
-            this.panel2.Name = "panel2";\r
-            this.panel2.Size = new System.Drawing.Size(290, 1);\r
-            this.panel2.TabIndex = 63;\r
-            // \r
             // check_8x8DCT\r
             // \r
             this.check_8x8DCT.AutoSize = true;\r
             this.check_8x8DCT.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_8x8DCT.Location = new System.Drawing.Point(492, 101);\r
+            this.check_8x8DCT.Location = new System.Drawing.Point(44, 111);\r
             this.check_8x8DCT.Name = "check_8x8DCT";\r
             this.check_8x8DCT.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
-            this.check_8x8DCT.Size = new System.Drawing.Size(71, 17);\r
+            this.check_8x8DCT.Size = new System.Drawing.Size(100, 17);\r
             this.check_8x8DCT.TabIndex = 72;\r
-            this.check_8x8DCT.Text = "8x8 DCT:";\r
+            this.check_8x8DCT.Text = "8x8 Transform:";\r
             this.check_8x8DCT.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
             this.ToolTip.SetToolTip(this.check_8x8DCT, resources.GetString("check_8x8DCT.ToolTip"));\r
             this.check_8x8DCT.UseVisualStyleBackColor = true;\r
@@ -356,21 +317,22 @@ namespace Handbrake.Controls
             // label45\r
             // \r
             this.label45.AutoSize = true;\r
-            this.label45.Location = new System.Drawing.Point(367, 102);\r
+            this.label45.Location = new System.Drawing.Point(563, 16);\r
             this.label45.Name = "label45";\r
-            this.label45.Size = new System.Drawing.Size(50, 13);\r
+            this.label45.Size = new System.Drawing.Size(78, 13);\r
             this.label45.TabIndex = 64;\r
-            this.label45.Text = "Analysis:";\r
+            this.label45.Text = "Partition Type:";\r
             // \r
             // drop_analysis\r
             // \r
             this.drop_analysis.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
             this.drop_analysis.FormattingEnabled = true;\r
             this.drop_analysis.Items.AddRange(new object[] {\r
-            "Default (some)",\r
+            "Default (most)",\r
             "None",\r
+            "Some",\r
             "All"});\r
-            this.drop_analysis.Location = new System.Drawing.Point(423, 99);\r
+            this.drop_analysis.Location = new System.Drawing.Point(646, 13);\r
             this.drop_analysis.Name = "drop_analysis";\r
             this.drop_analysis.Size = new System.Drawing.Size(63, 21);\r
             this.drop_analysis.TabIndex = 71;\r
@@ -380,11 +342,11 @@ namespace Handbrake.Controls
             // label48\r
             // \r
             this.label48.AutoSize = true;\r
-            this.label48.Location = new System.Drawing.Point(279, 45);\r
+            this.label48.Location = new System.Drawing.Point(262, 110);\r
             this.label48.Name = "label48";\r
-            this.label48.Size = new System.Drawing.Size(138, 13);\r
+            this.label48.Size = new System.Drawing.Size(149, 13);\r
             this.label48.TabIndex = 62;\r
-            this.label48.Text = "Subpixel Motion Estimation:";\r
+            this.label48.Text = "Subpixel ME && Mode Decision:";\r
             // \r
             // drop_subpixelMotionEstimation\r
             // \r
@@ -392,18 +354,18 @@ namespace Handbrake.Controls
             this.drop_subpixelMotionEstimation.FormattingEnabled = true;\r
             this.drop_subpixelMotionEstimation.Items.AddRange(new object[] {\r
             "Default (7)",\r
-            "0",\r
-            "1",\r
-            "2",\r
-            "3",\r
-            "4",\r
-            "5",\r
-            "6",\r
-            "7",\r
-            "8",\r
-            "9",\r
-            "10"});\r
-            this.drop_subpixelMotionEstimation.Location = new System.Drawing.Point(423, 42);\r
+            "0: SAD, no subpel (super fast!)",\r
+            "1: SAD, qpel",\r
+            "2: SATD, qpel",\r
+            "3: SATD, multi-qpel",\r
+            "4: SATD, qpel on all",\r
+            "5: SATD, multi-qpel on all",\r
+            "6: RD in I/P-frames",\r
+            "7: RD in all frames",\r
+            "8: RD refine in I/P-frames",\r
+            "9: RD refine in all frames",\r
+            "10: QPRD in all frames"});\r
+            this.drop_subpixelMotionEstimation.Location = new System.Drawing.Point(417, 105);\r
             this.drop_subpixelMotionEstimation.Name = "drop_subpixelMotionEstimation";\r
             this.drop_subpixelMotionEstimation.Size = new System.Drawing.Size(139, 21);\r
             this.drop_subpixelMotionEstimation.TabIndex = 70;\r
@@ -413,7 +375,7 @@ namespace Handbrake.Controls
             // lbl_merange\r
             // \r
             this.lbl_merange.AutoSize = true;\r
-            this.lbl_merange.Location = new System.Drawing.Point(288, 71);\r
+            this.lbl_merange.Location = new System.Drawing.Point(282, 135);\r
             this.lbl_merange.Name = "lbl_merange";\r
             this.lbl_merange.Size = new System.Drawing.Size(129, 13);\r
             this.lbl_merange.TabIndex = 61;\r
@@ -486,7 +448,7 @@ namespace Handbrake.Controls
             "62",\r
             "63",\r
             "64"});\r
-            this.drop_MotionEstimationRange.Location = new System.Drawing.Point(423, 68);\r
+            this.drop_MotionEstimationRange.Location = new System.Drawing.Point(417, 132);\r
             this.drop_MotionEstimationRange.Name = "drop_MotionEstimationRange";\r
             this.drop_MotionEstimationRange.Size = new System.Drawing.Size(139, 21);\r
             this.drop_MotionEstimationRange.TabIndex = 69;\r
@@ -496,7 +458,7 @@ namespace Handbrake.Controls
             // label54\r
             // \r
             this.label54.AutoSize = true;\r
-            this.label54.Location = new System.Drawing.Point(283, 19);\r
+            this.label54.Location = new System.Drawing.Point(277, 81);\r
             this.label54.Name = "label54";\r
             this.label54.Size = new System.Drawing.Size(134, 13);\r
             this.label54.TabIndex = 60;\r
@@ -514,49 +476,21 @@ namespace Handbrake.Controls
             "Uneven Multi-Hexagon",\r
             "Exhaustive",\r
             "Transformed Exhaustive"});\r
-            this.drop_MotionEstimationMethod.Location = new System.Drawing.Point(423, 16);\r
+            this.drop_MotionEstimationMethod.Location = new System.Drawing.Point(417, 78);\r
             this.drop_MotionEstimationMethod.Name = "drop_MotionEstimationMethod";\r
             this.drop_MotionEstimationMethod.Size = new System.Drawing.Size(139, 21);\r
             this.drop_MotionEstimationMethod.TabIndex = 68;\r
             this.ToolTip.SetToolTip(this.drop_MotionEstimationMethod, resources.GetString("drop_MotionEstimationMethod.ToolTip"));\r
             this.drop_MotionEstimationMethod.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
             // \r
-            // check_pyrmidalBFrames\r
-            // \r
-            this.check_pyrmidalBFrames.AutoSize = true;\r
-            this.check_pyrmidalBFrames.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_pyrmidalBFrames.Location = new System.Drawing.Point(17, 194);\r
-            this.check_pyrmidalBFrames.Name = "check_pyrmidalBFrames";\r
-            this.check_pyrmidalBFrames.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
-            this.check_pyrmidalBFrames.Size = new System.Drawing.Size(124, 17);\r
-            this.check_pyrmidalBFrames.TabIndex = 59;\r
-            this.check_pyrmidalBFrames.Text = "Pyramidal B-Frames:";\r
-            this.ToolTip.SetToolTip(this.check_pyrmidalBFrames, resources.GetString("check_pyrmidalBFrames.ToolTip"));\r
-            this.check_pyrmidalBFrames.UseVisualStyleBackColor = true;\r
-            this.check_pyrmidalBFrames.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
-            // \r
-            // check_weightedBFrames\r
-            // \r
-            this.check_weightedBFrames.AutoSize = true;\r
-            this.check_weightedBFrames.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_weightedBFrames.Location = new System.Drawing.Point(17, 173);\r
-            this.check_weightedBFrames.Name = "check_weightedBFrames";\r
-            this.check_weightedBFrames.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
-            this.check_weightedBFrames.Size = new System.Drawing.Size(124, 17);\r
-            this.check_weightedBFrames.TabIndex = 58;\r
-            this.check_weightedBFrames.Text = "Weighted B-Frames:";\r
-            this.ToolTip.SetToolTip(this.check_weightedBFrames, resources.GetString("check_weightedBFrames.ToolTip"));\r
-            this.check_weightedBFrames.UseVisualStyleBackColor = true;\r
-            this.check_weightedBFrames.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
-            // \r
             // lbl_direct_prediction\r
             // \r
             this.lbl_direct_prediction.AutoSize = true;\r
-            this.lbl_direct_prediction.Location = new System.Drawing.Point(34, 150);\r
+            this.lbl_direct_prediction.Location = new System.Drawing.Point(297, 54);\r
             this.lbl_direct_prediction.Name = "lbl_direct_prediction";\r
-            this.lbl_direct_prediction.Size = new System.Drawing.Size(89, 13);\r
+            this.lbl_direct_prediction.Size = new System.Drawing.Size(114, 13);\r
             this.lbl_direct_prediction.TabIndex = 53;\r
-            this.lbl_direct_prediction.Text = "Direct Prediction:";\r
+            this.lbl_direct_prediction.Text = "Adaptive Direct Mode:";\r
             // \r
             // drop_directPrediction\r
             // \r
@@ -568,9 +502,9 @@ namespace Handbrake.Controls
             "Spatial",\r
             "Temporal",\r
             "Automatic"});\r
-            this.drop_directPrediction.Location = new System.Drawing.Point(129, 147);\r
+            this.drop_directPrediction.Location = new System.Drawing.Point(417, 51);\r
             this.drop_directPrediction.Name = "drop_directPrediction";\r
-            this.drop_directPrediction.Size = new System.Drawing.Size(121, 21);\r
+            this.drop_directPrediction.Size = new System.Drawing.Size(106, 21);\r
             this.drop_directPrediction.TabIndex = 57;\r
             this.ToolTip.SetToolTip(this.drop_directPrediction, resources.GetString("drop_directPrediction.ToolTip"));\r
             this.drop_directPrediction.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
@@ -578,11 +512,11 @@ namespace Handbrake.Controls
             // label62\r
             // \r
             this.label62.AutoSize = true;\r
-            this.label62.Location = new System.Drawing.Point(67, 98);\r
+            this.label62.Location = new System.Drawing.Point(21, 64);\r
             this.label62.Name = "label62";\r
-            this.label62.Size = new System.Drawing.Size(56, 13);\r
+            this.label62.Size = new System.Drawing.Size(103, 13);\r
             this.label62.TabIndex = 52;\r
-            this.label62.Text = "B-Frames:";\r
+            this.label62.Text = "Maximum B-Frames:";\r
             // \r
             // drop_bFrames\r
             // \r
@@ -607,19 +541,17 @@ namespace Handbrake.Controls
             "14",\r
             "15",\r
             "16"});\r
-            this.drop_bFrames.Location = new System.Drawing.Point(129, 95);\r
+            this.drop_bFrames.Location = new System.Drawing.Point(129, 61);\r
             this.drop_bFrames.Name = "drop_bFrames";\r
-            this.drop_bFrames.Size = new System.Drawing.Size(121, 21);\r
+            this.drop_bFrames.Size = new System.Drawing.Size(106, 21);\r
             this.drop_bFrames.TabIndex = 56;\r
-            this.ToolTip.SetToolTip(this.drop_bFrames, "Sane values are 1-6. \r\nB-Frames are smaller than other frames, so they let you pa" +\r
-                    "ck in more quality at the same bitrate. \r\nUse more of them with animated materia" +\r
-                    "l.");\r
+            this.ToolTip.SetToolTip(this.drop_bFrames, resources.GetString("drop_bFrames.ToolTip"));\r
             this.drop_bFrames.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
             // \r
             // label64\r
             // \r
             this.label64.AutoSize = true;\r
-            this.label64.Location = new System.Drawing.Point(24, 45);\r
+            this.label64.Location = new System.Drawing.Point(25, 38);\r
             this.label64.Name = "label64";\r
             this.label64.Size = new System.Drawing.Size(99, 13);\r
             this.label64.TabIndex = 50;\r
@@ -631,7 +563,6 @@ namespace Handbrake.Controls
             this.drop_refFrames.FormattingEnabled = true;\r
             this.drop_refFrames.Items.AddRange(new object[] {\r
             "Default (3)",\r
-            "0",\r
             "1",\r
             "2",\r
             "3",\r
@@ -648,61 +579,128 @@ namespace Handbrake.Controls
             "14",\r
             "15",\r
             "16"});\r
-            this.drop_refFrames.Location = new System.Drawing.Point(129, 42);\r
+            this.drop_refFrames.Location = new System.Drawing.Point(129, 35);\r
             this.drop_refFrames.Name = "drop_refFrames";\r
-            this.drop_refFrames.Size = new System.Drawing.Size(121, 21);\r
+            this.drop_refFrames.Size = new System.Drawing.Size(106, 21);\r
             this.drop_refFrames.TabIndex = 54;\r
-            this.ToolTip.SetToolTip(this.drop_refFrames, "Sane values are 1-6. \r\nThe more you add, the higher the quality, but the slower t" +\r
-                    "he encode. Be careful... too many and QuickTime struggles to play the video back" +\r
-                    ".");\r
+            this.ToolTip.SetToolTip(this.drop_refFrames, resources.GetString("drop_refFrames.ToolTip"));\r
             this.drop_refFrames.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
             // \r
-            // check_mixedReferences\r
-            // \r
-            this.check_mixedReferences.AutoSize = true;\r
-            this.check_mixedReferences.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.check_mixedReferences.Location = new System.Drawing.Point(25, 68);\r
-            this.check_mixedReferences.Name = "check_mixedReferences";\r
-            this.check_mixedReferences.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
-            this.check_mixedReferences.Size = new System.Drawing.Size(116, 17);\r
-            this.check_mixedReferences.TabIndex = 55;\r
-            this.check_mixedReferences.Text = "Mixed References:";\r
-            this.check_mixedReferences.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
-            this.ToolTip.SetToolTip(this.check_mixedReferences, "With this on, different references can be used for different parts of each 16x16 " +\r
-                    "pixel macroblock, increasing quality.");\r
-            this.check_mixedReferences.UseVisualStyleBackColor = true;\r
-            this.check_mixedReferences.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
-            // \r
             // ToolTip\r
             // \r
             this.ToolTip.Active = false;\r
             this.ToolTip.AutomaticDelay = 1000;\r
             this.ToolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;\r
             // \r
+            // check_weightp\r
+            // \r
+            this.check_weightp.AutoSize = true;\r
+            this.check_weightp.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+            this.check_weightp.ForeColor = System.Drawing.SystemColors.ControlText;\r
+            this.check_weightp.Location = new System.Drawing.Point(20, 134);\r
+            this.check_weightp.Name = "check_weightp";\r
+            this.check_weightp.RightToLeft = System.Windows.Forms.RightToLeft.No;\r
+            this.check_weightp.Size = new System.Drawing.Size(124, 17);\r
+            this.check_weightp.TabIndex = 87;\r
+            this.check_weightp.Text = "Weighted P-Frames:";\r
+            this.ToolTip.SetToolTip(this.check_weightp, resources.GetString("check_weightp.ToolTip"));\r
+            this.check_weightp.UseVisualStyleBackColor = true;\r
+            this.check_weightp.CheckedChanged += new System.EventHandler(this.widgetControlChanged);\r
+            // \r
+            // slider_adaptiveQuantStrength\r
+            // \r
+            this.slider_adaptiveQuantStrength.BackColor = System.Drawing.SystemColors.Window;\r
+            this.slider_adaptiveQuantStrength.Location = new System.Drawing.Point(425, 167);\r
+            this.slider_adaptiveQuantStrength.Maximum = 20;\r
+            this.slider_adaptiveQuantStrength.Name = "slider_adaptiveQuantStrength";\r
+            this.slider_adaptiveQuantStrength.Size = new System.Drawing.Size(131, 45);\r
+            this.slider_adaptiveQuantStrength.TabIndex = 88;\r
+            this.ToolTip.SetToolTip(this.slider_adaptiveQuantStrength, resources.GetString("slider_adaptiveQuantStrength.ToolTip"));\r
+            this.slider_adaptiveQuantStrength.Value = 10;\r
+            this.slider_adaptiveQuantStrength.Scroll += new System.EventHandler(this.widgetControlChanged);\r
+            // \r
+            // combo_pyrmidalBFrames\r
+            // \r
+            this.combo_pyrmidalBFrames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+            this.combo_pyrmidalBFrames.FormattingEnabled = true;\r
+            this.combo_pyrmidalBFrames.Items.AddRange(new object[] {\r
+            "Default (Normal)",\r
+            "Off",\r
+            "Strict"});\r
+            this.combo_pyrmidalBFrames.Location = new System.Drawing.Point(129, 157);\r
+            this.combo_pyrmidalBFrames.Name = "combo_pyrmidalBFrames";\r
+            this.combo_pyrmidalBFrames.Size = new System.Drawing.Size(106, 21);\r
+            this.combo_pyrmidalBFrames.TabIndex = 92;\r
+            this.ToolTip.SetToolTip(this.combo_pyrmidalBFrames, resources.GetString("combo_pyrmidalBFrames.ToolTip"));\r
+            this.combo_pyrmidalBFrames.SelectedIndexChanged += new System.EventHandler(this.widgetControlChanged);\r
+            // \r
+            // lbl_adaptiveQuantStrength\r
+            // \r
+            this.lbl_adaptiveQuantStrength.AutoSize = true;\r
+            this.lbl_adaptiveQuantStrength.Location = new System.Drawing.Point(248, 171);\r
+            this.lbl_adaptiveQuantStrength.Name = "lbl_adaptiveQuantStrength";\r
+            this.lbl_adaptiveQuantStrength.Size = new System.Drawing.Size(163, 13);\r
+            this.lbl_adaptiveQuantStrength.TabIndex = 89;\r
+            this.lbl_adaptiveQuantStrength.Text = "Adaptive Quantization Strength:";\r
+            // \r
+            // label1\r
+            // \r
+            this.label1.AutoSize = true;\r
+            this.label1.BackColor = System.Drawing.Color.Transparent;\r
+            this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.label1.Location = new System.Drawing.Point(13, 193);\r
+            this.label1.Name = "label1";\r
+            this.label1.Size = new System.Drawing.Size(83, 13);\r
+            this.label1.TabIndex = 90;\r
+            this.label1.Text = "Psychovisual:";\r
+            // \r
+            // label2\r
+            // \r
+            this.label2.AutoSize = true;\r
+            this.label2.Location = new System.Drawing.Point(20, 160);\r
+            this.label2.Name = "label2";\r
+            this.label2.Size = new System.Drawing.Size(105, 13);\r
+            this.label2.TabIndex = 91;\r
+            this.label2.Text = "Pyramidal B-Frames:";\r
+            // \r
+            // label3\r
+            // \r
+            this.label3.AutoSize = true;\r
+            this.label3.BackColor = System.Drawing.Color.Transparent;\r
+            this.label3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.label3.Location = new System.Drawing.Point(248, 13);\r
+            this.label3.Name = "label3";\r
+            this.label3.Size = new System.Drawing.Size(57, 13);\r
+            this.label3.TabIndex = 93;\r
+            this.label3.Text = "Analysis:";\r
+            // \r
             // x264Panel\r
             // \r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;\r
             this.BackColor = System.Drawing.Color.Transparent;\r
+            this.Controls.Add(this.label3);\r
+            this.Controls.Add(this.rtf_x264Query);\r
+            this.Controls.Add(this.label2);\r
+            this.Controls.Add(this.combo_pyrmidalBFrames);\r
+            this.Controls.Add(this.label1);\r
             this.Controls.Add(this.slider_psytrellis);\r
+            this.Controls.Add(this.slider_psyrd);\r
+            this.Controls.Add(this.lbl_adaptiveQuantStrength);\r
+            this.Controls.Add(this.slider_adaptiveQuantStrength);\r
+            this.Controls.Add(this.check_weightp);\r
             this.Controls.Add(this.lbl_psytrellis);\r
             this.Controls.Add(this.lbl_psyrd);\r
-            this.Controls.Add(this.slider_psyrd);\r
             this.Controls.Add(this.lbl_adaptBFrames);\r
             this.Controls.Add(this.drop_adaptBFrames);\r
             this.Controls.Add(this.label43);\r
             this.Controls.Add(this.btn_reset);\r
-            this.Controls.Add(this.rtf_x264Query);\r
             this.Controls.Add(this.check_Cabac);\r
             this.Controls.Add(this.check_noDCTDecimate);\r
-            this.Controls.Add(this.check_noFastPSkip);\r
             this.Controls.Add(this.lbl_trellis);\r
             this.Controls.Add(this.drop_trellis);\r
             this.Controls.Add(this.drop_deblockBeta);\r
             this.Controls.Add(this.label41);\r
             this.Controls.Add(this.drop_deblockAlpha);\r
-            this.Controls.Add(this.panel3);\r
-            this.Controls.Add(this.panel1);\r
-            this.Controls.Add(this.panel2);\r
             this.Controls.Add(this.check_8x8DCT);\r
             this.Controls.Add(this.label45);\r
             this.Controls.Add(this.drop_analysis);\r
@@ -712,20 +710,18 @@ namespace Handbrake.Controls
             this.Controls.Add(this.drop_MotionEstimationRange);\r
             this.Controls.Add(this.label54);\r
             this.Controls.Add(this.drop_MotionEstimationMethod);\r
-            this.Controls.Add(this.check_pyrmidalBFrames);\r
-            this.Controls.Add(this.check_weightedBFrames);\r
             this.Controls.Add(this.lbl_direct_prediction);\r
             this.Controls.Add(this.drop_directPrediction);\r
             this.Controls.Add(this.label62);\r
             this.Controls.Add(this.drop_bFrames);\r
             this.Controls.Add(this.label64);\r
             this.Controls.Add(this.drop_refFrames);\r
-            this.Controls.Add(this.check_mixedReferences);\r
             this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
             this.Name = "x264Panel";\r
-            this.Size = new System.Drawing.Size(720, 306);\r
+            this.Size = new System.Drawing.Size(720, 305);\r
             ((System.ComponentModel.ISupportInitialize)(this.slider_psytrellis)).EndInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.slider_psyrd)).EndInit();\r
+            ((System.ComponentModel.ISupportInitialize)(this.slider_adaptiveQuantStrength)).EndInit();\r
             this.ResumeLayout(false);\r
             this.PerformLayout();\r
 \r
@@ -744,15 +740,11 @@ namespace Handbrake.Controls
         internal System.Windows.Forms.RichTextBox rtf_x264Query;\r
         internal System.Windows.Forms.CheckBox check_Cabac;\r
         internal System.Windows.Forms.CheckBox check_noDCTDecimate;\r
-        internal System.Windows.Forms.CheckBox check_noFastPSkip;\r
         internal System.Windows.Forms.Label lbl_trellis;\r
         internal System.Windows.Forms.ComboBox drop_trellis;\r
         internal System.Windows.Forms.ComboBox drop_deblockBeta;\r
         internal System.Windows.Forms.Label label41;\r
         internal System.Windows.Forms.ComboBox drop_deblockAlpha;\r
-        internal System.Windows.Forms.Panel panel3;\r
-        internal System.Windows.Forms.Panel panel1;\r
-        internal System.Windows.Forms.Panel panel2;\r
         internal System.Windows.Forms.CheckBox check_8x8DCT;\r
         internal System.Windows.Forms.Label label45;\r
         internal System.Windows.Forms.ComboBox drop_analysis;\r
@@ -762,15 +754,19 @@ namespace Handbrake.Controls
         internal System.Windows.Forms.ComboBox drop_MotionEstimationRange;\r
         internal System.Windows.Forms.Label label54;\r
         internal System.Windows.Forms.ComboBox drop_MotionEstimationMethod;\r
-        internal System.Windows.Forms.CheckBox check_pyrmidalBFrames;\r
-        internal System.Windows.Forms.CheckBox check_weightedBFrames;\r
         internal System.Windows.Forms.Label lbl_direct_prediction;\r
         internal System.Windows.Forms.ComboBox drop_directPrediction;\r
         internal System.Windows.Forms.Label label62;\r
         internal System.Windows.Forms.ComboBox drop_bFrames;\r
         internal System.Windows.Forms.Label label64;\r
         internal System.Windows.Forms.ComboBox drop_refFrames;\r
-        internal System.Windows.Forms.CheckBox check_mixedReferences;\r
         private System.Windows.Forms.ToolTip ToolTip;\r
+        internal System.Windows.Forms.CheckBox check_weightp;\r
+        internal System.Windows.Forms.Label lbl_adaptiveQuantStrength;\r
+        internal System.Windows.Forms.TrackBar slider_adaptiveQuantStrength;\r
+        internal System.Windows.Forms.Label label1;\r
+        internal System.Windows.Forms.Label label2;\r
+        internal System.Windows.Forms.ComboBox combo_pyrmidalBFrames;\r
+        internal System.Windows.Forms.Label label3;\r
     }\r
 }\r
index a3bfd7a..bc4926a 100644 (file)
@@ -48,11 +48,9 @@ namespace Handbrake.Controls
         {\r
             check_8x8DCT.CheckState = CheckState.Checked;\r
             check_Cabac.CheckState = CheckState.Checked;\r
-            check_mixedReferences.CheckState = CheckState.Checked;\r
+            check_weightp.CheckState = CheckState.Checked;\r
             check_noDCTDecimate.CheckState = CheckState.Unchecked;\r
-            check_noFastPSkip.CheckState = CheckState.Unchecked;\r
-            check_pyrmidalBFrames.CheckState = CheckState.Unchecked;\r
-            check_weightedBFrames.CheckState = CheckState.Checked;\r
+            combo_pyrmidalBFrames.SelectedIndex = 0;\r
             drop_analysis.SelectedIndex = 0;\r
             drop_bFrames.SelectedIndex = 0;\r
             drop_deblockAlpha.SelectedIndex = 0;\r
@@ -70,10 +68,11 @@ namespace Handbrake.Controls
             rtf_x264Query.Text = string.Empty;\r
         }\r
 \r
+        #region Standardize Option String\r
         /// <summary>\r
         /// Iterate over every x264 option, standardize it, write the full string to the x264 rtf box\r
         /// </summary>\r
-        public void X264_StandardizeOptString()\r
+        public void StandardizeOptString()\r
         {\r
             /* Set widgets depending on the opt string in field */\r
             string thisOpt; // The separated option such as "bframes=3"\r
@@ -109,14 +108,14 @@ namespace Handbrake.Controls
                             optValue = splitOptRange[1];\r
 \r
                             /* Standardize the names here depending on whats in the string */\r
-                            optName = X264_StandardizeOptNames(optName);\r
+                            optName = StandardizeOptName(optName);\r
                             thisOpt = optName + "=" + optValue;\r
                         }\r
                         else // No value given so we use a default of "1"\r
                         {\r
                             optName = thisOpt;\r
                             /* Standardize the names here depending on whats in the string */\r
-                            optName = X264_StandardizeOptNames(optName);\r
+                            optName = StandardizeOptName(optName);\r
                             thisOpt = optName + "=1";\r
                         }\r
                     }\r
@@ -146,17 +145,14 @@ namespace Handbrake.Controls
         /// </summary>\r
         /// <param name="cleanOptNameString">a string of x264 options to clean</param>\r
         /// <returns>A string containing standardized x264 option names</returns>\r
-        private static string X264_StandardizeOptNames(string cleanOptNameString)\r
+        private static string StandardizeOptName(string cleanOptNameString)\r
         {\r
             string input = cleanOptNameString;\r
 \r
+            /* Reference Frames */\r
             if (input.Equals("ref") || input.Equals("frameref"))\r
                 cleanOptNameString = "ref";\r
 \r
-            /*No Fast PSkip nofast_pskip*/\r
-            if (input.Equals("no-fast-pskip") || input.Equals("no_fast_pskip") || input.Equals("nofast_pskip"))\r
-                cleanOptNameString = "no-fast-pskip";\r
-\r
             /*No Dict Decimate*/\r
             if (input.Equals("no-dct-decimate") || input.Equals("no_dct_decimate") || input.Equals("nodct_decimate"))\r
                 cleanOptNameString = "no-dct-decimate";\r
@@ -169,10 +165,6 @@ namespace Handbrake.Controls
             if (input.Equals("me-range") || input.Equals("me_range"))\r
                 cleanOptNameString = "merange";\r
 \r
-            /*WeightB*/\r
-            if (input.Equals("weight-b") || input.Equals("weight_b"))\r
-                cleanOptNameString = "weightb";\r
-\r
             /*B Pyramid*/\r
             if (input.Equals("b_pyramid"))\r
                 cleanOptNameString = "b-pyramid";\r
@@ -191,11 +183,12 @@ namespace Handbrake.Controls
 \r
             return cleanOptNameString;\r
         }\r
+        #endregion\r
 \r
         /// <summary>\r
         /// Resets the GUI widgets to the contents of the option string.\r
         /// </summary>\r
-        public void X264_SetCurrentSettingsInPanel()\r
+        public void SetCurrentSettingsInPanel()\r
         {\r
             /* Set widgets depending on the opt string in field */\r
             string thisOpt; // The separated option such as "bframes=3"\r
@@ -237,8 +230,8 @@ namespace Handbrake.Controls
                             case "ref":\r
                                 drop_refFrames.SelectedItem = optValue;\r
                                 continue;\r
-                            case "no-fast-pskip":\r
-                                check_noFastPSkip.CheckState = CheckState.Checked;\r
+                            case "weightp":\r
+                                this.check_weightp.CheckState = optValue == "0" ? CheckState.Unchecked : CheckState.Checked;\r
                                 continue;\r
                             case "no-dct-decimate":\r
                                 check_noDCTDecimate.CheckState = CheckState.Checked;\r
@@ -247,10 +240,18 @@ namespace Handbrake.Controls
                                 drop_subpixelMotionEstimation.SelectedItem = optValue;\r
                                 continue;\r
                             case "trellis":\r
-                                drop_trellis.SelectedItem = optValue;\r
-                                continue;\r
-                            case "mixed-refs":\r
-                                check_mixedReferences.CheckState = CheckState.Checked;\r
+                                switch (optValue)\r
+                                {\r
+                                    case "0":\r
+                                        drop_trellis.SelectedIndex = 1;\r
+                                        break;\r
+                                    case "1":\r
+                                         drop_trellis.SelectedIndex = 2;\r
+                                        break;\r
+                                    case "2":\r
+                                        drop_trellis.SelectedIndex = 3;\r
+                                        break;\r
+                                }\r
                                 continue;\r
                             case "me":\r
                                 if (optValue.Equals("dia"))\r
@@ -272,14 +273,19 @@ namespace Handbrake.Controls
                                 int.TryParse(optValue, out badapt);\r
                                 drop_adaptBFrames.SelectedIndex = (badapt + 1);\r
                                 continue;\r
-                            case "weightb":\r
-                                if (optValue != "0")\r
-                                    check_weightedBFrames.CheckState = CheckState.Checked;\r
-                                else\r
-                                    check_weightedBFrames.CheckState = CheckState.Unchecked;\r
-                                continue;\r
                             case "b-pyramid":\r
-                                check_pyrmidalBFrames.CheckState = CheckState.Checked;\r
+                                switch (optValue)\r
+                                {\r
+                                    case "normal":\r
+                                        combo_pyrmidalBFrames.SelectedIndex = 0;\r
+                                        break;\r
+                                    case "strict":\r
+                                        combo_pyrmidalBFrames.SelectedIndex = 2;\r
+                                        break;\r
+                                    case "none":\r
+                                        combo_pyrmidalBFrames.SelectedIndex = 1;\r
+                                        break;\r
+                                }\r
                                 continue;\r
                             case "direct":\r
                                 if (optValue == "auto")\r
@@ -315,15 +321,24 @@ namespace Handbrake.Controls
                                 continue;\r
                             case "analyse":\r
                                 if (optValue.Equals("p8x8,b8x8,i8x8,i4x4"))\r
-                                    drop_analysis.SelectedItem = "Default (some)";\r
+                                    drop_analysis.SelectedItem = "Default (most)";\r
                                 if (optValue.Equals("none"))\r
                                     drop_analysis.SelectedItem = "None";\r
+                                if (optValue.Equals("i4x4,i8x8"))\r
+                                    drop_analysis.SelectedItem = "Some";\r
                                 if (optValue.Equals("all"))\r
                                     drop_analysis.SelectedItem = "All";\r
                                 continue;\r
                             case "8x8dct":\r
                                 check_8x8DCT.CheckState = optValue == "1" ? CheckState.Checked : CheckState.Unchecked;\r
                                 continue;\r
+                            case "aq-strength":\r
+                                float value;\r
+                                float.TryParse(optValue, out value);\r
+                                int sliderValue;\r
+                                int.TryParse((value * 10).ToString(), out sliderValue);\r
+                                slider_adaptiveQuantStrength.Value = sliderValue;\r
+                                continue;\r
                             case "cabac":\r
                                 check_Cabac.CheckState = CheckState.Unchecked;\r
                                 continue;\r
@@ -336,7 +351,7 @@ namespace Handbrake.Controls
                                 // default psy-rd = 1 (10 for the slider)\r
                                 psyrd = double.TryParse(x[0], out psyrd) ? psyrd * 10 : 10.0;\r
                                 // default psy-trellis = 0\r
-                                psytrellis = double.TryParse(x[1], out psytrellis) ? psytrellis * 10 : 0.0;\r
+                                psytrellis = double.TryParse(x[1], out psytrellis) ? psytrellis * 20 : 0.0;\r
 \r
                                 int.TryParse(psyrd.ToString(), out val);\r
                                 int.TryParse(psytrellis.ToString(), out val2);\r
@@ -368,8 +383,7 @@ namespace Handbrake.Controls
             string checkOptNameToChangeBegin = optNameToChange + "=";\r
 \r
             // IF the current H264 Option String Contains Multiple Items or Just 1 Item\r
-            if ((currentOptString.Contains(checkOptNameToChange)) ||\r
-                (currentOptString.StartsWith(checkOptNameToChangeBegin)))\r
+            if ((currentOptString.Contains(checkOptNameToChange)) || (currentOptString.StartsWith(checkOptNameToChangeBegin)))\r
                 HasOptions(currentOptString, optNameToChange);\r
             else // IF there is no options in the rich text box!\r
                 HasNoOptions(optNameToChange);\r
@@ -437,6 +451,17 @@ namespace Handbrake.Controls
                             else if ((!da.Contains("Default")) && (!db.Contains("Default")))\r
                                 thisOpt = "deblock=" + da + "," + db;\r
                         }\r
+                        else if (optNameToChange.Equals("aq-strength"))\r
+                        {\r
+                            if (slider_adaptiveQuantStrength.Value == 10)\r
+                                thisOpt = string.Empty;\r
+                            else\r
+                            {\r
+                                double value = slider_adaptiveQuantStrength.Value * 0.1;\r
+                                string aqs = value.ToString("f1");\r
+                                thisOpt = "aq-strength=" + aqs;\r
+                            }\r
+                        }\r
                         else if (optNameToChange.Equals("psy-rd"))\r
                         {\r
                             if (slider_psyrd.Value == 10 && slider_psytrellis.Value == 0)\r
@@ -444,30 +469,37 @@ namespace Handbrake.Controls
                             else\r
                             {\r
                                 double psyrd = slider_psyrd.Value * 0.1;\r
-                                double psytre = slider_psytrellis.Value * 0.1;\r
+                                double psytre = slider_psytrellis.Value * 0.05;\r
 \r
-                                string rd = psyrd.ToString("f1");\r
-                                string rt = psytre.ToString("f1");\r
+                                string rd = psyrd.ToString("f2");\r
+                                string rt = psytre.ToString("f2");\r
 \r
                                 thisOpt = "psy-rd=" + rd + "," + rt;\r
                             }\r
                         }\r
-                        else if (optNameToChange.Equals("mixed-refs"))\r
-                            thisOpt = check_mixedReferences.CheckState == CheckState.Checked\r
-                                          ? "mixed-refs=1"\r
-                                          : "mixed-refs=0";\r
-                        else if (optNameToChange.Equals("weightb"))\r
-                            thisOpt = check_weightedBFrames.CheckState == CheckState.Checked ? string.Empty : "weightb=0";\r
                         else if (optNameToChange.Equals("b-pyramid"))\r
-                            thisOpt = check_pyrmidalBFrames.CheckState == CheckState.Checked ? "b-pyramid=1" : string.Empty;\r
-                        else if (optNameToChange.Equals("no-fast-pskip"))\r
-                            thisOpt = check_noFastPSkip.CheckState == CheckState.Checked ? "no-fast-pskip=1" : string.Empty;\r
+                        {\r
+                            switch (combo_pyrmidalBFrames.SelectedIndex)\r
+                            {\r
+                                case 0: // Default\r
+                                    thisOpt = string.Empty;\r
+                                    break;\r
+                                case 1: // Off\r
+                                    thisOpt = "b-pyramid=none";\r
+                                    break;\r
+                                case 2: // Strict\r
+                                    thisOpt = "b-pyramid=strict";\r
+                                    break;\r
+                            }\r
+                        }\r
                         else if (optNameToChange.Equals("no-dct-decimate"))\r
                             thisOpt = check_noDCTDecimate.CheckState == CheckState.Checked ? "no-dct-decimate=1" : string.Empty;\r
                         else if (optNameToChange.Equals("8x8dct"))\r
-                            thisOpt = check_8x8DCT.CheckState == CheckState.Checked ? "8x8dct=1" : "8x8dct=0";\r
+                            thisOpt = check_8x8DCT.CheckState == CheckState.Unchecked ? "8x8dct=0" : string.Empty;\r
                         else if (optNameToChange.Equals("cabac"))\r
                             thisOpt = check_Cabac.CheckState == CheckState.Checked ? string.Empty : "cabac=0";\r
+                        else if (optNameToChange.Equals("weightp"))\r
+                            thisOpt = check_Cabac.CheckState == CheckState.Checked ? string.Empty : "weightp=0";\r
                         else if (optNameToChange.Equals("me"))\r
                         {\r
                             switch (drop_MotionEstimationMethod.SelectedIndex)\r
@@ -531,6 +563,10 @@ namespace Handbrake.Controls
                                     break;\r
 \r
                                 case 2:\r
+                                    thisOpt = "analyse=some";\r
+                                    break;\r
+\r
+                                case 3:\r
                                     thisOpt = "analyse=all";\r
                                     break;\r
 \r
@@ -567,16 +603,28 @@ namespace Handbrake.Controls
                         else if (optNameToChange.Equals("subq"))\r
                         {\r
                             string value = drop_subpixelMotionEstimation.SelectedItem.ToString();\r
+                            string[] val = value.Split(':');\r
                             thisOpt = !drop_subpixelMotionEstimation.SelectedItem.ToString().Contains("Default")\r
-                                          ? "subq=" + value\r
+                                          ? "subq=" + val[0]\r
                                           : string.Empty;\r
                         }\r
                         else if (optNameToChange.Equals("trellis"))\r
                         {\r
-                            string value = drop_trellis.SelectedItem.ToString();\r
-                            thisOpt = !drop_trellis.SelectedItem.ToString().Contains("Default")\r
-                                          ? "trellis=" + value\r
-                                          : string.Empty;\r
+                            switch (drop_trellis.SelectedIndex)\r
+                            {\r
+                                case 1: // Off\r
+                                    thisOpt = "trellis=0";\r
+                                    break;\r
+                                case 2: // Encode Only\r
+                                    thisOpt = "trellis=1";\r
+                                    break;\r
+                                case 3: // Always\r
+                                    thisOpt = "trellis=2";\r
+                                    break;\r
+                                default:\r
+                                    thisOpt = string.Empty;\r
+                                    break;\r
+                            }\r
                         }\r
                     }\r
                 }\r
@@ -664,6 +712,10 @@ namespace Handbrake.Controls
                         break;\r
 \r
                     case 2:\r
+                        query = query + colon + "analyse=some";\r
+                        break;\r
+\r
+                    case 3:\r
                         query = query + colon + "analyse=all";\r
                         break;\r
 \r
@@ -702,6 +754,17 @@ namespace Handbrake.Controls
                     query = query + colon + "deblock=" + da + "," + db;\r
                 }\r
             }\r
+            else if (optNameToChange.Equals("aq-strength"))\r
+            {\r
+                if (slider_adaptiveQuantStrength.Value == 10)\r
+                    query = string.Empty;\r
+                else\r
+                {\r
+                    double value = slider_adaptiveQuantStrength.Value * 0.1;\r
+                    string aqs = value.ToString("f1");\r
+                    query += colon + "aq-strength=" + aqs;\r
+                }\r
+            }\r
             else if (optNameToChange.Equals("psy-rd"))\r
             {\r
                 if (slider_psyrd.Value == 10 && slider_psytrellis.Value == 0)\r
@@ -709,35 +772,27 @@ namespace Handbrake.Controls
                 else\r
                 {\r
                     double psyrd = slider_psyrd.Value * 0.1;\r
-                    double psytre = slider_psytrellis.Value * 0.1;\r
+                    double psytre = slider_psytrellis.Value * 0.05;\r
 \r
                     string rd = psyrd.ToString("f1");\r
-                    string rt = psytre.ToString("f1");\r
+                    string rt = psytre.ToString("f2");\r
 \r
                     query += colon + "psy-rd=" + rd + "," + rt;\r
                 }\r
             }\r
-            else if (optNameToChange.Equals("mixed-refs"))\r
-            {\r
-                if (check_mixedReferences.CheckState == CheckState.Checked)\r
-                    query = query + colon + "mixed-refs=1";\r
-                else\r
-                    query = query + colon + "mixed-refs=0";\r
-            }\r
-            else if (optNameToChange.Equals("weightb"))\r
-            {\r
-                if (check_weightedBFrames.CheckState != CheckState.Checked)\r
-                    query = query + colon + "weightb=0";\r
-            }\r
             else if (optNameToChange.Equals("b-pyramid"))\r
             {\r
-                if (check_pyrmidalBFrames.CheckState == CheckState.Checked)\r
-                    query = query + colon + "b-pyramid=1";\r
-            }\r
-            else if (optNameToChange.Equals("no-fast-pskip"))\r
-            {\r
-                if (check_noFastPSkip.CheckState == CheckState.Checked)\r
-                    query = query + colon + "no-fast-pskip=1";\r
+                switch (combo_pyrmidalBFrames.SelectedIndex)\r
+                {\r
+                    case 0:\r
+                        break;\r
+                    case 1:\r
+                        query = query + colon + "b-pyramid=none";\r
+                        break;\r
+                    case 2:\r
+                        query = query + colon + "b-pyramid=strict";\r
+                        break;\r
+                }\r
             }\r
             else if (optNameToChange.Equals("no-dct-decimate"))\r
             {\r
@@ -746,14 +801,19 @@ namespace Handbrake.Controls
             }\r
             else if (optNameToChange.Equals("8x8dct"))\r
             {\r
-                if (check_8x8DCT.CheckState == CheckState.Checked)\r
-                    query = query + colon + "8x8dct=1";\r
+                if (check_8x8DCT.CheckState == CheckState.Unchecked)\r
+                    query = query + colon + "8x8dct=0";\r
             }\r
             else if (optNameToChange.Equals("cabac"))\r
             {\r
                 if (check_Cabac.CheckState != CheckState.Checked)\r
                     query = query + colon + "cabac=0";\r
             }\r
+            else if (optNameToChange.Equals("weightp"))\r
+            {\r
+                if (check_weightp.CheckState != CheckState.Unchecked)\r
+                    query = query + colon + "weightp=0";\r
+            }\r
             else if (optNameToChange.Equals("ref"))\r
             {\r
                 if (!drop_refFrames.SelectedItem.ToString().Contains("Default"))\r
@@ -769,12 +829,27 @@ namespace Handbrake.Controls
             {\r
                 string value = drop_subpixelMotionEstimation.SelectedItem.ToString();\r
                 if (!drop_subpixelMotionEstimation.SelectedItem.ToString().Contains("Default"))\r
-                    query = query + colon + "subq=" + value;\r
+                {\r
+                    string[] val = value.Split(':');\r
+                    query = query + colon + "subq=" + val[0];\r
+                }\r
             }\r
             else if (optNameToChange.Equals("trellis"))\r
             {\r
-                if (!drop_trellis.SelectedItem.ToString().Contains("Default"))\r
-                    query = query + colon + "trellis=" + drop_trellis.SelectedItem;\r
+                switch (drop_trellis.SelectedIndex)\r
+                {\r
+                    case 1: // Off\r
+                        query = query + colon + "trellis=0";\r
+                        break;\r
+                    case 2: // Encode Only\r
+                        query = query + colon + "trellis=1";\r
+                        break;\r
+                    case 3: // Always\r
+                        query = query + colon + "trellis=2";\r
+                        break;\r
+                    default:\r
+                        break;\r
+                }\r
             }\r
 \r
             rtf_x264Query.Text = query;\r
@@ -788,9 +863,7 @@ namespace Handbrake.Controls
         {\r
             /* Lots of situations to cover.\r
                - B-frames (when 0 turn of b-frame specific stuff, when < 2 disable b-pyramid)\r
-               - CABAC (when 0 turn off trellis)\r
-               - analysis (if none, turn off 8x8dct)\r
-               - refs (under 2, disable mixed-refs)\r
+               - CABAC (when 0 turn off trellis and psy-trel\r
                - subme (if under 6, turn off psy-rd and psy-trel)\r
                - trellis (if 0, turn off psy-trel)\r
              */\r
@@ -798,18 +871,16 @@ namespace Handbrake.Controls
             switch (sender)\r
             {\r
                 case "bframes":\r
-                    if (drop_bFrames.SelectedIndex > 0 && drop_bFrames.SelectedIndex < 2)\r
+                    if (drop_bFrames.SelectedIndex == 1)\r
                     {\r
-                        /* If the b-frame widget is at 0 or 1, the user has chosen\r
+                        /* If the b-frame widget is at 1, the user has chosen\r
                            not to use b-frames at all. So disable the options\r
                            that can only be used when b-frames are enabled.        */\r
-                        check_weightedBFrames.Visible = false;\r
-                        check_pyrmidalBFrames.Visible = false;\r
+                        combo_pyrmidalBFrames.Visible = false;\r
                         drop_directPrediction.Visible = false;\r
                         lbl_direct_prediction.Visible = false;\r
 \r
-                        check_weightedBFrames.CheckState = CheckState.Unchecked;\r
-                        check_pyrmidalBFrames.CheckState = CheckState.Unchecked;\r
+                        combo_pyrmidalBFrames.SelectedIndex = 0;\r
                         drop_directPrediction.SelectedIndex = 0;\r
 \r
                         drop_adaptBFrames.Visible = false;\r
@@ -819,10 +890,9 @@ namespace Handbrake.Controls
                     else if (drop_bFrames.SelectedIndex == 2)\r
                     {\r
                         /* Only 1 b-frame? Disable b-pyramid. */\r
-                        check_pyrmidalBFrames.Visible = false;\r
-                        check_pyrmidalBFrames.CheckState = CheckState.Unchecked;\r
+                        combo_pyrmidalBFrames.Visible = false;\r
+                        combo_pyrmidalBFrames.SelectedIndex = 0;\r
 \r
-                        check_weightedBFrames.Visible = true;\r
                         drop_directPrediction.Visible = true;\r
                         lbl_direct_prediction.Visible = true;\r
 \r
@@ -831,8 +901,7 @@ namespace Handbrake.Controls
                     }\r
                     else\r
                     {\r
-                        check_weightedBFrames.Visible = true;\r
-                        check_pyrmidalBFrames.Visible = true;\r
+                        combo_pyrmidalBFrames.Visible = true;\r
                         drop_directPrediction.Visible = true;\r
                         lbl_direct_prediction.Visible = true;\r
 \r
@@ -847,34 +916,20 @@ namespace Handbrake.Controls
                         drop_trellis.Visible = false;\r
                         drop_trellis.SelectedIndex = 0;\r
                         lbl_trellis.Visible = false;\r
+\r
+                        slider_psytrellis.Visible = false;\r
+                        lbl_psytrellis.Visible = false;\r
+                        slider_psytrellis.Value = 0;\r
                     }\r
                     else\r
                     {\r
                         drop_trellis.Visible = true;\r
                         lbl_trellis.Visible = true;\r
+\r
+                        slider_psytrellis.Visible = true;\r
+                        lbl_psytrellis.Visible = true;\r
                     }\r
                     break;\r
-                case "analyse":\r
-                    if (drop_analysis.SelectedIndex == 1)\r
-                    {\r
-                        /* No analysis? Disable 8x8dct */\r
-                        check_8x8DCT.Visible = false;\r
-                        if (sender != "8x8dct")\r
-                            check_8x8DCT.CheckState = CheckState.Unchecked;\r
-                    }\r
-                    else\r
-                        check_8x8DCT.Visible = true;\r
-                    break;\r
-                case "ref":\r
-                    if (drop_refFrames.SelectedIndex > 0 && drop_refFrames.SelectedIndex < 3)\r
-                    {\r
-                        check_mixedReferences.Visible = false;\r
-                        if (sender != "mixed-refs")\r
-                            check_mixedReferences.CheckState = CheckState.Unchecked;\r
-                    }\r
-                    else\r
-                        check_mixedReferences.Visible = true;\r
-                    break;\r
                 case "me": // Motion Estimation\r
                     if (drop_MotionEstimationMethod.SelectedIndex < 3)\r
                     {\r
@@ -933,6 +988,8 @@ namespace Handbrake.Controls
             }\r
         }\r
 \r
+        /* UI Events */\r
+\r
         private void widgetControlChanged(object sender, EventArgs e)\r
         {\r
             Control changedControlName = (Control) sender;\r
@@ -943,19 +1000,16 @@ namespace Handbrake.Controls
                 case "drop_refFrames":\r
                     controlName = "ref";\r
                     break;\r
-                case "check_mixedReferences":\r
-                    controlName = "mixed-refs";\r
-                    break;\r
                 case "drop_bFrames":\r
                     controlName = "bframes";\r
                     break;\r
                 case "drop_directPrediction":\r
                     controlName = "direct";\r
                     break;\r
-                case "check_weightedBFrames":\r
-                    controlName = "weightb";\r
+                case "check_weightp":\r
+                    controlName = "weightp";\r
                     break;\r
-                case "check_pyrmidalBFrames":\r
+                case "combo_pyrmidalBFrames":\r
                     controlName = "b-pyramid";\r
                     break;\r
                 case "drop_MotionEstimationMethod":\r
@@ -982,9 +1036,6 @@ namespace Handbrake.Controls
                 case "drop_trellis":\r
                     controlName = "trellis";\r
                     break;\r
-                case "check_noFastPSkip":\r
-                    controlName = "no-fast-pskip";\r
-                    break;\r
                 case "check_noDCTDecimate":\r
                     controlName = "no-dct-decimate";\r
                     break;\r
@@ -997,6 +1048,9 @@ namespace Handbrake.Controls
                 case "slider_psytrellis":\r
                     controlName = "psy-rd";\r
                     break;\r
+                case "slider_adaptiveQuantStrength":\r
+                    controlName = "aq-strength";\r
+                    break;\r
                 case "drop_adaptBFrames":\r
                     controlName = "b-adapt";\r
                     break;\r
@@ -1011,8 +1065,8 @@ namespace Handbrake.Controls
                 string query = rtf_x264Query.Text.Replace("\n", string.Empty);\r
                 Reset2Defaults();\r
                 rtf_x264Query.Text = query;\r
-                X264_StandardizeOptString();\r
-                X264_SetCurrentSettingsInPanel();\r
+                this.StandardizeOptString();\r
+                this.SetCurrentSettingsInPanel();\r
 \r
                 if (rtf_x264Query.Text == string.Empty)\r
                     Reset2Defaults();\r
index 97759c0..26a9e88 100644 (file)
 as opposed to trying to maximize quality the way a computer understands it, through signal-to-noise ratios that have trouble telling apart fine detail and noise.</value>\r
   </data>\r
   <data name="drop_adaptBFrames.ToolTip" xml:space="preserve">\r
-    <value>When adaptive B-Frames are disabled, the number of B-Frames you specify is the constant length of every B-Frame sequence. \r
-When one of the adaptive modes is enabled, the number of B-Frames is treated as a maximum, with the length of each sequence varying, but never exceeding the max.\r
+    <value>x264 has a variety of algorithms to decide when to use B-frames and how many to use.\r
 \r
-Fast mode takes the same amount of time no matter how many B-frames you specify. However, it doesn't always make the best decisions on how many B-Frames to use in a sequence.\r
+Fast mode takes roughly the same amount of time no matter how many B-frames you specify.  However, while fast, its decisions are often suboptimal.\r
 \r
-Optimal mode gets slower as the maximum number of B-Frames increases, but does a much better job at deciding sequence length, which can mean smaller file sizes and better quality.</value>\r
+Optimal mode gets slower as the maximum number of B-Frames increases, but makes much more accurate decisions, especially when used with B-pyramid.</value>\r
   </data>\r
   <data name="check_Cabac.ToolTip" xml:space="preserve">\r
-    <value>CABAC, or context adaptive binary arithmetic coding, is used by x264 to reduce the bitrate needed for a given quality by 15\%. \r
-This makes it very cool and very useful, and it should be left on whenever possible. However, it is incompatible with the iPod, and makes the AppleTV struggle. So turn it off for those.\r
-\r
-CABAC is a kind of entropy coding, which means that it compresses data by making shorthand symbols to represent long streams of data. The \"entropy\" part means that the symbols it uses the most often are the smallest. \r
-When you disable CABAC, another entropy coding scheme gets enabled, called CAVLC (context adaptive variable-length coding). \r
-CAVLC is a lot less efficient, which is why it needs 15\% more bitrate to achieve the same quality as CABAC.</value>\r
+    <value>After the encoder has done its work, it has a bunch of data that needs to be compressed losslessly, similar to ZIP or RAR.  \r
+H.264 provides two options for this: CAVLC and CABAC.  CABAC decodes a lot slower but compresses significantly better (10-30%), especially at lower bitrates.  \r
+If you're looking to minimize CPU requirements for video playback, disable this option.\r
+Baseline profile, as required for iPods and similar devices, requires CABAC to be disabled.</value>\r
   </data>\r
   <data name="check_noDCTDecimate.ToolTip" xml:space="preserve">\r
-    <value>To save space, x264 will \"zero out\" blocks when it thinks they won't be perceptible by the viewer. \r
-This negligibly reduces quality, but in rare cases it can mess up and produce visible artifacts. \r
-This situation can be alleviated by telling x264 not to decimate DCT blocks.\r
-\r
-It increases quality but also bitrate/file size, so if you use it when you've specified a target bitrate you will end up with a worse picture than without it. \r
-However, when used with constant quality encoding, or if you boost the average bitrate to compensate, you might get a better result.</value>\r
+    <value>x264 normally zeroes out nearly-empty data blocks to save bits to be better used for some other purpose in the video.  \r
+However, this can sometimes have slight negative effects on retention of subtle grain and dither.  \r
+Don't touch this unless you're having banding issues or other such cases where you are having trouble keeping fine noise.</value>\r
   </data>\r
   <data name="drop_trellis.ToolTip" xml:space="preserve">\r
-    <value>Trellis fine-tunes how bitrate is doled out, so it can reduce file size/bitrate or increase quality. \r
-A value of 1 means it only fine-tunes the final encode of a block of pixels, while 2 means it is considered during earlier phases of the decision-making process as well.</value>\r
+    <value>Trellis fine-tunes the rounding of transform coefficients to squeeze out 3-5% more compression at the cost of some speed. \r
+\"Always\" uses trellis not only during the main encoding process, but also during analysis, \r
+which improves compression even more, albeit at great speed cost.  \r
+\r
+Trellis costs more speed at higher bitrates and requires CABAC.</value>\r
   </data>\r
   <data name="drop_deblockBeta.ToolTip" xml:space="preserve">\r
-    <value>x264 includes an in-loop deblocking filter. What this means is that blocky compression artifacts are smoothed away when you play back the video. \r
-It has two settings: strength and threshold, just like a simple filter in Photoshop.\r
-\r
-Strength controls the amount of deblocking applied to the whole frame. If you drop down below 0, you reduce the amount of blurring. \r
-Go too negative, and you'll get an effect somewhat like oversharpening an image. Go into positive values, and the image may become too soft.\r
-\r
-Threshold controls how sensitive the filter is to whether something in a block is detail that needs to be preserved: lower numbers blur details less.\r
+    <value>H.264 has a built-in deblocking filter that smooths out blocking artifacts after decoding each frame.  This not only improves visual quality, but also helps compression significantly. \r
+The deblocking filter takes a lot of CPU power, so if you're looking to minimize CPU requirements for video playback, disable it.\r
 \r
-The default deblocking values are 0 and 0. \r
-This does not mean zero deblocking. \r
-It means x264 will apply the regular deblocking strength and thresholds the codec authors have selected as working the best in most cases.\r
-\r
-While many, many people stick with the default deblocking values of 0,0, and you should never change the deblocking without disabling adaptive quantization, \r
-other people disagree. \r
-Some prefer a slightly less blurred image for live action material, and use values like -2,-1 or -2,-2. Others will raise it to 1,1 or even 3,3 for animation. \r
-While the values for each setting extend from -6 to 6, the consensus is that going below -3 or above 3 is worthless.</value>\r
+The deblocking filter has two adjustable parameters, \"strength\" and \"threshold\". \r
+The former controls how strong (or weak) the deblocker is, while the latter controls how many (or few)  edges it applies to. \r
+Lower values mean less deblocking, higher values mean more deblocking. The default is 0 (normal strength) for both parameters.</value>\r
   </data>\r
   <data name="drop_deblockAlpha.ToolTip" xml:space="preserve">\r
-    <value>x264 includes an in-loop deblocking filter. What this means is that blocky compression artifacts are smoothed away when you play back the video. \r
-It has two settings: strength and threshold, just like a simple filter in Photoshop.\r
-\r
-Strength controls the amount of deblocking applied to the whole frame. If you drop down below 0, you reduce the amount of blurring. \r
-Go too negative, and you'll get an effect somewhat like oversharpening an image. Go into positive values, and the image may become too soft.\r
-\r
-Threshold controls how sensitive the filter is to whether something in a block is detail that needs to be preserved: lower numbers blur details less.\r
+    <value>H.264 has a built-in deblocking filter that smooths out blocking artifacts after decoding each frame.  This not only improves visual quality, but also helps compression significantly. \r
+The deblocking filter takes a lot of CPU power, so if you're looking to minimize CPU requirements for video playback, disable it.\r
 \r
-The default deblocking values are 0 and 0. \r
-This does not mean zero deblocking. \r
-It means x264 will apply the regular deblocking strength and thresholds the codec authors have selected as working the best in most cases.\r
-\r
-While many, many people stick with the default deblocking values of 0,0, and you should never change the deblocking without disabling adaptive quantization, \r
-other people disagree. \r
-Some prefer a slightly less blurred image for live action material, and use values like -2,-1 or -2,-2. Others will raise it to 1,1 or even 3,3 for animation. \r
-While the values for each setting extend from -6 to 6, the consensus is that going below -3 or above 3 is worthless.</value>\r
+The deblocking filter has two adjustable parameters, \"strength\" and \"threshold\". \r
+The former controls how strong (or weak) the deblocker is, while the latter controls how many (or few)  edges it applies to. \r
+Lower values mean less deblocking, higher values mean more deblocking. The default is 0 (normal strength) for both parameters.</value>\r
   </data>\r
   <data name="check_8x8DCT.ToolTip" xml:space="preserve">\r
-    <value>Checking this box lets x264 break key frames down into 8x8 blocks of pixels for analysis. \r
-This is a high profile feature of H.264, which makes it less compatible. It should slightly decrease bitrate or improve quality. \r
-Turn it on whenever possible.</value>\r
+    <value>The 8x8 transform is the single most useful feature of x264 in terms of compression-per-speed.  \r
+It improves compression by at least 5% at a very small speed cost and may provide an unusually high visual quality benefit compared to its compression gain.  \r
+However, it requires High Profile, which many devices may not support.</value>\r
   </data>\r
   <data name="drop_analysis.ToolTip" xml:space="preserve">\r
-    <value>Analysis controls how finely x264 divides up a frame to capture detail. Full macroblocks are 16x16 pixels, but x264 can go down all the way to 4x4 blocks if it judges it necessary. \r
-By default it only breaks up key frames that much. To give x264 the freedom to make the best decisions for all frames, use \"all\" analysis. \r
-If you want to create a high profile H.264 video (which is less compatible with the world at large than main profile), also check the \"8x8 DCT blocks\" box to add yet another block size for analysis.</value>\r
+    <value>Mode decision picks from a variety of options to make its decision: this option chooses what options those are.  \r
+Fewer partitions to check means faster encoding, at the cost of worse decisions, since the best option might have been one that was turned off.</value>\r
   </data>\r
   <data name="drop_subpixelMotionEstimation.ToolTip" xml:space="preserve">\r
-    <value>This setting is finer-grained than the motion estimation settings above. Instead of dealing with whole pixels, it deals with 4 fractional pixels, or quarter pixels (qpel). \r
-Higher levels increase quality by further refining the motion prediction for these quarter pixels, but take longer to encode.\r
+    <value>This setting controls both subpixel-precision motion estimation and mode decision methods.\r
+\r
+Subpixel motion estimation is used for refining motion estimates beyond mere pixel accuracy, improving compression.\r
 \r
-Level 6, turns on a feature called rate distortion optimization, including psychovisual enhancements. \r
-7, the default, enables that rate distortion for B-frames.\r
-8 refines those decisions for I and P frames, and 9 adds on refinement for B-frames as well.</value>\r
+Mode decision is the method used to choose how to encode each block of the frame: a very important decision.\r
+\r
+SAD is the fastest method, followed by SATD, RD, RD refinement, and the slowest, QPRD.\r
+6 or higher is strongly recommended: Psy-RD, a very powerful psy optimization that helps retain detail, requires RD.\r
+10, the most powerful and slowest option, requires trellis=2.</value>\r
   </data>\r
   <data name="drop_MotionEstimationRange.ToolTip" xml:space="preserve">\r
-    <value>This range is the radius, in pixels, x264 should use for motion estimation searches. \r
-It only has an effect when you use Uneven Multi-Hexagonal, Exhaustive, or Transformed Exhaustive searching. \r
-24, 32, and 64 are good values, with each being progressively smaller for progressively less improvement to picture quality.</value>\r
+    <value>This is the distance x264 searches from its best guess at the motion of a block in order to try to find its actual motion.  \r
+Doesn't apply to Diamond or Hexagon search options.  \r
+The default is fine for most content, but extremely high motion video, especially at HD resolutions, may benefit from higher ranges, albeit at a high speed cost.</value>\r
   </data>\r
   <data name="drop_MotionEstimationMethod.ToolTip" xml:space="preserve">\r
-    <value>Controls the motion estimation method. \r
-Motion estimation is how the encoder decides how each block of pixels in a frame has moved, compared to most similar blocks in the other frames it references. \r
-There are many ways of finding the most similar blocks, with varying speeds and accuracy.\r
+    <value>Controls the motion estimation method. Motion estimation is how the encoder estimates how each block of pixels in a frame has moved.  \r
+A better motion search method improves compression at the cost of speed.\r
 \r
-At the most basic setting, dia, x264 will only consider a diamond-shaped region around each pixel.\r
+Diamond: performs an extremely fast and simple search using a diamond pattern.\r
 \r
-The default setting, hex, is similar to dia but uses a hexagon shape.\r
+Hexagon: performs a somewhat more effective but slightly slower search using a hexagon pattern.\r
 \r
-Uneven multi-hexagon, umh, searches a number of different patterns across a wider area and thus is slower than hex and dia but further increases compression efficiency and quality.\r
+Uneven Multi-Hex: performs a very wide search using a variety of patterns, more accurately capturing complex motion.\r
 \r
-esa, an exhaustive search of a square around each pixel (whose size is controlled by the me-range parameter), is much slower and offers only minimal quality gains.\r
+Exhaustive: performs a \"dumb\" search of every pixel in a wide area.  Significantly slower for only a small compression gain.\r
 \r
-tesa, transformed exhaustive search, which performs just as thorough a search, is slower still but offers further slight improvements to quality.</value>\r
+Transformed Exhaustive: Like exhaustive, but makes even more accurate decisions. Accordingly, somewhat slower, also for only a small improvement.</value>\r
   </data>\r
-  <data name="check_pyrmidalBFrames.ToolTip" xml:space="preserve">\r
-    <value>B-frame pyramids are a High Profile feature. Pyramidal B-frames mean that B-frames don't just reference surrounding reference frames - \r
-instead, it also treats a previous B-frame as a reference, improving quality/lowering bitrate at the expense of complexity. \r
-Logically, to reference an earlier B-frame, you must tell x264 to use at least 2 B-frames.</value>\r
+  <data name="drop_directPrediction.ToolTip" xml:space="preserve">\r
+    <value>H.264 allows for two different prediction modes, spatial and temporal, in B-frames.\r
+\r
+Spatial, the default, is almost always better, but temporal is sometimes useful too.\r
+\r
+x264 can, at the cost of a small amount of speed (and accordingly for a small compression gain), adaptively select which is better for each particular frame.</value>\r
   </data>\r
-  <data name="check_weightedBFrames.ToolTip" xml:space="preserve">\r
-    <value>Sometimes x264 will base a B-frame's motion compensation on frames both before and after. \r
-With weighted B-frames, the amount of influence each frame has is related to its distance from the frame being encoded, \r
-instead of both having equal influence. \r
-The AppleTV can have issues with this.</value>\r
+  <data name="drop_bFrames.ToolTip" xml:space="preserve">\r
+    <value>Sane values are ~2-5.  \r
+This specifies the maximum number of sequential B-frames that the encoder can use. \r
+ Large numbers generally won't help significantly unless Adaptive B-frames is set to Optimal.  \r
+Cel-animated source material and B-pyramid also significantly increase the usefulness of larger values. \r
+Baseline profile, as required for iPods and similar devices, requires B-frames to be set to 0 (off).</value>\r
   </data>\r
-  <data name="drop_directPrediction.ToolTip" xml:space="preserve">\r
-    <value>Direct prediction tells x264 what method to use when guessing motion for certain parts of a B-frame. \r
-It can either look at other parts of the current frame (spatial) or compare against the following P-frameframe (temporal). \r
-You're best off setting this to automatic, so x264 decides which method is best on its own. \r
-Don't select none assuming it will be faster; instead it will take longer and look worse. If you're going to choose between spatial and temporal, spatial is usually better.</value>\r
+  <data name="drop_refFrames.ToolTip" xml:space="preserve">\r
+    <value>Sane values are ~1-6.  \r
+The more you add, the better the compression, but the slower the encode.  \r
+Cel animation tends to benefit from more reference frames a lot more than film content. \r
+Note that many hardware devices have limitations on the number of supported reference frames, so if you're encoding for a handheld or standalone player, \r
+don't touch this unless you're absolutely sure you know what you're doing!</value>\r
+  </data>\r
+  <data name="check_weightp.ToolTip" xml:space="preserve">\r
+    <value>Performs extra analysis to decide upon weighting parameters for each frame.  \r
+This improves overall compression slightly and improves the quality of fades greatly. \r
+Baseline profile, as required for iPods and similar devices, requires weighted P-frame prediction to be disabled.  \r
+Note that some devices and players, even those that support Main Profile, \r
+may have problems with Weighted P-frame prediction: the Apple TV is completely incompatible with it, for example.</value>\r
+  </data>\r
+  <data name="slider_adaptiveQuantStrength.ToolTip" xml:space="preserve">\r
+    <value>Psychovisual Rate Distortion Optimization sure is a mouthful, isn't it? Basically, it means x264 tries to retain detail, for better quality to the human eye, \r
+as opposed to trying to maximize quality the way a computer understands it, through signal-to-noise ratios that have trouble telling apart fine detail and noise.</value>\r
+  </data>\r
+  <data name="combo_pyrmidalBFrames.ToolTip" xml:space="preserve">\r
+    <value>This is the distance x264 searches from its best guess at the motion of a block in order to try to find its actual motion.  \r
+Doesn't apply to Diamond or Hexagon search options.  \r
+The default is fine for most content, but extremely high motion video, especially at HD resolutions, \r
+may benefit from higher ranges, albeit at a high speed cost.</value>\r
   </data>\r
 </root>
\ No newline at end of file
index f10bd00..9b6d154 100644 (file)
@@ -183,6 +183,7 @@ namespace Handbrake.Functions
             mainWindow.check_2PassEncode.CheckState = presetQuery.TwoPass ? CheckState.Checked : CheckState.Unchecked;\r
 \r
             mainWindow.drp_videoFramerate.Text = presetQuery.VideoFramerate;\r
+            mainWindow.checkMaximumFramerate.Checked = presetQuery.Pfr;\r
 \r
             mainWindow.check_turbo.CheckState = presetQuery.TurboFirstPass ? CheckState.Checked : CheckState.Unchecked;\r
 \r
index e4557df..203e4e6 100644 (file)
@@ -248,6 +248,9 @@ namespace Handbrake.Functions
             if (mainWindow.drp_videoFramerate.Text != "Same as source")\r
                 query += " -r " + mainWindow.drp_videoFramerate.Text;\r
 \r
+            if (mainWindow.checkMaximumFramerate.Checked)\r
+                query += " --pfr ";\r
+\r
             #endregion\r
 \r
             #region Audio Settings Tab\r
index 8523fc1..f0c7fdb 100644 (file)
@@ -197,6 +197,11 @@ namespace Handbrake.Functions
         public string VideoFramerate { get; set; }\r
 \r
         /// <summary>\r
+        /// Gets or sets a value indicating whether Pfr.\r
+        /// </summary>\r
+        public bool Pfr { get; set; }\r
+\r
+        /// <summary>\r
         /// Gets or sets AverageVideoBitrate.\r
         /// </summary>\r
         public string AverageVideoBitrate { get; set; }\r
@@ -343,6 +348,7 @@ namespace Handbrake.Functions
             Match twoPass = Regex.Match(input, @" -2");\r
             Match turboFirstPass = Regex.Match(input, @" -T");\r
             Match optimizeMP4 = Regex.Match(input, @" -O");\r
+            Match pfr = Regex.Match(input, @" --pfr");\r
 \r
             // Audio Settings Tab\r
             Match noAudio = Regex.Match(input, @"-a none");\r
@@ -522,6 +528,8 @@ namespace Handbrake.Functions
                 thisQuery.VideoFramerate = videoFramerate.Success\r
                                                ? videoFramerate.ToString().Replace("-r ", string.Empty)\r
                                                : "Same as source";\r
+\r
+                thisQuery.Pfr = pfr.Success;\r
                 thisQuery.Grayscale = grayscale.Success;\r
                 thisQuery.TwoPass = twoPass.Success;\r
                 thisQuery.TurboFirstPass = turboFirstPass.Success;\r
index f6535cb..3f148f4 100644 (file)
@@ -100,7 +100,6 @@ namespace Handbrake
             this.Label47 = new System.Windows.Forms.Label();\r
             this.Label3 = new System.Windows.Forms.Label();\r
             this.tab_audio = new System.Windows.Forms.TabPage();\r
-            this.AudioSettings = new Handbrake.Controls.AudioPanel();\r
             this.AudioMenuRowHeightHack = new System.Windows.Forms.ImageList(this.components);\r
             this.tab_video = new System.Windows.Forms.TabPage();\r
             this.radio_cq = new System.Windows.Forms.RadioButton();\r
@@ -110,19 +109,15 @@ namespace Handbrake
             this.check_2PassEncode = new System.Windows.Forms.CheckBox();\r
             this.Label2 = new System.Windows.Forms.Label();\r
             this.lbl_SliderValue = new System.Windows.Forms.Label();\r
-            this.Label46 = new System.Windows.Forms.Label();\r
+            this.lbl_framerate = new System.Windows.Forms.Label();\r
             this.tab_picture = new System.Windows.Forms.TabPage();\r
-            this.PictureSettings = new Handbrake.Controls.PictureSettings();\r
             this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox();\r
             this.tabs_panel = new System.Windows.Forms.TabControl();\r
             this.tab_filters = new System.Windows.Forms.TabPage();\r
-            this.Filters = new Handbrake.Controls.Filters();\r
             this.tab_subtitles = new System.Windows.Forms.TabPage();\r
-            this.Subtitles = new Handbrake.Controls.Subtitles();\r
             this.tab_chapters = new System.Windows.Forms.TabPage();\r
             this.label31 = new System.Windows.Forms.Label();\r
             this.tab_advanced = new System.Windows.Forms.TabPage();\r
-            this.x264Panel = new Handbrake.Controls.x264Panel();\r
             this.tab_query = new System.Windows.Forms.TabPage();\r
             this.btn_clear = new System.Windows.Forms.Button();\r
             this.label34 = new System.Windows.Forms.Label();\r
@@ -175,6 +170,12 @@ namespace Handbrake
             this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();\r
             this.openPreset = new System.Windows.Forms.OpenFileDialog();\r
             this.File_ChapterImport = new System.Windows.Forms.OpenFileDialog();\r
+            this.checkMaximumFramerate = new System.Windows.Forms.CheckBox();\r
+            this.PictureSettings = new Handbrake.Controls.PictureSettings();\r
+            this.Filters = new Handbrake.Controls.Filters();\r
+            this.AudioSettings = new Handbrake.Controls.AudioPanel();\r
+            this.Subtitles = new Handbrake.Controls.Subtitles();\r
+            this.x264Panel = new Handbrake.Controls.x264Panel();\r
             notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);\r
             notifyIconMenu.SuspendLayout();\r
             ((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).BeginInit();\r
@@ -276,9 +277,9 @@ namespace Handbrake
             this.check_turbo.AutoSize = true;\r
             this.check_turbo.BackColor = System.Drawing.Color.Transparent;\r
             this.check_turbo.Enabled = false;\r
-            this.check_turbo.Location = new System.Drawing.Point(146, 123);\r
+            this.check_turbo.Location = new System.Drawing.Point(146, 143);\r
             this.check_turbo.Name = "check_turbo";\r
-            this.check_turbo.Size = new System.Drawing.Size(99, 17);\r
+            this.check_turbo.Size = new System.Drawing.Size(101, 17);\r
             this.check_turbo.TabIndex = 7;\r
             this.check_turbo.Text = "Turbo first Pass";\r
             this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster.");\r
@@ -298,17 +299,18 @@ namespace Handbrake
             "24",\r
             "25",\r
             "29.97"});\r
-            this.drp_videoFramerate.Location = new System.Drawing.Point(125, 68);\r
+            this.drp_videoFramerate.Location = new System.Drawing.Point(125, 62);\r
             this.drp_videoFramerate.Name = "drp_videoFramerate";\r
-            this.drp_videoFramerate.Size = new System.Drawing.Size(126, 21);\r
+            this.drp_videoFramerate.Size = new System.Drawing.Size(125, 21);\r
             this.drp_videoFramerate.TabIndex = 2;\r
             this.ToolTip.SetToolTip(this.drp_videoFramerate, "Can be left to \"Same as source\" in most cases.");\r
+            this.drp_videoFramerate.SelectedIndexChanged += new System.EventHandler(this.drp_videoFramerate_SelectedIndexChanged);\r
             // \r
             // slider_videoQuality\r
             // \r
             this.slider_videoQuality.BackColor = System.Drawing.SystemColors.Window;\r
             this.slider_videoQuality.Enabled = false;\r
-            this.slider_videoQuality.Location = new System.Drawing.Point(347, 120);\r
+            this.slider_videoQuality.Location = new System.Drawing.Point(376, 120);\r
             this.slider_videoQuality.Margin = new System.Windows.Forms.Padding(0);\r
             this.slider_videoQuality.Maximum = 100;\r
             this.slider_videoQuality.Name = "slider_videoQuality";\r
@@ -321,7 +323,7 @@ namespace Handbrake
             // text_filesize\r
             // \r
             this.text_filesize.Enabled = false;\r
-            this.text_filesize.Location = new System.Drawing.Point(482, 36);\r
+            this.text_filesize.Location = new System.Drawing.Point(511, 36);\r
             this.text_filesize.Name = "text_filesize";\r
             this.text_filesize.Size = new System.Drawing.Size(81, 21);\r
             this.text_filesize.TabIndex = 12;\r
@@ -329,7 +331,7 @@ namespace Handbrake
             // \r
             // text_bitrate\r
             // \r
-            this.text_bitrate.Location = new System.Drawing.Point(482, 63);\r
+            this.text_bitrate.Location = new System.Drawing.Point(511, 63);\r
             this.text_bitrate.Name = "text_bitrate";\r
             this.text_bitrate.Size = new System.Drawing.Size(81, 21);\r
             this.text_bitrate.TabIndex = 10;\r
@@ -823,15 +825,6 @@ namespace Handbrake
             this.tab_audio.Text = "Audio";\r
             this.tab_audio.UseVisualStyleBackColor = true;\r
             // \r
-            // AudioSettings\r
-            // \r
-            this.AudioSettings.BackColor = System.Drawing.Color.Transparent;\r
-            this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.AudioSettings.Location = new System.Drawing.Point(0, 0);\r
-            this.AudioSettings.Name = "AudioSettings";\r
-            this.AudioSettings.Size = new System.Drawing.Size(715, 310);\r
-            this.AudioSettings.TabIndex = 0;\r
-            // \r
             // AudioMenuRowHeightHack\r
             // \r
             this.AudioMenuRowHeightHack.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;\r
@@ -841,6 +834,8 @@ namespace Handbrake
             // tab_video\r
             // \r
             this.tab_video.BackColor = System.Drawing.Color.Transparent;\r
+            this.tab_video.Controls.Add(this.checkMaximumFramerate);\r
+            this.tab_video.Controls.Add(this.drp_videoFramerate);\r
             this.tab_video.Controls.Add(this.radio_cq);\r
             this.tab_video.Controls.Add(this.radio_avgBitrate);\r
             this.tab_video.Controls.Add(this.radio_targetFilesize);\r
@@ -854,8 +849,7 @@ namespace Handbrake
             this.tab_video.Controls.Add(this.slider_videoQuality);\r
             this.tab_video.Controls.Add(this.text_bitrate);\r
             this.tab_video.Controls.Add(this.lbl_SliderValue);\r
-            this.tab_video.Controls.Add(this.Label46);\r
-            this.tab_video.Controls.Add(this.drp_videoFramerate);\r
+            this.tab_video.Controls.Add(this.lbl_framerate);\r
             this.tab_video.Location = new System.Drawing.Point(4, 22);\r
             this.tab_video.Name = "tab_video";\r
             this.tab_video.Padding = new System.Windows.Forms.Padding(3);\r
@@ -868,9 +862,9 @@ namespace Handbrake
             // \r
             this.radio_cq.AutoSize = true;\r
             this.radio_cq.BackColor = System.Drawing.Color.Transparent;\r
-            this.radio_cq.Location = new System.Drawing.Point(336, 97);\r
+            this.radio_cq.Location = new System.Drawing.Point(365, 97);\r
             this.radio_cq.Name = "radio_cq";\r
-            this.radio_cq.Size = new System.Drawing.Size(105, 17);\r
+            this.radio_cq.Size = new System.Drawing.Size(110, 17);\r
             this.radio_cq.TabIndex = 18;\r
             this.radio_cq.Text = "Constant Quality:";\r
             this.radio_cq.UseVisualStyleBackColor = false;\r
@@ -881,9 +875,9 @@ namespace Handbrake
             this.radio_avgBitrate.AutoSize = true;\r
             this.radio_avgBitrate.BackColor = System.Drawing.Color.Transparent;\r
             this.radio_avgBitrate.Checked = true;\r
-            this.radio_avgBitrate.Location = new System.Drawing.Point(336, 64);\r
+            this.radio_avgBitrate.Location = new System.Drawing.Point(365, 64);\r
             this.radio_avgBitrate.Name = "radio_avgBitrate";\r
-            this.radio_avgBitrate.Size = new System.Drawing.Size(112, 17);\r
+            this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17);\r
             this.radio_avgBitrate.TabIndex = 17;\r
             this.radio_avgBitrate.TabStop = true;\r
             this.radio_avgBitrate.Text = "Avg Bitrate (kbps):";\r
@@ -894,9 +888,9 @@ namespace Handbrake
             // \r
             this.radio_targetFilesize.AutoSize = true;\r
             this.radio_targetFilesize.BackColor = System.Drawing.Color.Transparent;\r
-            this.radio_targetFilesize.Location = new System.Drawing.Point(336, 37);\r
+            this.radio_targetFilesize.Location = new System.Drawing.Point(365, 37);\r
             this.radio_targetFilesize.Name = "radio_targetFilesize";\r
-            this.radio_targetFilesize.Size = new System.Drawing.Size(107, 17);\r
+            this.radio_targetFilesize.Size = new System.Drawing.Size(108, 17);\r
             this.radio_targetFilesize.TabIndex = 16;\r
             this.radio_targetFilesize.Text = "Target Size (MB):";\r
             this.radio_targetFilesize.UseVisualStyleBackColor = false;\r
@@ -917,9 +911,9 @@ namespace Handbrake
             // \r
             this.check_2PassEncode.AutoSize = true;\r
             this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent;\r
-            this.check_2PassEncode.Location = new System.Drawing.Point(125, 100);\r
+            this.check_2PassEncode.Location = new System.Drawing.Point(125, 120);\r
             this.check_2PassEncode.Name = "check_2PassEncode";\r
-            this.check_2PassEncode.Size = new System.Drawing.Size(106, 17);\r
+            this.check_2PassEncode.Size = new System.Drawing.Size(104, 17);\r
             this.check_2PassEncode.TabIndex = 6;\r
             this.check_2PassEncode.Text = "2-Pass Encoding";\r
             this.check_2PassEncode.UseVisualStyleBackColor = false;\r
@@ -930,7 +924,7 @@ namespace Handbrake
             this.Label2.AutoSize = true;\r
             this.Label2.BackColor = System.Drawing.Color.Transparent;\r
             this.Label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.Label2.Location = new System.Drawing.Point(334, 13);\r
+            this.Label2.Location = new System.Drawing.Point(363, 13);\r
             this.Label2.Name = "Label2";\r
             this.Label2.Size = new System.Drawing.Size(47, 13);\r
             this.Label2.TabIndex = 8;\r
@@ -941,21 +935,21 @@ namespace Handbrake
             this.lbl_SliderValue.AutoSize = true;\r
             this.lbl_SliderValue.BackColor = System.Drawing.Color.Transparent;\r
             this.lbl_SliderValue.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.lbl_SliderValue.Location = new System.Drawing.Point(480, 100);\r
+            this.lbl_SliderValue.Location = new System.Drawing.Point(509, 100);\r
             this.lbl_SliderValue.Name = "lbl_SliderValue";\r
             this.lbl_SliderValue.Size = new System.Drawing.Size(21, 13);\r
             this.lbl_SliderValue.TabIndex = 15;\r
             this.lbl_SliderValue.Text = "RF";\r
             // \r
-            // Label46\r
+            // lbl_framerate\r
             // \r
-            this.Label46.AutoSize = true;\r
-            this.Label46.BackColor = System.Drawing.Color.Transparent;\r
-            this.Label46.Location = new System.Drawing.Point(13, 71);\r
-            this.Label46.Name = "Label46";\r
-            this.Label46.Size = new System.Drawing.Size(90, 13);\r
-            this.Label46.TabIndex = 1;\r
-            this.Label46.Text = "Framerate (FPS):";\r
+            this.lbl_framerate.AutoSize = true;\r
+            this.lbl_framerate.BackColor = System.Drawing.Color.Transparent;\r
+            this.lbl_framerate.Location = new System.Drawing.Point(13, 65);\r
+            this.lbl_framerate.Name = "lbl_framerate";\r
+            this.lbl_framerate.Size = new System.Drawing.Size(90, 13);\r
+            this.lbl_framerate.TabIndex = 1;\r
+            this.lbl_framerate.Text = "Framerate (FPS):";\r
             // \r
             // tab_picture\r
             // \r
@@ -969,25 +963,13 @@ namespace Handbrake
             this.tab_picture.Text = "Picture";\r
             this.tab_picture.UseVisualStyleBackColor = true;\r
             // \r
-            // PictureSettings\r
-            // \r
-            this.PictureSettings.BackColor = System.Drawing.Color.Transparent;\r
-            this.PictureSettings.CurrentlySelectedPreset = null;\r
-            this.PictureSettings.Enabled = false;\r
-            this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.PictureSettings.Location = new System.Drawing.Point(0, 0);\r
-            this.PictureSettings.Name = "PictureSettings";\r
-            this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);\r
-            this.PictureSettings.Size = new System.Drawing.Size(666, 279);\r
-            this.PictureSettings.TabIndex = 0;\r
-            // \r
             // Check_ChapterMarkers\r
             // \r
             this.Check_ChapterMarkers.AutoSize = true;\r
             this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;\r
             this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32);\r
             this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";\r
-            this.Check_ChapterMarkers.Size = new System.Drawing.Size(136, 17);\r
+            this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17);\r
             this.Check_ChapterMarkers.TabIndex = 1;\r
             this.Check_ChapterMarkers.Text = "Create chapter markers";\r
             this.Check_ChapterMarkers.UseVisualStyleBackColor = false;\r
@@ -1020,15 +1002,6 @@ namespace Handbrake
             this.tab_filters.Text = "Video Filters";\r
             this.tab_filters.UseVisualStyleBackColor = true;\r
             // \r
-            // Filters\r
-            // \r
-            this.Filters.BackColor = System.Drawing.Color.Transparent;\r
-            this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.Filters.Location = new System.Drawing.Point(0, 0);\r
-            this.Filters.Name = "Filters";\r
-            this.Filters.Size = new System.Drawing.Size(713, 310);\r
-            this.Filters.TabIndex = 0;\r
-            // \r
             // tab_subtitles\r
             // \r
             this.tab_subtitles.Controls.Add(this.Subtitles);\r
@@ -1040,15 +1013,6 @@ namespace Handbrake
             this.tab_subtitles.Text = "Subtitles";\r
             this.tab_subtitles.UseVisualStyleBackColor = true;\r
             // \r
-            // Subtitles\r
-            // \r
-            this.Subtitles.BackColor = System.Drawing.Color.Transparent;\r
-            this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.Subtitles.Location = new System.Drawing.Point(0, 0);\r
-            this.Subtitles.Name = "Subtitles";\r
-            this.Subtitles.Size = new System.Drawing.Size(722, 310);\r
-            this.Subtitles.TabIndex = 0;\r
-            // \r
             // tab_chapters\r
             // \r
             this.tab_chapters.BackColor = System.Drawing.Color.Transparent;\r
@@ -1087,16 +1051,6 @@ namespace Handbrake
             this.tab_advanced.Text = "Advanced";\r
             this.tab_advanced.UseVisualStyleBackColor = true;\r
             // \r
-            // x264Panel\r
-            // \r
-            this.x264Panel.BackColor = System.Drawing.Color.Transparent;\r
-            this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.x264Panel.Location = new System.Drawing.Point(0, 0);\r
-            this.x264Panel.Name = "x264Panel";\r
-            this.x264Panel.Size = new System.Drawing.Size(720, 306);\r
-            this.x264Panel.TabIndex = 0;\r
-            this.x264Panel.X264Query = "";\r
-            // \r
             // tab_query\r
             // \r
             this.tab_query.Controls.Add(this.btn_clear);\r
@@ -1212,9 +1166,9 @@ namespace Handbrake
             this.treeView_presets.ShowLines = false;\r
             this.treeView_presets.Size = new System.Drawing.Size(240, 424);\r
             this.treeView_presets.TabIndex = 0;\r
+            this.treeView_presets.MouseUp += new System.Windows.Forms.MouseEventHandler(this.treeview_presets_mouseUp);\r
             this.treeView_presets.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_presets_AfterSelect);\r
             this.treeView_presets.KeyUp += new System.Windows.Forms.KeyEventHandler(this.treeView_presets_deleteKey);\r
-            this.treeView_presets.MouseUp += new System.Windows.Forms.MouseEventHandler(this.treeview_presets_mouseUp);\r
             // \r
             // presets_menu\r
             // \r
@@ -1663,6 +1617,66 @@ namespace Handbrake
             // \r
             this.File_ChapterImport.Filter = "CSV Files|*.csv";\r
             // \r
+            // checkMaximumFramerate\r
+            // \r
+            this.checkMaximumFramerate.AutoSize = true;\r
+            this.checkMaximumFramerate.BackColor = System.Drawing.Color.Transparent;\r
+            this.checkMaximumFramerate.Location = new System.Drawing.Point(125, 89);\r
+            this.checkMaximumFramerate.Name = "checkMaximumFramerate";\r
+            this.checkMaximumFramerate.Size = new System.Drawing.Size(132, 17);\r
+            this.checkMaximumFramerate.TabIndex = 19;\r
+            this.checkMaximumFramerate.Text = "Peak Framerate (VFR)";\r
+            this.checkMaximumFramerate.UseVisualStyleBackColor = false;\r
+            // \r
+            // PictureSettings\r
+            // \r
+            this.PictureSettings.BackColor = System.Drawing.Color.Transparent;\r
+            this.PictureSettings.CurrentlySelectedPreset = null;\r
+            this.PictureSettings.Enabled = false;\r
+            this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.PictureSettings.Location = new System.Drawing.Point(0, 0);\r
+            this.PictureSettings.Name = "PictureSettings";\r
+            this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);\r
+            this.PictureSettings.Size = new System.Drawing.Size(666, 279);\r
+            this.PictureSettings.TabIndex = 0;\r
+            // \r
+            // Filters\r
+            // \r
+            this.Filters.BackColor = System.Drawing.Color.Transparent;\r
+            this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.Filters.Location = new System.Drawing.Point(0, 0);\r
+            this.Filters.Name = "Filters";\r
+            this.Filters.Size = new System.Drawing.Size(713, 310);\r
+            this.Filters.TabIndex = 0;\r
+            // \r
+            // AudioSettings\r
+            // \r
+            this.AudioSettings.BackColor = System.Drawing.Color.Transparent;\r
+            this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.AudioSettings.Location = new System.Drawing.Point(0, 0);\r
+            this.AudioSettings.Name = "AudioSettings";\r
+            this.AudioSettings.Size = new System.Drawing.Size(715, 310);\r
+            this.AudioSettings.TabIndex = 0;\r
+            // \r
+            // Subtitles\r
+            // \r
+            this.Subtitles.BackColor = System.Drawing.Color.Transparent;\r
+            this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.Subtitles.Location = new System.Drawing.Point(0, 0);\r
+            this.Subtitles.Name = "Subtitles";\r
+            this.Subtitles.Size = new System.Drawing.Size(722, 310);\r
+            this.Subtitles.TabIndex = 0;\r
+            // \r
+            // x264Panel\r
+            // \r
+            this.x264Panel.BackColor = System.Drawing.Color.Transparent;\r
+            this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.x264Panel.Location = new System.Drawing.Point(0, 0);\r
+            this.x264Panel.Name = "x264Panel";\r
+            this.x264Panel.Size = new System.Drawing.Size(720, 306);\r
+            this.x264Panel.TabIndex = 0;\r
+            this.x264Panel.X264Query = "";\r
+            // \r
             // frmMain\r
             // \r
             this.AllowDrop = true;\r
@@ -1763,7 +1777,7 @@ namespace Handbrake
         internal System.Windows.Forms.TabPage tab_picture;\r
         internal System.Windows.Forms.CheckBox Check_ChapterMarkers;\r
         internal System.Windows.Forms.TabControl tabs_panel;\r
-        internal System.Windows.Forms.Label Label46;\r
+        internal System.Windows.Forms.Label lbl_framerate;\r
         private System.Windows.Forms.GroupBox groupBox2;\r
         internal System.Windows.Forms.Button btn_setDefault;\r
         private System.Windows.Forms.ToolStripMenuItem mnu_SelectDefault;\r
@@ -1866,5 +1880,6 @@ namespace Handbrake
         private DataGridViewTextBoxColumn name;\r
         private ToolStripMenuItem mnu_exportMacPreset;\r
         private ToolStripProgressBar ProgressBarStatus;\r
+        internal CheckBox checkMaximumFramerate;\r
     }\r
 }
\ No newline at end of file
index 520bbf4..ee7df21 100644 (file)
@@ -149,8 +149,8 @@ namespace Handbrake
                     PresetLoader.LoadPreset(this, presetQuery, Properties.Settings.Default.defaultPreset,\r
                                             presetHandler.GetPreset(Properties.Settings.Default.defaultPreset).PictureSettings);\r
 \r
-                    x264Panel.X264_StandardizeOptString();\r
-                    x264Panel.X264_SetCurrentSettingsInPanel();\r
+                    x264Panel.StandardizeOptString();\r
+                    x264Panel.SetCurrentSettingsInPanel();\r
                 }\r
             }\r
             else\r
@@ -866,8 +866,8 @@ namespace Handbrake
                         PresetLoader.LoadPreset(this, presetQuery, presetName, loadPictureSettings);\r
 \r
                         // The x264 widgets will need updated, so do this now:\r
-                        x264Panel.X264_StandardizeOptString();\r
-                        x264Panel.X264_SetCurrentSettingsInPanel();\r
+                        x264Panel.StandardizeOptString();\r
+                        x264Panel.SetCurrentSettingsInPanel();\r
 \r
                         // Finally, let this window have a copy of the preset settings.\r
                         CurrentlySelectedPreset = preset;\r
@@ -1739,6 +1739,24 @@ namespace Handbrake
         }\r
 \r
         /// <summary>\r
+        /// When the FrameRate is not Same As Source, show the Max/Constant Mode dropdown\r
+        /// </summary>\r
+        /// <param name="sender">\r
+        /// The sender.\r
+        /// </param>\r
+        /// <param name="e">\r
+        /// The e.\r
+        /// </param>\r
+        private void drp_videoFramerate_SelectedIndexChanged(object sender, EventArgs e)\r
+        {\r
+            if (this.drp_videoFramerate.SelectedIndex == 0)\r
+            {\r
+                this.checkMaximumFramerate.Visible = false;\r
+                this.checkMaximumFramerate.CheckState = CheckState.Unchecked;\r
+            }\r
+        }\r
+\r
+        /// <summary>\r
         /// Set the container format options\r
         /// </summary>\r
         public void setContainerOpts()\r
@@ -2167,8 +2185,8 @@ namespace Handbrake
                 PresetLoader.LoadPreset(this, presetQuery, "Load Back From Queue", true);\r
 \r
                 // The x264 widgets will need updated, so do this now:\r
-                x264Panel.X264_StandardizeOptString();\r
-                x264Panel.X264_SetCurrentSettingsInPanel();\r
+                x264Panel.StandardizeOptString();\r
+                x264Panel.SetCurrentSettingsInPanel();\r
 \r
                 // Finally, let this window have a copy of the preset settings.\r
                 CurrentlySelectedPreset = null;\r
index 49b97dd..7f7acfb 100644 (file)
   <resheader name="writer">\r
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
-  <metadata name="notifyIconMenu.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
-    <value>False</value>\r
-  </metadata>\r
   <metadata name="notifyIconMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
     <value>17, 54</value>\r
   </metadata>\r
+  <metadata name="notifyIconMenu.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
+    <value>False</value>\r
+  </metadata>\r
   <metadata name="DVD_Save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
     <value>556, 15</value>\r
   </metadata>\r