summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs44
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueView.xaml23
2 files changed, 55 insertions, 12 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
index 201ffc1e1..661ad12eb 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
@@ -9,6 +9,7 @@
namespace HandBrake.ApplicationServices.Model
{
+ using System;
using System.Collections.ObjectModel;
using System.Linq;
@@ -199,6 +200,7 @@ namespace HandBrake.ApplicationServices.Model
#endregion
#region Output Settings
+
/// <summary>
/// Gets or sets OutputFormat.
/// </summary>
@@ -213,6 +215,7 @@ namespace HandBrake.ApplicationServices.Model
/// Gets or sets a value indicating whether IPod5GSupport.
/// </summary>
public bool IPod5GSupport { get; set; }
+
#endregion
#region Picture
@@ -276,6 +279,7 @@ namespace HandBrake.ApplicationServices.Model
/// Gets or sets Modulus.
/// </summary>
public int? Modulus { get; set; }
+
#endregion
#region Filters
@@ -339,6 +343,7 @@ namespace HandBrake.ApplicationServices.Model
/// Gets or sets a value indicating whether Grayscale.
/// </summary>
public bool Grayscale { get; set; }
+
#endregion
#region Video
@@ -397,6 +402,7 @@ namespace HandBrake.ApplicationServices.Model
/// Gets or sets AllowedPassthruOptions.
/// </summary>
public AllowedPassthru AllowedPassthruOptions { get; set; }
+
#endregion
#region Subtitles
@@ -405,6 +411,7 @@ namespace HandBrake.ApplicationServices.Model
/// Gets or sets SubtitleTracks.
/// </summary>
public ObservableCollection<SubtitleTrack> SubtitleTracks { get; set; }
+
#endregion
#region Chapters
@@ -520,8 +527,11 @@ namespace HandBrake.ApplicationServices.Model
{
if (this.OutputFormat == OutputFormat.Mp4)
{
- bool audio = this.AudioTracks.Any(item => item.Encoder == AudioEncoder.Ac3Passthrough ||
- item.Encoder == AudioEncoder.Ac3 || item.Encoder == AudioEncoder.DtsPassthrough || item.Encoder == AudioEncoder.Passthrough);
+ bool audio =
+ this.AudioTracks.Any(
+ item =>
+ item.Encoder == AudioEncoder.Ac3Passthrough || item.Encoder == AudioEncoder.Ac3
+ || item.Encoder == AudioEncoder.DtsPassthrough || item.Encoder == AudioEncoder.Passthrough);
bool subtitles = this.SubtitleTracks.Any(track => track.SubtitleType != SubtitleType.VobSub);
@@ -565,6 +575,36 @@ namespace HandBrake.ApplicationServices.Model
}
}
}
+
+ /// <summary>
+ /// Gets the picture settings desc.
+ /// </summary>
+ public string PictureSettingsDesc
+ {
+ get
+ {
+ string resolution = string.Empty;
+ switch (this.Anamorphic)
+ {
+ case Anamorphic.Strict:
+ resolution = "Anamorphic: Strict";
+ break;
+ case Anamorphic.Loose:
+ resolution = "Anamorphic: Loose, Width: " + this.Width;
+ break;
+ case Anamorphic.Custom:
+ resolution = "Anamorphic: Custom, Resolution: " + this.Width + "x" + this.Height;
+ break;
+ case Anamorphic.None:
+ resolution = "Resolution: " + this.Width + "x" + this.Height;
+ break;
+ }
+
+ return resolution + Environment.NewLine + "Crop Top: " + this.Cropping.Top + ", Botton: " + this.Cropping.Bottom + ", Left: "
+ + this.Cropping.Left + ", Right: " + this.Cropping.Right;
+ }
+ }
+
#endregion
}
}
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml
index 3b4af61cf..00f77f985 100644
--- a/win/CS/HandBrakeWPF/Views/QueueView.xaml
+++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml
@@ -230,10 +230,11 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
+ <RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="90" />
+ <ColumnDefinition Width="95" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
@@ -243,21 +244,23 @@
<TextBlock FontWeight="Bold" Text="Destination:" VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" />
<TextBlock Text="{Binding Task.Destination}" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" />
- <TextBlock FontWeight="Bold" Text="Video:" Grid.Row="2" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" Text="Picture Settings:" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0" />
+ <TextBlock Text="{Binding Task.PictureSettingsDesc}" TextWrapping="Wrap" Grid.Row="2" Grid.Column="1" />
+
+ <TextBlock FontWeight="Bold" Text="Video:" Grid.Row="3" Grid.Column="0" />
<TextBlock Text="{Binding Task.VideoEncoder, Converter={StaticResource enumComboConverter}}"
- Grid.Row="2" Grid.Column="1" />
+ Grid.Row="3" Grid.Column="1" />
- <TextBlock FontWeight="Bold" Text="Audio: " Grid.Row="3" Grid.Column="0"/>
+ <TextBlock FontWeight="Bold" Text="Audio: " Grid.Row="4" Grid.Column="0"/>
<TextBlock Text="{Binding Task.AudioTracks, Converter={StaticResource audioTrackDisplayConverter}}"
- Grid.Row="3" Grid.Column="1"/>
+ Grid.Row="4" Grid.Column="1"/>
- <TextBlock FontWeight="Bold" VerticalAlignment="Top" Text="Subtitles: " Grid.Row="4" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" VerticalAlignment="Top" Text="Subtitles: " Grid.Row="5" Grid.Column="0" />
<TextBlock Text="{Binding Task.SubtitleTracks, Converter={StaticResource subtitleTrackDisplayConverter}}"
- Grid.Row="4" Grid.Column="1" />
-
+ Grid.Row="5" Grid.Column="1" />
- <TextBlock FontWeight="Bold" VerticalAlignment="Top" Grid.Row="5" Grid.Column="0" Text="Advanced: " />
- <TextBlock Text="{Binding Task, Converter={StaticResource encoderOptionsTooltipConverter}}" Grid.Row="5" Grid.Column="1" TextWrapping="Wrap" />
+ <TextBlock FontWeight="Bold" VerticalAlignment="Top" Grid.Row="6" Grid.Column="0" Text="Advanced: " />
+ <TextBlock Text="{Binding Task, Converter={StaticResource encoderOptionsTooltipConverter}}" Grid.Row="6" Grid.Column="1" TextWrapping="Wrap" />
</Grid>
</Setter.Value>