Skip to content

Commit d1df0f8

Browse files
tidoustpadenot
authored andcommitted
Editorial: fix typos, add missing links
1 parent dfc5031 commit d1df0f8

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

index.src.html

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
==========================
103103

104104
: <dfn>Codec</dfn>
105-
:: Refers generically to an instance of AudioDecoder, AudioEncoder,
106-
VideoDecoder, or VideoEncoder.
105+
:: Refers generically to an instance of {{AudioDecoder}}, {{AudioEncoder}},
106+
{{VideoDecoder}}, or {{VideoEncoder}}.
107107

108108
: <dfn lt="Key Chunk|Key Frame">Key Chunk</dfn>
109109
:: An encoded chunk that does not depend on any other frames for decoding. Also
@@ -188,7 +188,7 @@
188188

189189
This section describes threading behaviors as they are visible from the
190190
perspective of web authors. Implementers can choose to use more threads, as
191-
long as the exernally visible behaviors of blocking and sequencing are
191+
long as the externally visible behaviors of blocking and sequencing are
192192
maintained as follows.
193193
</div>
194194

@@ -290,13 +290,14 @@
290290
{{AudioDecoder/[[control message queue]]}} is blocked by a pending
291291
[=control message=]. See [=[[message queue blocked]]=].
292292
: <dfn attribute for=AudioDecoder>[[codec implementation]]</dfn>
293-
:: Underlying decoder implementation provided by the User Agent.
293+
:: Underlying decoder implementation provided by the User Agent. See
294+
[=[[codec implementation]]=].
294295
: <dfn attribute for=AudioDecoder>[[codec work queue]]</dfn>
295296
:: A [=parallel queue=] used for running parallel steps that reference the
296297
{{AudioDecoder/[[codec implementation]]}}. See [=[[codec work queue]]=].
297298
: <dfn attribute for=AudioDecoder>[[codec saturated]]</dfn>
298-
:: A boolean indicating when the [[codec implementation]] is unable to accept
299-
additional decoding work.
299+
:: A boolean indicating when the {{AudioDecoder/[[codec implementation]]}} is
300+
unable to accept additional decoding work.
300301
: <dfn attribute for=AudioDecoder>[[output callback]]</dfn>
301302
:: Callback given at construction for decoded outputs.
302303
: <dfn attribute for=AudioDecoder>[[error callback]]</dfn>
@@ -616,13 +617,14 @@
616617
{{VideoDecoder/[[control message queue]]}} is blocked by a pending
617618
[=control message=]. See [=[[message queue blocked]]=].
618619
: <dfn attribute for=VideoDecoder>[[codec implementation]]</dfn>
619-
:: Underlying decoder implementation provided by the User Agent.
620+
:: Underlying decoder implementation provided by the User Agent. See
621+
[=[[codec implementation]]=].
620622
: <dfn attribute for=VideoDecoder>[[codec work queue]]</dfn>
621623
:: A [=parallel queue=] used for running parallel steps that reference the
622624
{{VideoDecoder/[[codec implementation]]}}. See [=[[codec work queue]]=].
623625
: <dfn attribute for=VideoDecoder>[[codec saturated]]</dfn>
624-
:: A boolean indicating when the [[codec implementation]] is unable to accept
625-
additional decoding work.
626+
:: A boolean indicating when the {{VideoDecoder/[[codec implementation]]}} is
627+
unable to accept additional decoding work.
626628
: <dfn attribute for=VideoDecoder>[[output callback]]</dfn>
627629
:: Callback given at construction for decoded outputs.
628630
: <dfn attribute for=VideoDecoder>[[error callback]]</dfn>
@@ -736,7 +738,7 @@
736738

737739
NOTE: {{VideoDecoder}} requires that frames are output in the order they
738740
expect to be presented, commonly known as presentation order. When using
739-
some {{VideoDecoder/[[codec implementation]]}}s the User Agent will have to
741+
some {{VideoDecoder/[[codec implementation]]}}s the User Agent will have
740742
to reorder outputs into presentation order.
741743

