Skip to content

Commit

Permalink
More specific language around VideoFrameCopyToOptions.colorSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Djuffin committed Dec 12, 2023
1 parent 97d1519 commit 79feaba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
: <dfn dict-member for=VideoFrameCopyToOptions>colorSpace</dfn>
:: A {{PredefinedColorSpace}} that <em class="rfc2119">SHALL</em> 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}
Expand Down

0 comments on commit 79feaba

Please sign in to comment.