mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 18:14:42 +01:00
Use enums for encoding options (#12561)
This commit is contained in:
19
MediaBrowser.Model/Entities/DeinterlaceMethod.cs
Normal file
19
MediaBrowser.Model/Entities/DeinterlaceMethod.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing deinterlace methods.
|
||||
/// </summary>
|
||||
public enum DeinterlaceMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// YADIF.
|
||||
/// </summary>
|
||||
yadif = 0,
|
||||
|
||||
/// <summary>
|
||||
/// BWDIF.
|
||||
/// </summary>
|
||||
bwdif = 1
|
||||
}
|
||||
64
MediaBrowser.Model/Entities/EncoderPreset.cs
Normal file
64
MediaBrowser.Model/Entities/EncoderPreset.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing encoder presets.
|
||||
/// </summary>
|
||||
public enum EncoderPreset
|
||||
{
|
||||
/// <summary>
|
||||
/// Auto preset.
|
||||
/// </summary>
|
||||
auto = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Placebo preset.
|
||||
/// </summary>
|
||||
placebo = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Veryslow preset.
|
||||
/// </summary>
|
||||
veryslow = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Slower preset.
|
||||
/// </summary>
|
||||
slower = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Slow preset.
|
||||
/// </summary>
|
||||
slow = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Medium preset.
|
||||
/// </summary>
|
||||
medium = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Fast preset.
|
||||
/// </summary>
|
||||
fast = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Faster preset.
|
||||
/// </summary>
|
||||
faster = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Veryfast preset.
|
||||
/// </summary>
|
||||
veryfast = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Superfast preset.
|
||||
/// </summary>
|
||||
superfast = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Ultrafast preset.
|
||||
/// </summary>
|
||||
ultrafast = 10
|
||||
}
|
||||
49
MediaBrowser.Model/Entities/HardwareAccelerationType.cs
Normal file
49
MediaBrowser.Model/Entities/HardwareAccelerationType.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing hardware acceleration types.
|
||||
/// </summary>
|
||||
public enum HardwareAccelerationType
|
||||
{
|
||||
/// <summary>
|
||||
/// Software accelleration.
|
||||
/// </summary>
|
||||
none = 0,
|
||||
|
||||
/// <summary>
|
||||
/// AMD AMF.
|
||||
/// </summary>
|
||||
amf = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Intel Quick Sync Video.
|
||||
/// </summary>
|
||||
qsv = 2,
|
||||
|
||||
/// <summary>
|
||||
/// NVIDIA NVENC.
|
||||
/// </summary>
|
||||
nvenc = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Video4Linux2 V4L2M2M.
|
||||
/// </summary>
|
||||
v4l2m2m = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Video Acceleration API (VAAPI).
|
||||
/// </summary>
|
||||
vaapi = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Video ToolBox.
|
||||
/// </summary>
|
||||
videotoolbox = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Rockchip Media Process Platform (RKMPP).
|
||||
/// </summary>
|
||||
rkmpp = 7
|
||||
}
|
||||
49
MediaBrowser.Model/Entities/TonemappingAlgorithm.cs
Normal file
49
MediaBrowser.Model/Entities/TonemappingAlgorithm.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing tonemapping algorithms.
|
||||
/// </summary>
|
||||
public enum TonemappingAlgorithm
|
||||
{
|
||||
/// <summary>
|
||||
/// None.
|
||||
/// </summary>
|
||||
none = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Clip.
|
||||
/// </summary>
|
||||
clip = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Linear.
|
||||
/// </summary>
|
||||
linear = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Gamma.
|
||||
/// </summary>
|
||||
gamma = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Reinhard.
|
||||
/// </summary>
|
||||
reinhard = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Hable.
|
||||
/// </summary>
|
||||
hable = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Mobius.
|
||||
/// </summary>
|
||||
mobius = 6,
|
||||
|
||||
/// <summary>
|
||||
/// BT2390.
|
||||
/// </summary>
|
||||
bt2390 = 7
|
||||
}
|
||||
34
MediaBrowser.Model/Entities/TonemappingMode.cs
Normal file
34
MediaBrowser.Model/Entities/TonemappingMode.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing tonemapping modes.
|
||||
/// </summary>
|
||||
public enum TonemappingMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Auto.
|
||||
/// </summary>
|
||||
auto = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Max.
|
||||
/// </summary>
|
||||
max = 1,
|
||||
|
||||
/// <summary>
|
||||
/// RGB.
|
||||
/// </summary>
|
||||
rgb = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Lum.
|
||||
/// </summary>
|
||||
lum = 3,
|
||||
|
||||
/// <summary>
|
||||
/// ITP.
|
||||
/// </summary>
|
||||
itp = 4
|
||||
}
|
||||
24
MediaBrowser.Model/Entities/TonemappingRange.cs
Normal file
24
MediaBrowser.Model/Entities/TonemappingRange.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Enum containing tonemapping ranges.
|
||||
/// </summary>
|
||||
public enum TonemappingRange
|
||||
{
|
||||
/// <summary>
|
||||
/// Auto.
|
||||
/// </summary>
|
||||
auto = 0,
|
||||
|
||||
/// <summary>
|
||||
/// TV.
|
||||
/// </summary>
|
||||
tv = 1,
|
||||
|
||||
/// <summary>
|
||||
/// PC.
|
||||
/// </summary>
|
||||
pc = 2
|
||||
}
|
||||
Reference in New Issue
Block a user