742744
When invoked, run these steps:
@@ -971,13 +973,14 @@
971973
{{AudioEncoder/[[control message queue]]}} is blocked by a pending
972974
[=control message=]. See [=[[message queue blocked]]=].
973975
: <dfn attribute for=AudioEncoder>[[codec implementation]]</dfn>
974-
:: Underlying encoder implementation provided by the User Agent.
976+
:: Underlying encoder implementation provided by the User Agent. See
977+
[=[[codec implementation]]=].
975978
: <dfn attribute for=AudioEncoder>[[codec work queue]]</dfn>
976979
:: A [=parallel queue=] used for running parallel steps that reference the
977980
{{AudioEncoder/[[codec implementation]]}}. See [=[[codec work queue]]=].
978981
: <dfn attribute for=AudioEncoder>[[codec saturated]]</dfn>
979-
:: A boolean indicating when the [[codec implementation]] is unable to accept
980-
additional encoding work.
982+
:: A boolean indicating when the {{AudioEncoder/[[codec implementation]]}} is
983+
unable to accept additional encoding work.
981984
: <dfn attribute for=AudioEncoder>[[output callback]]</dfn>
982985
:: Callback given at construction for encoded outputs.
983986
: <dfn attribute for=AudioEncoder>[[error callback]]</dfn>
@@ -1343,13 +1346,14 @@
13431346
{{VideoEncoder/[[control message queue]]}} is blocked by a pending
13441347
[=control message=]. See [=[[message queue blocked]]=].
13451348
: <dfn attribute for=VideoEncoder>[[codec implementation]]</dfn>
1346-
:: Underlying encoder implementation provided by the User Agent.
1349+
:: Underlying encoder implementation provided by the User Agent. See
1350+
[=[[codec implementation]]=].
13471351
: <dfn attribute for=VideoEncoder>[[codec work queue]]</dfn>
13481352
:: A [=parallel queue=] used for running parallel steps that reference the
13491353
{{VideoEncoder/[[codec implementation]]}}. See [=[[codec work queue]]=].
13501354
: <dfn attribute for=VideoEncoder>[[codec saturated]]</dfn>
1351-
:: A boolean indicating when the [[codec implementation]] is unable to accept
1352-
additional encoding work.
1355+
:: A boolean indicating when the {{VideoEncoder/[[codec implementation]]}} is
1356+
unable to accept additional encoding work.
13531357
: <dfn attribute for=VideoEncoder>[[output callback]]</dfn>
13541358
:: Callback given at construction for encoded outputs.
13551359
: <dfn attribute for=VideoEncoder>[[error callback]]</dfn>
@@ -2617,7 +2621,7 @@
26172621
object.
26182622

26192623
{{VideoFrame}}.{{VideoFrame/close()}} and {{AudioData}}.{{AudioData/close()}}
2620-
will clear their [[resource reference]] slot, releasing the reference their
2624+
will clear their `[[resource reference]]` slot, releasing the reference their
26212625
[=media resource=].
26222626

26232627
A [=media resource=] <em class="rfc2119">MUST</em> remain alive at least as long
@@ -3672,7 +3676,7 @@
36723676
|output| in pixels.
36733677
8. Let |visibleLeft|, |visibleTop|, |visibleWidth|, and |visibleHeight| be
36743678
the left, top, width and height for the visible rectangle of |output|.
3675-
7. Let |displayWidth| and |displayHeight| be the the display size of
3679+
7. Let |displayWidth| and |displayHeight| be the display size of
36763680
|output| in pixels.
36773681
8. If |displayAspectWidth| and |displayAspectHeight| are provided,
36783682
increase |displayWidth| or |displayHeight| until the ratio of
@@ -4087,7 +4091,7 @@
40874091

