VideoColorSpace Class

The color space of a VideoFrame (https://w3c.github.io/webcodecs/#videocolorspace): its color primaries, transfer characteristics, matrix coefficients and range, as the codecs describe them.

public sealed class VideoColorSpace

Constructors

NameDescription
VideoColorSpace(VideoColorSpaceInit?)Creates a color space (https://w3c.github.io/webcodecs/#dom-videocolorspace-videocolorspace).

VideoColorSpace(VideoColorSpaceInit?)

VideoColorSpace.cs

Creates a color space (https://w3c.github.io/webcodecs/#dom-videocolorspace-videocolorspace).

public VideoColorSpace(VideoColorSpaceInit? init = null)

Parameters

init VideoColorSpaceInit?
The members of the color space (none: unknown).

See also

Properties

NameDescription
FullRangeGets whether the samples use the full range of their values, or null when it is unknown.
MatrixGets the matrix coefficients, or null when they are unknown.
PrimariesGets the color primaries, or null when they are unknown.
TransferGets the transfer characteristics, or null when they are unknown.

Gets whether the samples use the full range of their values, or null when it is unknown.

public bool? FullRange { get; }

Gets the matrix coefficients, or null when they are unknown.

public VideoMatrixCoefficients? Matrix { get; }

Gets the color primaries, or null when they are unknown.

public VideoColorPrimaries? Primaries { get; }

Gets the transfer characteristics, or null when they are unknown.

public VideoTransferCharacteristics? Transfer { get; }

Methods

NameDescription
ToJson()Returns the members of the color space (the default toJSON steps).

Returns the members of the color space (the default toJSON steps).

public VideoColorSpaceInit ToJson()