From 79feabae51bc2c23774402742ed9b58245aecf47 Mon Sep 17 00:00:00 2001 From: Eugene Zemtsov Date: Mon, 11 Dec 2023 21:15:52 -0800 Subject: [PATCH] More specific language around VideoFrameCopyToOptions.colorSpace --- index.src.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.src.html b/index.src.html index a25b7a1e..1c52b797 100644 --- a/index.src.html +++ b/index.src.html @@ -4313,11 +4313,13 @@ :: A {{VideoPixelFormat}} for the pixel data in the destination {{BufferSource}}. Potential values are: {{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}} and values of {{VideoFrame/format}}. - If unspecified, the {{VideoFrame/format}} is used. + If unspecified or `null`, the {{VideoFrame/format}} is used. : colorSpace :: A {{PredefinedColorSpace}} that SHALL be used to as a target color space for for the pixel data in the destination - {{BufferSource}}. If unspecified, {{srgb}} is used. + {{BufferSource}}, but only if {{VideoFrameCopyToOptions/format}} is one of + {{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}}, otherwise it is ignored. + If unspecified or `null`, {{srgb}} is used. DOMRects in VideoFrame {#videoframe-domrect}