For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface VideoColorSpace
interface VideoColorSpace {
fullRange: boolean | null;
matrix: VideoMatrixCoefficients | null;
primaries: VideoColorPrimaries | null;
transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
fullRange: boolean | null;
matrix: VideoMatrixCoefficients | null;
primaries: VideoColorPrimaries | null;
transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
Properties
ReadonlyfullRange
fullRange: boolean | null
The fullRange read-only property of the VideoColorSpace interface returns true if full-range color values are used.
Readonlymatrix
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.
Readonlyprimaries
The primaries read-only property of the VideoColorSpace interface returns the color gamut of the video.
Readonlytransfer
The transfer read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
Methods
toJSON
-
The
toJSON()method of the VideoColorSpace interface is a serializer that returns a JSON representation of the VideoColorSpace object.Returns VideoColorSpaceInit
The
VideoColorSpaceinterface of the WebCodecs API represents the color space of a video.MDN Reference