diff options
| author | Tim Eisele <Shadowghost@users.noreply.github.com> | 2024-09-09 16:43:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-09 08:43:37 -0600 |
| commit | 0d85af019c6ebc855ab2d8e689abe72b995225b4 (patch) | |
| tree | 466daf3cd9b8f37307b4104cd272afc9806d92c6 /MediaBrowser.Model/Entities | |
| parent | 54f663b0f3c4a9cc5a4f44d1afcb6e1de03c0503 (diff) | |
Use enums for encoding options (#12561)
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/DeinterlaceMethod.cs | 19 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/EncoderPreset.cs | 64 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/HardwareAccelerationType.cs | 49 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/TonemappingAlgorithm.cs | 49 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/TonemappingMode.cs | 34 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/TonemappingRange.cs | 24 |
6 files changed, 239 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/DeinterlaceMethod.cs b/MediaBrowser.Model/Entities/DeinterlaceMethod.cs new file mode 100644 index 000000000..d05aac433 --- /dev/null +++ b/MediaBrowser.Model/Entities/DeinterlaceMethod.cs @@ -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 +} diff --git a/MediaBrowser.Model/Entities/EncoderPreset.cs b/MediaBrowser.Model/Entities/EncoderPreset.cs new file mode 100644 index 000000000..74c071433 --- /dev/null +++ b/MediaBrowser.Model/Entities/EncoderPreset.cs @@ -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 +} diff --git a/MediaBrowser.Model/Entities/HardwareAccelerationType.cs b/MediaBrowser.Model/Entities/HardwareAccelerationType.cs new file mode 100644 index 000000000..198a2e00f --- /dev/null +++ b/MediaBrowser.Model/Entities/HardwareAccelerationType.cs @@ -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 +} diff --git a/MediaBrowser.Model/Entities/TonemappingAlgorithm.cs b/MediaBrowser.Model/Entities/TonemappingAlgorithm.cs new file mode 100644 index 000000000..488006e0b --- /dev/null +++ b/MediaBrowser.Model/Entities/TonemappingAlgorithm.cs @@ -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 +} diff --git a/MediaBrowser.Model/Entities/TonemappingMode.cs b/MediaBrowser.Model/Entities/TonemappingMode.cs new file mode 100644 index 000000000..e10a0b4ad --- /dev/null +++ b/MediaBrowser.Model/Entities/TonemappingMode.cs @@ -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 +} diff --git a/MediaBrowser.Model/Entities/TonemappingRange.cs b/MediaBrowser.Model/Entities/TonemappingRange.cs new file mode 100644 index 000000000..b1446b81c --- /dev/null +++ b/MediaBrowser.Model/Entities/TonemappingRange.cs @@ -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 +} |
