public sealed class UncompressedVideoCodecThe decoder for video that was never encoded.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
What PcmStreamDecoder is to audio. Every other codec is a package somebody opts into; this one is here so that the video path can be exercised, tested and shipped without any of them. A title sequence, a UI sting, a rendered cutscene at 320×240 — the cases where a decoder would cost more in binary size than the file costs in disk — are also genuinely served by it.
The FourCC is the format. Matroska stores it in ColourSpace on the track and says nothing else about the layout, so a track with no FourCC is taken as I420 — which is what every muxer that writes uncompressed video writes, and the only guess with a defensible default.
YV12 exists to be got wrong. It is I420 with the two chroma planes the other way round, and a decoder that ignores the difference produces a picture whose reds are blue. Both are here because both are written, and the swap is one line that has to be in the right place.
Fields and properties (1)
public VideoFormat FormatWhat it produces. Valid once the first frame has been decoded.
Methods (6)
public UncompressedVideoCodec(in VideoTrackInfo track)Creates a codec for a track.
public VideoDecodeStatus Decode(in VideoPacket packet, VideoFrame destination)public VideoDecodeStatus Drain(VideoFrame destination)public void Reset()public void Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public static VideoPixelLayout LayoutOf(string fourCc)Which layout a FourCC names.
Used by (1)
- UncompressedVideoCodecFactoryVixen.Video