Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Djuffin committed Feb 29, 2024
1 parent b8ca480 commit 1220f21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -4231,6 +4231,10 @@
|imageData|.{{ImageData/data}} and |init|.
8. Return |convertedFrame|.

NOTE: User Agents don't have to execute the exact steps of this algorithm
(e.g. create an {{OffscreenCanvas}}) as long as the {{VideoFrame}} returned by
the algorithm is equal to the {{VideoFrame}} created via these steps.

: <dfn for=VideoFrame>Copy VideoFrame metadata</dfn> (with |metadata|)
:: 1. Let |metadataCopySerialized| be [$StructuredSerialize$](|metadata|).
2. Let |metadataCopy| be [$StructuredDeserialize$](|metadataCopySerialized|, [=the current Realm=]).
Expand Down Expand Up @@ -4329,7 +4333,7 @@
{{BGRX}}. If unspecified or `null`, the the destination
{{BufferSource}} will match {{VideoFrame/format}} .
: <dfn dict-member for=VideoFrameCopyToOptions>colorSpace</dfn>
:: A {{PredefinedColorSpace}} that <em class="rfc2119">SHALL</em> be used as
:: A {{PredefinedColorSpace}} that <em class="rfc2119">MUST</em> be used as
a target color space for the pixel data in the destination
{{BufferSource}}, but only if {{VideoFrameCopyToOptions/format}} is one of
{{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}}, otherwise it is ignored.
Expand Down

0 comments on commit 1220f21

Please sign in to comment.