aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/SeekHead.cs
blob: d9e346c03e302ee90ead23d40f9fc42a5cdb472f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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; }
    }
}