Join us online - 19th of November
Save your spot
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

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

MDN Reference

interface VideoColorSpace {
    fullRange: boolean | null;
    matrix: VideoMatrixCoefficients | null;
    primaries: VideoColorPrimaries | null;
    transfer: VideoTransferCharacteristics | null;
    toJSON(): VideoColorSpaceInit;
}
Index
fullRange: boolean | null

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

MDN Reference

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.

MDN Reference

primaries: VideoColorPrimaries | null

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

MDN Reference

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

MDN Reference

Was this helpful?