\r
analysis = new List<AdvancedChoice>\r
{\r
+ new AdvancedChoice { Label = "Most (Default)", IsDefault = true },\r
new AdvancedChoice { Label = "None", Value = "none" },\r
- new AdvancedChoice { Label = "Some (Default)", IsDefault = true },\r
+ new AdvancedChoice { Label = "Some", Value = "i4x4,i8x8", },\r
new AdvancedChoice { Label = "All", Value = "all" }\r
};\r
\r
/// The default number.\r
/// </param>\r
/// <returns>\r
+ /// List of Advanced Choices Options.\r
/// </returns>\r
private static List<AdvancedChoice> CreateNumberList(int lower, int upper, int defaultNumber)\r
{\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets a value indicating whether PsychovisualRateDistortionVisible.\r
+ /// </summary>\r
+ public bool PsychovisualRateDistortionVisible\r
+ {\r
+ get\r
+ {\r
+ int value;\r
+ int.TryParse(this.SubpixelMotionEstimation.Value.Trim(), out value);\r
+ return value >= 6;\r
+ }\r
+ }\r
+\r
/// <summary>\r
/// Gets or sets PyramidalBFrames.\r
/// </summary>\r
{\r
this.subpixelMotionEstimation = value;\r
this.NotifyOfPropertyChange(() => this.SubpixelMotionEstimation);\r
+ this.NotifyOfPropertyChange(() => this.PsychovisualRateDistortionVisible);\r
this.UpdateOptionsString();\r
}\r
}\r
</Slider.ToolTip>\r
</Slider>\r
\r
- <Label Content="Psychovisual Rate Distortion:" Grid.Row="1" Grid.Column="0" Style="{StaticResource AdvancedLabel}" />\r
+ <Label Content="Psychovisual Rate Distortion:" Grid.Row="1" Grid.Column="0" Style="{StaticResource AdvancedLabel}"\r
+ Visibility="{Binding PsychovisualRateDistortionVisible, Converter={StaticResource VisibilityConverter}}" />\r
<Slider Grid.Row="1" Grid.Column="1" Minimum="0.0" Maximum="2.0" TickPlacement="BottomRight"\r
- TickFrequency="0.1" SmallChange="0.1" LargeChange="0.2" IsSnapToTickEnabled="True"\r
- Value="{Binding PsychovisualRateDistortion}" Style="{StaticResource LongToolTipHolder}">\r
+ TickFrequency="0.1" SmallChange="0.1" LargeChange="0.2" IsSnapToTickEnabled="True"\r
+ Visibility="{Binding PsychovisualRateDistortionVisible, Converter={StaticResource VisibilityConverter}}"\r
+ Value="{Binding PsychovisualRateDistortion}" Style="{StaticResource LongToolTipHolder}">\r
<Slider.ToolTip>\r
<TextBlock Text="{x:Static Properties:Resources.Advanced_PsychovisualRateDistortionToolTip}" Style="{StaticResource LongToolTip}" />\r
</Slider.ToolTip>\r
Homepage: <http://handbrake.fr/>.\r
It may be used under the terms of the GNU General Public License. */\r
\r
-using HandBrake.ApplicationServices.Model.Encoding;\r
-\r
namespace Handbrake\r
{\r
using System;\r