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.
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 theVideoColorSpaceobject.Returns VideoColorSpaceInit
Was this helpful?
The
VideoColorSpaceinterface of the WebCodecs API represents the color space of a video.MDN Reference