diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 9bcb229fd..3378bbfa3 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -63,6 +63,7 @@ namespace HandBrakeWPF.ViewModels private VideoTune videoTune;
private bool fastDecode;
private bool displayTuneControls;
+ private bool displayLevelControl;
#endregion
@@ -581,6 +582,26 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
+ /// Gets or sets a value indicating whether display level control.
+ /// </summary>
+ public bool DisplayLevelControl
+ {
+ get
+ {
+ return this.displayLevelControl;
+ }
+ set
+ {
+ if (value.Equals(this.displayLevelControl))
+ {
+ return;
+ }
+ this.displayLevelControl = value;
+ this.NotifyOfPropertyChange(() => this.DisplayLevelControl);
+ }
+ }
+
+ /// <summary>
/// Gets or sets a value indicating whether fast decode.
/// </summary>
public bool FastDecode
@@ -1232,7 +1253,8 @@ namespace HandBrakeWPF.ViewModels this.DisplayOptimiseOptions = this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X265 || this.SelectedVideoEncoder == VideoEncoder.QuickSync;
this.DisplayNonQSVControls = this.SelectedVideoEncoder != VideoEncoder.QuickSync;
this.DisplayTurboFirstPass = selectedEncoder == VideoEncoder.X264;
- this.DisplayTuneControls = SelectedVideoEncoder == VideoEncoder.X264;
+ this.DisplayTuneControls = SelectedVideoEncoder == VideoEncoder.X264 || SelectedVideoEncoder == VideoEncoder.X265;
+ this.DisplayLevelControl = SelectedVideoEncoder == VideoEncoder.X264;
// Refresh Display
this.NotifyOfPropertyChange(() => this.Rfqp);
|