Skip to content

Commit ce2d6ae

Browse files
committed
More clear writing
1 parent cc00c96 commit ce2d6ae

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.src.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3748,7 +3748,7 @@
37483748
: <dfn method for=VideoFrame>copyTo(|destination|, |options|)</dfn>
37493749
:: Asynchronously copies the planes of this frame into |destination| according
37503750
to |options|. The format of the data is specified by {{VideoFrameCopyToOptions/format}},
3751-
if present, or the same as {{VideoFrame/format}}.
3751+
if present, otherwise {{VideoFrame/format}}.
37523752

37533753
NOTE: Promises that are returned by several calls to
37543754
{{VideoFrame/copyTo()}} are not guaranteed to resolve in the order they
@@ -4217,7 +4217,7 @@
42174217
5. If |format| is equal to {{BGRA}} or {{BGRX}}:
42184218
1. Let |pixelIndex| be `0`
42194219
2. While |pixelIndex| is less than `rect.width` multiplied by `rect.height`:
4220-
1. Swap items in |imageData|.{{ImageData/data}} at indexes `4 * pixelIndex`
4220+
1. Swap elements in |imageData|.{{ImageData/data}} at indexes `4 * pixelIndex`
42214221
and `4 * pixelIndex + 2`.
42224222
2. Increment |pixelIndex| by `1`
42234223
6. Let |init| be a new {{VideoFrameBufferInit}} constructed with
@@ -4322,8 +4322,8 @@
43224322
invalid to specify planes that overlap.
43234323
: <dfn dict-member for=VideoFrameCopyToOptions>format</dfn>
43244324
:: A {{VideoPixelFormat}} for the pixel data in the destination
4325-
{{BufferSource}}. Explicity values cab be:
4326-
{{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}} and the same as {{VideoFrame/format}}.
4325+
{{BufferSource}}. Explicit values cab be:
4326+
{{RGBA}}, {{RGBX}}, {{BGRA}}, {{BGRX}} or the same as {{VideoFrame/format}}.
43274327
If unspecified, the {{VideoFrame/format}} is used.
43284328
: <dfn dict-member for=VideoFrameCopyToOptions>colorSpace</dfn>
43294329
:: A {{PredefinedColorSpace}} that <em class="rfc2119">SHALL</em> be used to as

0 commit comments

Comments
 (0)