Skip to content

Commit ee8cd68

Browse files
committed
More specific language around VideoFrameCopyToOptions.colorSpace
1 parent 36a7447 commit ee8cd68

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,11 +4330,13 @@
43304330
:: A {{VideoPixelFormat}} for the pixel data in the destination
43314331
{{BufferSource}}. Potential values are:
43324332
{{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}} and values of {{VideoFrame/format}}.
4333-
If unspecified, the {{VideoFrame/format}} is used.
4333+
If unspecified or `null`, the {{VideoFrame/format}} is used.
43344334
: <dfn dict-member for=VideoFrameCopyToOptions>colorSpace</dfn>
43354335
:: A {{PredefinedColorSpace}} that <em class="rfc2119">SHALL</em> be used to as
43364336
a target color space for for the pixel data in the destination
4337-
{{BufferSource}}. If unspecified, {{srgb}} is used.
4337+
{{BufferSource}}, but only if {{VideoFrameCopyToOptions/format}} is one of
4338+
{{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}}, otherwise it is ignored.
4339+
If unspecified or `null`, {{srgb}} is used.
43384340

43394341

43404342
DOMRects in VideoFrame {#videoframe-domrect}

0 commit comments

Comments
 (0)