On this page

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

Properties

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.

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

Methods

Was this helpful?
SDK JS
Reference
VideoColorSpace