blob: 8cf266d7e1ad874382b94d13f0de6443941fcd1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PreviewSettings.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// The preview settings.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Interop.Model.Preview
{
using HandBrake.ApplicationServices.Interop.Model.Encoding;
using HandBrake.ApplicationServices.Services.Encode.Model;
/// <summary>
/// The preview settings.
/// </summary>
public class PreviewSettings
{
/// <summary>
/// Initializes a new instance of the <see cref="PreviewSettings"/> class.
/// </summary>
public PreviewSettings()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="PreviewSettings"/> class.
/// </summary>
/// <param name="task">The task.</param>
public PreviewSettings(EncodeTask task)
{
this.Cropping = new Cropping(task.Cropping);
this.MaxWidth = task.MaxWidth ?? 0;
this.MaxHeight = task.MaxHeight ?? 0;
this.KeepDisplayAspect = task.KeepDisplayAspect;
this.TitleNumber = task.Title;
this.Anamorphic = task.Anamorphic;
this.Modulus = task.Modulus;
this.Width = task.Width ?? 0;
this.Height = task.Height ?? 0;
this.PixelAspectX = task.PixelAspectX;
this.PixelAspectY = task.PixelAspectY;
}
/// <summary>
/// Gets or sets the cropping.
/// </summary>
public Cropping Cropping { get; set; }
/// <summary>
/// Gets or sets the max width.
/// </summary>
public int MaxWidth { get; set; }
/// <summary>
/// Gets or sets the max height.
/// </summary>
public int MaxHeight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether keep display aspect.
/// </summary>
public bool KeepDisplayAspect { get; set; }
/// <summary>
/// Gets or sets the title number.
/// </summary>
public int TitleNumber { get; set; }
/// <summary>
/// Gets or sets the anamorphic.
/// </summary>
public Anamorphic Anamorphic { get; set; }
/// <summary>
/// Gets or sets the modulus.
/// </summary>
public int? Modulus { get; set; }
/// <summary>
/// Gets or sets the width.
/// </summary>
public int Width { get; set; }
/// <summary>
/// Gets or sets the height.
/// </summary>
public int Height { get; set; }
/// <summary>
/// Gets or sets the pixel aspect x.
/// </summary>
public int PixelAspectX { get; set; }
/// <summary>
/// Gets or sets the pixel aspect y.
/// </summary>
public int PixelAspectY { get; set; }
}
}
|