40884092
Color space conversion during {{ImageBitmap}} construction is controlled by
40894093
{{ImageBitmapOptions}} {{ImageBitmapOptions/colorSpaceConversion}}. Setting this
4090-
value to "none" disables color space conversion.
4094+
value to {{ColorSpaceConversion/"none"}} disables color space conversion.
40914095

40924096
VideoFrame CopyTo() Options {#videoframe-copyto-options}
40934097
------------------------------------------------------------
@@ -4105,7 +4109,7 @@
41054109
NOTE: The steps of {{VideoFrame/copyTo()}} or {{VideoFrame/allocationSize()}}
41064110
will enforce the following requirements:
41074111
* The coordinates of {{VideoFrameCopyToOptions/rect}} are
4108-
sample-aligned as determiend by {{VideoFrame/[[format]]}}.
4112+
sample-aligned as determined by {{VideoFrame/[[format]]}}.
41094113
* If {{VideoFrameCopyToOptions/layout}} [=map/exists=], a {{PlaneLayout}}
41104114
is provided for all planes.
41114115
</div>
@@ -4128,7 +4132,7 @@
41284132

41294133
DOMRects in VideoFrame {#videoframe-domrect}
41304134
--------------------------------------------
4131-
The {{VideoFrame}} interfaces uses {{DOMRect}}s to specify the position and
4135+
The {{VideoFrame}} interface uses {{DOMRect}}s to specify the position and
41324136
dimensions for a rectangle of pixels. {{DOMRectInit}} is used with
41334137
{{VideoFrame/copyTo()}} and {{VideoFrame/allocationSize()}} to describe the
41344138
dimensions of the source rectangle. {{VideoFrame}} defines
@@ -4145,7 +4149,7 @@
41454149
{{PlaneLayout}}s <em class="rfc2119">MAY</em> be provided to {{VideoFrame}}'s
41464150
{{VideoFrame/copyTo()}} to specify how the plane is laid out in the destination
41474151
{{BufferSource}}}. Alternatively, callers can inspect {{VideoFrame/copyTo()}}'s
4148-
returned sequence of {{PlaneLayout}}s to learn the the offset and stride for
4152+
returned sequence of {{PlaneLayout}}s to learn the offset and stride for
41494153
planes as decided by the User Agent.
41504154

41514155
<xmp class='idl'>
@@ -4691,7 +4695,8 @@
46914695
`true`.
46924696

46934697
: <dfn attribute for=ImageDecoder>[[codec implementation]]</dfn>
4694-
:: An underlying image decoder implementation provided by the User Agent.
4698+
:: An underlying image decoder implementation provided by the User Agent. See
4699+
[=[[codec implementation]]=].
46954700

46964701
: <dfn attribute for=ImageDecoder>[[encoded data]]</dfn>
46974702
:: A [=byte sequence=] containing the encoded image data to be decoded.
@@ -4712,7 +4717,7 @@
47124717
{{ImageDecoder/[[ImageTrackList]]}}.
47134718

47144719
: <dfn attribute for=ImageDecoder>\[[closed]]</dfn>
4715-
:: A boolean indicating that the ImageDecoder is in a permanent closed state
4720+
:: A boolean indicating that the {{ImageDecoder}} is in a permanent closed state
47164721
and can no longer be used.
47174722

47184723
: <dfn attribute for=ImageDecoder>[[progressive frame generations]]</dfn>
@@ -5604,7 +5609,7 @@
56045609
realtime media or in contended main thread environments are encouraged to ensure their
56055610
media pipelines operate in worker contexts entirely independent of the main
56065611
thread where possible. For example, realtime media processing of {{VideoFrame}}s
5607-
are generally be done in a worker context.
5612+
are generally to be done in a worker context.
56085613

56095614
The main thread has significant potential for high contention and jank that can
56105615
go unnoticed in development, yet degrade inconsistently across devices and User

0 commit comments

Comments
 (0)