2022-01-11 23:30:30 +01:00
|
|
|
|
namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The matroska SeekHead segment. All positions are relative to the Segment container.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
internal class SeekHead
|
2021-09-23 15:29:12 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2022-01-11 23:30:30 +01:00
|
|
|
|
/// Initializes a new instance of the <see cref="SeekHead"/> class.
|
2021-09-23 15:29:12 +02:00
|
|
|
|
/// </summary>
|
2022-01-11 23:30:30 +01:00
|
|
|
|
/// <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)
|
2021-09-23 15:29:12 +02:00
|
|
|
|
{
|
2022-01-11 23:30:30 +01:00
|
|
|
|
InfoPosition = infoPosition;
|
|
|
|
|
|
TracksPosition = tracksPosition;
|
|
|
|
|
|
CuesPosition = cuesPosition;
|
|
|
|
|
|
}
|
2021-09-23 15:29:12 +02:00
|
|
|
|
|
2022-01-11 23:30:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets relative file position of the info segment.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long InfoPosition { get; }
|
2021-09-23 15:29:12 +02:00
|
|
|
|
|
2022-01-11 23:30:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the relative file position of the tracks segment.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long TracksPosition { get; }
|
2021-09-23 15:29:12 +02:00
|
|
|
|
|
2022-01-11 23:30:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the relative file position of the cues segment.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CuesPosition { get; }
|
2021-09-23 15:29:12 +02:00
|
|
|
|
}
|