VideoColorSpace
The VideoColorSpace interface of the WebCodecs API represents the color space of a video.
Methods
toJSON()
toJSON(): VideoColorSpaceInit;
The toJSON() method of the VideoColorSpace interface is a serializer that returns a JSON representation of the VideoColorSpace object.
Returns
Properties
fullRange
readonly fullRange: boolean | null;
The fullRange read-only property of the VideoColorSpace interface returns true if full-range color values are used.
matrix
readonly matrix: VideoMatrixCoefficients | null;
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.
primaries
readonly primaries: VideoColorPrimaries | null;
The primaries read-only property of the VideoColorSpace interface returns the color gamut of the video.
transfer
readonly transfer:
| VideoTransferCharacteristics
| null;
The transfer read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.