Vixen
02b45cc4
csharp
public enum VideoSampleMode

Which shape of picture the shader is looking at.

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

Remarks

⚠ Three cases rather than a plane count, because the two one-plane layouts are not the same picture. A greyscale frame has luma and no colour, so its chroma is the neutral 128 the shader supplies for itself; a BGRA frame has been through the conversion already and must not go through it again. Counting planes cannot tell them apart, and a shader that guessed would draw one of them in false colour.

Fields and properties (3)

  • Planar

    Three planes: luma, blue-difference, red-difference.

  • Grey

    One plane of luma. The chroma is neutral.

  • Packed

    One plane of colour that needs no conversion at all.

Used by (2)

  • VideoConstantsVixen.Video.Rendering
  • VideoConstantsTestsVixen.Video.Rendering.Tests