diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-01-20 08:54:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 08:54:40 -0700 |
| commit | 34ee6d82fb38b553d0ccd192fb7b2acfe2433c16 (patch) | |
| tree | 1dd8c39e69302a13adbed2f8415a01ea62434a07 /src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs | |
| parent | a4246648f4b4d9df89da4830a7e7b49770eddc02 (diff) | |
| parent | 90736ee346e1e78095667d060826c22e57525bb3 (diff) | |
Merge pull request #6600 from cvium/keyframe_extraction_v1
Diffstat (limited to 'src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs')
| -rw-r--r-- | src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs | 35 |
1 files changed, 35 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..95e4fd882 --- /dev/null +++ b/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs @@ -0,0 +1,35 @@ +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; } +} |
