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 VideoColorSpaceConstructors
| Name | Description |
|---|---|
| VideoColorSpace(VideoColorSpaceInit?) | Creates a color space (https://w3c.github.io/webcodecs/#dom-videocolorspace-videocolorspace). |
VideoColorSpace(VideoColorSpaceInit?)
VideoColorSpace.csCreates a color space (https://w3c.github.io/webcodecs/#dom-videocolorspace-videocolorspace).
public VideoColorSpace(VideoColorSpaceInit? init = null)Properties
| Name | Description |
|---|---|
| FullRange | Gets whether the samples use the full range of their values, or null when it is unknown. |
| Matrix | Gets the matrix coefficients, or null when they are unknown. |
| Primaries | Gets the color primaries, or null when they are unknown. |
| Transfer | Gets the transfer characteristics, or null when they are unknown. |
FullRange
VideoColorSpace.csGets whether the samples use the full range of their values, or null when it is unknown.
public bool? FullRange { get; }Matrix
VideoColorSpace.csGets the matrix coefficients, or null when they are unknown.
public VideoMatrixCoefficients? Matrix { get; }Property value
See also
Primaries
VideoColorSpace.csGets the color primaries, or null when they are unknown.
public VideoColorPrimaries? Primaries { get; }Property value
See also
Transfer
VideoColorSpace.csGets the transfer characteristics, or null when they are unknown.
public VideoTransferCharacteristics? Transfer { get; }Methods
| Name | Description |
|---|---|
| ToJson() | Returns the members of the color space (the default toJSON steps). |
ToJson()
VideoColorSpace.csReturns the members of the color space (the default toJSON steps).
public VideoColorSpaceInit ToJson()