diff options
| author | cvium <clausvium@gmail.com> | 2021-09-23 15:29:12 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-09-23 15:29:12 +0200 |
| commit | 9c15f96e12a0d48a70cbca8380bf78a4f2512b03 (patch) | |
| tree | 068bc87052c9554afa788bcafd6022e7545f8189 /src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs | |
| parent | 1ebd3c9ac33ab99813307728ad6efbf53a667d4e (diff) | |
Add first draft of keyframe extraction for Matroska
Diffstat (limited to 'src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs')
| -rw-r--r-- | src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs new file mode 100644 index 000000000..d9e346c03 --- /dev/null +++ b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs @@ -0,0 +1,36 @@ +namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models +{ + /// <summary> + /// The matroska SeekHead segment. All positions are relative to the Segment container. + /// </summary> + internal class SeekHead + { + /// <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; + } + + /// <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 cues segment. + /// </summary> + public long CuesPosition { get; } + } +} |
