aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models
diff options
context:
space:
mode:
Diffstat (limited to 'src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models')
-rw-r--r--src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs43
-rw-r--r--src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs55
2 files changed, 48 insertions, 50 deletions
diff --git a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs
index 02c6741ec..415d6da00 100644
--- a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs
+++ b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs
@@ -1,29 +1,28 @@
-namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models
+namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
+
+/// <summary>
+/// The matroska Info segment.
+/// </summary>
+internal class Info
{
/// <summary>
- /// The matroska Info segment.
+ /// Initializes a new instance of the <see cref="Info"/> class.
/// </summary>
- internal class Info
+ /// <param name="timestampScale">The timestamp scale in nanoseconds.</param>
+ /// <param name="duration">The duration of the entire file.</param>
+ public Info(long timestampScale, double? duration)
{
- /// <summary>
- /// Initializes a new instance of the <see cref="Info"/> class.
- /// </summary>
- /// <param name="timestampScale">The timestamp scale in nanoseconds.</param>
- /// <param name="duration">The duration of the entire file.</param>
- public Info(long timestampScale, double? duration)
- {
- TimestampScale = timestampScale;
- Duration = duration;
- }
+ TimestampScale = timestampScale;
+ Duration = duration;
+ }
- /// <summary>
- /// Gets the timestamp scale in nanoseconds.
- /// </summary>
- public long TimestampScale { get; }
+ /// <summary>
+ /// Gets the timestamp scale in nanoseconds.
+ /// </summary>
+ public long TimestampScale { get; }
- /// <summary>
- /// Gets the total duration of the file.
- /// </summary>
- public double? Duration { get; }
- }
+ /// <summary>
+ /// Gets the total duration of the file.
+ /// </summary>
+ public double? Duration { get; }
}
diff --git a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs
index d9e346c03..95e4fd882 100644
--- a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs
+++ b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs
@@ -1,36 +1,35 @@
-namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models
+namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
+
+/// <summary>
+/// The matroska SeekHead segment. All positions are relative to the Segment container.
+/// </summary>
+internal class SeekHead
{
/// <summary>
- /// The matroska SeekHead segment. All positions are relative to the Segment container.
+ /// Initializes a new instance of the <see cref="SeekHead"/> class.
/// </summary>
- internal class SeekHead
+ /// <param name="infoPosition">The relative file position of the info segment.</param>
+ /// <param name="tracksPosition">The relative file position of the tracks segment.</param>
+ /// <param name="cuesPosition">The relative file position of the cues segment.</param>
+ public SeekHead(long infoPosition, long tracksPosition, long cuesPosition)
{
- /// <summary>
- /// Initializes a new instance of the <see cref="SeekHead"/> class.
- /// </summary>
- /// <param name="infoPosition">The relative file position of the info segment.</param>
- /// <param name="tracksPosition">The relative file position of the tracks segment.</param>
- /// <param name="cuesPosition">The relative file position of the cues segment.</param>
- public SeekHead(long infoPosition, long tracksPosition, long cuesPosition)
- {
- InfoPosition = infoPosition;
- TracksPosition = tracksPosition;
- CuesPosition = cuesPosition;
- }
+ InfoPosition = infoPosition;
+ TracksPosition = tracksPosition;
+ CuesPosition = cuesPosition;
+ }
- /// <summary>
- /// Gets relative file position of the info segment.
- /// </summary>
- public long InfoPosition { get; }
+ /// <summary>
+ /// Gets relative file position of the info segment.
+ /// </summary>
+ public long InfoPosition { get; }
- /// <summary>
- /// Gets the relative file position of the tracks segment.
- /// </summary>
- public long TracksPosition { get; }
+ /// <summary>
+ /// Gets the relative file position of the tracks segment.
+ /// </summary>
+ public long TracksPosition { get; }
- /// <summary>
- /// Gets the relative file position of the cues segment.
- /// </summary>
- public long CuesPosition { get; }
- }
+ /// <summary>
+ /// Gets the relative file position of the cues segment.
+ /// </summary>
+ public long CuesPosition { get; }
}