Baseline 2024
Newly available
Note: This feature is available in Dedicated Web Workers.
The VideoColorSpace()
constructor creates a new VideoColorSpace
object which represents a video color space.
new VideoColorSpace()
new VideoColorSpace(options)
Parameters
All values default to null
when they are not present.
options
Optional
An object containing the following:
primaries
Optional
One of the following strings:
"bt709"
"bt470bg"
"smpte170m"
transfer
Optional
One of the following strings:
"bt709"
"smpte170m"
"iec61966-2-1"
matrix
Optional
One of the following strings:
"rgb"
"bt709"
"bt470bg"
"smpte170m"
fullRange
Optional
A Boolean
, true
if full-range color values are used in the video.
The following example creates a new VideoColorSpace
object with VideoColorSpace.primaries
set to "bt709"
, and VideoColorSpace.primaries
set to true
.
const options = {
primaries: "bt709",
fullRange: true,
};
const colorSpace = new VideoColorSpace(options);
console.log(colorSpace);
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4