A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace below:

VideoColorSpace - Web APIs | MDN

VideoColorSpace

Baseline 2024

Newly available

Note: This feature is available in Dedicated Web Workers.

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

Constructor
VideoColorSpace()

Creates a new VideoColorSpace object.

Instance properties
VideoColorSpace.primaries Read only

A string containing the color primary describing the color gamut of a video sample.

VideoColorSpace.transfer

A string containing the transfer characteristics of video samples.

VideoColorSpace.matrix

A string containing the matrix coefficients describing the relationship between sample component values and color coordinates.

VideoColorSpace.fullRange

A Boolean. If true indicates that full-range color values are used.

Instance methods
VideoColorSpace.toJSON()

Returns a JSON representation of the VideoColorSpace object.

Examples

In the following example, colorSpace is a VideoColorSpace object returned from VideoFrame. The object is then printed to the console.

let colorSpace = VideoFrame.colorSpace;
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