Vixen
02b45cc4
csharp
public sealed class MatroskaPacket

One 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 TrackNumber

    Which track it belongs to.

  • public TimeSpan Timestamp

    When it is due, measured from the start of the segment.

  • public TimeSpan Duration

    How long it lasts, or zero if neither the block nor the track said.

  • public bool IsKeyFrame

    Whether the stream can be joined here.

  • public int Length

    How many bytes it holds.

  • public ReadOnlySpan<byte> Data

    The bytes.

Used by (4)

  • MatroskaAudioStreamDecoderVixen.Video
  • MatroskaDemuxerVixen.Video
  • MatroskaDemuxerTestsVixen.Video.Tests
  • WebMVideoStreamDecoderVixen.Video