VideoColorSpace

open class VideoColorSpace(init: VideoColorSpaceInit = definedExternally)(source)

The VideoColorSpace interface of the WebCodecs API represents the color space of a video.

MDN Reference

Constructors

Link copied to clipboard
constructor(init: VideoColorSpaceInit = definedExternally)

Properties

Link copied to clipboard

The fullRange read-only property of the VideoColorSpace interface returns true if full-range color values are used.

Link copied to clipboard

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.

Link copied to clipboard

The primaries read-only property of the VideoColorSpace interface returns the color gamut of the video.

Link copied to clipboard

The transfer read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.

Functions

Link copied to clipboard

The toJSON() method of the VideoColorSpace interface is a serializer that returns a JSON representation of the VideoColorSpace object.