csharp
public sealed class MatroskaPacketOne block of one track: the bytes a codec is given, and when they belong.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Rented, not owned. A packet comes from ReadPacket and goes back through Release. Its Data is valid until then and meaningless afterwards — a demuxed hour of 1080p is a hundred thousand packets, and allocating an array for each of them is the one thing a container reader must not do.
Fields and properties (6)
public int TrackNumberWhich track it belongs to.
public TimeSpan TimestampWhen it is due, measured from the start of the segment.
public TimeSpan DurationHow long it lasts, or zero if neither the block nor the track said.
public bool IsKeyFrameWhether the stream can be joined here.
public int LengthHow many bytes it holds.
public ReadOnlySpan<byte> DataThe bytes.
Used by (4)
- MatroskaAudioStreamDecoderVixen.Video
- MatroskaDemuxerVixen.Video
- MatroskaDemuxerTestsVixen.Video.Tests
- WebMVideoStreamDecoderVixen.Video