Class VideoColorSpace
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The VideoColorSpace interface of the 'WebCodecs API' represents the color space of a video.
[Value("VideoColorSpace")]
public class VideoColorSpace
- Inheritance
-
VideoColorSpace
- Inherited Members
Remarks
Constructors
VideoColorSpace()
public VideoColorSpace()
VideoColorSpace(VideoColorSpaceInit)
The VideoColorSpace() constructor creates a new VideoColorSpace object which represents a video color space.
public VideoColorSpace(VideoColorSpaceInit init = null)
Parameters
initVideoColorSpaceInit
Remarks
Properties
FullRange
The fullRange read-only property of the VideoColorSpace interface returns true if full-range color values are used.
[Value("fullRange")]
public bool? FullRange { get; }
Property Value
Remarks
Matrix
The matrix read-only property of the VideoColorSpace interface returns the matrix coefficient of the video. Matrix coefficients describe the relationship between sample component values and color coordinates.
[Value("matrix")]
public VideoMatrixCoefficients? Matrix { get; }
Property Value
- VideoMatrixCoefficients?
A string containing one of the following values:
Remarks
Primaries
The primaries read-only property of the VideoColorSpace interface returns the color {{glossary("gamut")}} of the video.
[Value("primaries")]
public VideoColorPrimaries? Primaries { get; }
Property Value
- VideoColorPrimaries?
A string containing one of the following values:
Remarks
Transfer
The transfer read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
[Value("transfer")]
public VideoTransferCharacteristics? Transfer { get; }
Property Value
- VideoTransferCharacteristics?
A string containing one of the following values:
Remarks
Methods
ToJSON()
The toJSON() method of the VideoColorSpace interface is a serializer that returns a JSON representation of the VideoColorSpace object.
[Value("toJSON")]
public VideoColorSpaceInit ToJSON()
Returns
- VideoColorSpaceInit
A JSON object.