csharp
public readonly ref struct VideoPacketOne 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> DataThe bytes.
public TimeSpan TimestampWhen the picture is due.
public TimeSpan DurationHow long it lasts, or zero.
public bool IsKeyFrameWhether 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