Vixen
02b45cc4
csharp
public readonly record struct VideoTrackInfo

Everything a codec needs to know before it sees a packet.

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

Remarks

A record rather than the container's own track type, so that a codec never references a demuxer. That is not tidiness: it is what lets an MP4 reader arrive later and reuse every codec anybody has written against this.

Fields and properties (8)

  • public string CodecId

    What the container called it — V_VP9, V_UNCOMPRESSED. Matroska's spelling is used even by a container that spells it differently, because a registry has to agree on one.

  • public int Width

    The coded width in samples.

  • public int Height

    The coded height in samples.

  • public ReadOnlyMemory<byte> CodecPrivate

    The codec's own header, or empty if it needs none.

  • public string FourCc

    The sample format of an uncompressed track, or empty.

  • public VideoRational FrameRate

    The nominal rate, or unknown.

  • public VideoColourRange Range

    What range the container said the samples use.

  • public VideoColourMatrix Matrix

    What coefficients it said they were made with.

Methods (1)

  • public VideoTrackInfo(string CodecId, int Width, int Height, ReadOnlyMemory<byte> CodecPrivate = default(ReadOnlyMemory<byte>), string FourCc = "", VideoRational FrameRate = default(VideoRational), VideoColourRange Range = Limited, VideoColourMatrix Matrix = Bt709)

    Everything a codec needs to know before it sees a packet.

Used by (7)

  • CountingFactoryVixen.Video.Tests
  • IVideoCodecFactoryVixen.Video
  • UncompressedVideoCodecVixen.Video
  • UncompressedVideoCodecFactoryVixen.Video
  • VideoCodecRegistryVixen.Video
  • VideoPlaybackVixen.Video
  • WebMVideoStreamDecoderVixen.Video