aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-10-08 09:34:34 +0000
committerJPVenson <github@jpb.email>2024-10-08 09:34:34 +0000
commitd3a3d9fce3b891eb0be274a0cdc45a989e557652 (patch)
treebd232ef477c259f1fafa204016f6efd4dcb8691f /MediaBrowser.Model/Session
parentee1bdf4e222125ed7382165fd7e09599ca4bd4aa (diff)
parentaaf20592bb0bbdf4f0f0d99fed091758e68ae850 (diff)
Merge remote-tracking branch 'jellyfinorigin/master' into feature/EFUserData
Diffstat (limited to 'MediaBrowser.Model/Session')
-rw-r--r--MediaBrowser.Model/Session/HardwareEncodingType.cs43
-rw-r--r--MediaBrowser.Model/Session/TranscodeReason.cs1
-rw-r--r--MediaBrowser.Model/Session/TranscodingInfo.cs78
3 files changed, 61 insertions, 61 deletions
diff --git a/MediaBrowser.Model/Session/HardwareEncodingType.cs b/MediaBrowser.Model/Session/HardwareEncodingType.cs
deleted file mode 100644
index cf424fef5..000000000
--- a/MediaBrowser.Model/Session/HardwareEncodingType.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace MediaBrowser.Model.Session
-{
- /// <summary>
- /// Enum HardwareEncodingType.
- /// </summary>
- public enum HardwareEncodingType
- {
- /// <summary>
- /// AMD AMF.
- /// </summary>
- AMF = 0,
-
- /// <summary>
- /// Intel Quick Sync Video.
- /// </summary>
- QSV = 1,
-
- /// <summary>
- /// NVIDIA NVENC.
- /// </summary>
- NVENC = 2,
-
- /// <summary>
- /// Video4Linux2 V4L2.
- /// </summary>
- V4L2M2M = 3,
-
- /// <summary>
- /// Video Acceleration API (VAAPI).
- /// </summary>
- VAAPI = 4,
-
- /// <summary>
- /// Video ToolBox.
- /// </summary>
- VideoToolBox = 5,
-
- /// <summary>
- /// Rockchip Media Process Platform (RKMPP).
- /// </summary>
- RKMPP = 6
- }
-}
diff --git a/MediaBrowser.Model/Session/TranscodeReason.cs b/MediaBrowser.Model/Session/TranscodeReason.cs
index bbdf4536b..39c5ac8fa 100644
--- a/MediaBrowser.Model/Session/TranscodeReason.cs
+++ b/MediaBrowser.Model/Session/TranscodeReason.cs
@@ -18,6 +18,7 @@ namespace MediaBrowser.Model.Session
// Video Constraints
VideoProfileNotSupported = 1 << 6,
VideoRangeTypeNotSupported = 1 << 24,
+ VideoCodecTagNotSupported = 1 << 25,
VideoLevelNotSupported = 1 << 7,
VideoResolutionNotSupported = 1 << 8,
VideoBitDepthNotSupported = 1 << 9,
diff --git a/MediaBrowser.Model/Session/TranscodingInfo.cs b/MediaBrowser.Model/Session/TranscodingInfo.cs
index 000cbd4c5..ae25267ac 100644
--- a/MediaBrowser.Model/Session/TranscodingInfo.cs
+++ b/MediaBrowser.Model/Session/TranscodingInfo.cs
@@ -1,34 +1,76 @@
#nullable disable
-#pragma warning disable CS1591
-namespace MediaBrowser.Model.Session
+using MediaBrowser.Model.Entities;
+
+namespace MediaBrowser.Model.Session;
+
+/// <summary>
+/// Class holding information on a runnning transcode.
+/// </summary>
+public class TranscodingInfo
{
- public class TranscodingInfo
- {
- public string AudioCodec { get; set; }
+ /// <summary>
+ /// Gets or sets the thread count used for encoding.
+ /// </summary>
+ public string AudioCodec { get; set; }
- public string VideoCodec { get; set; }
+ /// <summary>
+ /// Gets or sets the thread count used for encoding.
+ /// </summary>
+ public string VideoCodec { get; set; }
- public string Container { get; set; }
+ /// <summary>
+ /// Gets or sets the thread count used for encoding.
+ /// </summary>
+ public string Container { get; set; }
- public bool IsVideoDirect { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether the video is passed through.
+ /// </summary>
+ public bool IsVideoDirect { get; set; }
- public bool IsAudioDirect { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether the audio is passed through.
+ /// </summary>
+ public bool IsAudioDirect { get; set; }
- public int? Bitrate { get; set; }
+ /// <summary>
+ /// Gets or sets the bitrate.
+ /// </summary>
+ public int? Bitrate { get; set; }
- public float? Framerate { get; set; }
+ /// <summary>
+ /// Gets or sets the framerate.
+ /// </summary>
+ public float? Framerate { get; set; }
- public double? CompletionPercentage { get; set; }
+ /// <summary>
+ /// Gets or sets the completion percentage.
+ /// </summary>
+ public double? CompletionPercentage { get; set; }
- public int? Width { get; set; }
+ /// <summary>
+ /// Gets or sets the video width.
+ /// </summary>
+ public int? Width { get; set; }
- public int? Height { get; set; }
+ /// <summary>
+ /// Gets or sets the video height.
+ /// </summary>
+ public int? Height { get; set; }
- public int? AudioChannels { get; set; }
+ /// <summary>
+ /// Gets or sets the audio channels.
+ /// </summary>
+ public int? AudioChannels { get; set; }
- public HardwareEncodingType? HardwareAccelerationType { get; set; }
+ /// <summary>
+ /// Gets or sets the hardware acceleration type.
+ /// </summary>
+ public HardwareAccelerationType? HardwareAccelerationType { get; set; }
- public TranscodeReason TranscodeReasons { get; set; }
- }
+ /// <summary>
+ /// Gets or sets the transcode reasons.
+ /// </summary>
+ public TranscodeReason TranscodeReasons { get; set; }
}