summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-01-23 17:55:08 +0000
committersr55 <[email protected]>2015-01-23 17:55:08 +0000
commit83f65503203d8c1db0a12d3377e8c20f8eb120e7 (patch)
tree523f56d75e60236b17b013e36feac909e2d1bb5d /win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
parent718407b65f64851ef5212d4e8b4bca2686ed7835 (diff)
WinGui: Fix tune options on the video tab for x265. Hide the Level option since it's not relevant.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6805 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs24
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);