Vixen
02b45cc4
csharp
public enum VideoDecodeStatus

What a call to DecodeNext did.

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

Remarks

A status rather than a because the three outcomes are genuinely different and a caller has to act differently on each. NeedMoreData in particular is not an error and not an end: a codec with B-frames or a container with a partial cluster will return it several times in a row while it accumulates, and a player that treated it as the end would stop a second before every file finished.

Fields and properties (4)

  • Decoded

    A frame was written. Its timestamp says when to show it.

  • NeedMoreData

    Nothing was written yet and the stream has not ended. Call again; the decoder is buffering.

  • EndOfStream

    The stream has ended. Nothing more will be produced without a Seek.

  • FormatChanged

    A frame was written and it is a different shape from the last one. Format has already been updated; anything the caller sized against it — a texture, a pool — needs rebuilding.

Used by (11)

  • CountingCodecVixen.Video.Tests
  • IVideoCodecVixen.Video
  • IVideoStreamDecoderVixen.Video
  • MatroskaAudioTestsVixen.Video.Tests
  • OpusAudioTrackTestsVixen.Video.Codecs.Tests
  • StarvedDecoderVixen.Video.Tests
  • StepDecoderVixen.Video.Tests
  • UncompressedVideoCodecVixen.Video
  • VideoPlayerVixen.Video
  • WebMVideoStreamDecoderVixen.Video
  • WebMVideoStreamDecoderTestsVixen.Video.Tests