Vixen
02b45cc4
csharp
public readonly ref struct VideoPacket

One compressed unit, on its way to a codec.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A struct, so the span cannot be captured. A codec that wanted to keep the bytes — and a codec with B-frames does — has to copy them into its own storage, which is the decision it should be making explicitly rather than by holding a reference into a demuxer's pool.

Fields and properties (4)

  • public ReadOnlySpan<byte> Data

    The bytes.

  • public TimeSpan Timestamp

    When the picture is due.

  • public TimeSpan Duration

    How long it lasts, or zero.

  • public bool IsKeyFrame

    Whether the stream can be joined here.

Methods (1)

  • public VideoPacket(ReadOnlySpan<byte> data, TimeSpan timestamp, TimeSpan duration, bool isKeyFrame)

    One compressed unit, on its way to a codec.

Used by (4)

  • CountingCodecVixen.Video.Tests
  • IVideoCodecVixen.Video
  • UncompressedVideoCodecVixen.Video
  • WebMVideoStreamDecoderVixen.Video