blob: b221ceef6c1f6691e7e6051c26cafa6f1ca44922 (
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
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="VideoTuneFactory.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 video tune factory.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Services.Encode.Factories
{
/// <summary>
/// The video tune factory.
/// </summary>
public class VideoTuneFactory
{
/// <summary>
/// The get display name for a given short name.
/// LibHB doesn't currently support this.
/// </summary>
/// <param name="shortName">
/// The short name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetDisplayName(string shortName)
{
switch (shortName)
{
case "auto":
return "Auto";
case "film":
return "Film";
case "animation":
return "Animation";
case "grain":
return "Grain";
case "stillimage":
return "Still Image";
case "psnr":
return "PSNR";
case "ssim":
return "SSIM";
case "fastdecode":
return "Fast Decode";
case "zerolatency":
return "Zero Latency";
}
return shortName;
}
}
}
|