Skip to content

Commit a73e6d5

Browse files
committed
Fix various step counts in original source.
1 parent 41636a6 commit a73e6d5

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

index.src.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
[=Running a control message=] to configure the decoder means running
396396
these steps:
397397
1. Assign `true` to {{AudioDecoder/[[message queue blocked]]}}.
398-
1. Enqueue the following steps to {{AudioDecoder/[[codec work queue]]}}:
398+
2. Enqueue the following steps to {{AudioDecoder/[[codec work queue]]}}:
399399
1. Let |supported| be the result of running the <a>Check Configuration
400400
Support</a> algorithm with |config|.
401401
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -729,7 +729,7 @@
729729
[=Running a control message=] to configure the decoder means running
730730
these steps:
731731
1. Assign `true` to {{VideoDecoder/[[message queue blocked]]}}.
732-
1. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}:
732+
2. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}:
733733
1. Let |supported| be the result of running the <a>Check Configuration
734734
Support</a> algorithm with |config|.
735735
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -1459,7 +1459,7 @@
14591459
[=Running a control message=] to configure the encoder means performing
14601460
these steps:
14611461
1. Assign `true` to {{VideoEncoder/[[message queue blocked]]}}.
1462-
1. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}:
1462+
2. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}:
14631463
1. Let |supported| be the result of running the <a>Check Configuration
14641464
Support</a> algorithm with |config|.
14651465
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -2944,7 +2944,7 @@
29442944
|options|.{{AudioDataCopyToOptions/format}} to |destFormat|.
29452945
5. Let |bytesPerSample| be the number of bytes per sample, as defined by
29462946
the |destFormat|.
2947-
4. Return the product of multiplying |bytesPerSample| by
2947+
6. Return the product of multiplying |bytesPerSample| by
29482948
|copyElementCount|.
29492949

29502950
: <dfn method for=AudioData>copyTo(|destination|, |options|)</dfn>
@@ -3998,37 +3998,37 @@
39983998
2. If |init|.{{VideoFrameInit/alpha}} is {{AlphaOption/discard}},
39993999
assign |otherFrame|.{{VideoFrame/format}}'s [=equivalent opaque format=]
40004000
|format|.
4001-
1. Let |validInit| be the result of running the [=Validate VideoFrameInit=]
4001+
3. Let |validInit| be the result of running the [=Validate VideoFrameInit=]
40024002
algorithm with |format| and |otherFrame|'s
40034003
{{VideoFrame/[[coded width]]}} and {{VideoFrame/[[coded height]]}}.
4004-
2. If |validInit| is `false`, throw a {{TypeError}}.
4005-
3. Let |resource| be the [=media resource=] referenced by |otherFrame|'s
4004+
4. If |validInit| is `false`, throw a {{TypeError}}.
4005+
5. Let |resource| be the [=media resource=] referenced by |otherFrame|'s
40064006
{{VideoFrame/[[resource reference]]}}.
4007-
4. Assign a new reference for |resource| to |frame|'s
4007+
6. Assign a new reference for |resource| to |frame|'s
40084008
{{VideoFrame/[[resource reference]]}}.
4009-
5. Assign the following attributes from |otherFrame| to |frame|:
4009+
7. Assign the following attributes from |otherFrame| to |frame|:
40104010
{{VideoFrame/codedWidth}}, {{VideoFrame/codedHeight}},
40114011
{{VideoFrame/colorSpace}}.
4012-
6. Let |defaultVisibleRect| be the result of performing the getter steps
4012+
8. Let |defaultVisibleRect| be the result of performing the getter steps
40134013
for {{VideoFrame/visibleRect}} on |otherFrame|.
4014-
7. Let |baseRotation| and |baseFlip| be |otherFrame|'s
4014+
9. Let |baseRotation| and |baseFlip| be |otherFrame|'s
40154015
{{VideoFrame/[[rotation]]}} and {{VideoFrame/[[flip]]}}, respectively.
4016-
8. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s
4016+
10. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s
40174017
{{VideoFrame/[[display width]]}} and {{VideoFrame/[[display height]]}},
40184018
respectively.
4019-
9. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=]
4019+
11. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=]
40204020
algorithm with |init|, |frame|, |defaultVisibleRect|, |baseRotation|,
40214021
|baseFlip|, |defaultDisplayWidth|, and |defaultDisplayHeight|.
4022-
10. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to
4022+
12. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to
40234023
|frame|'s {{VideoFrame/[[duration]]}}. Otherwise, assign
40244024
|otherFrame|.{{VideoFrame/duration}} to
40254025
|frame|'s {{VideoFrame/[[duration]]}}.
4026-
11. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to
4026+
13. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to
40274027
|frame|'s {{VideoFrame/[[timestamp]]}}. Otherwise, assign
40284028
|otherFrame|'s {{VideoFrame/timestamp}} to
40294029
|frame|'s {{VideoFrame/[[timestamp]]}}.
4030-
12. Assign |format| to |frame|.{{VideoFrame/[[format]]}}.
4031-
13. Assign the result of calling [=Copy VideoFrame metadata=]
4030+
14. Assign |format| to |frame|.{{VideoFrame/[[format]]}}.
4031+
15. Assign the result of calling [=Copy VideoFrame metadata=]
40324032
with |init|'s {{VideoFrameInit/metadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
40334033

40344034
: <dfn for=VideoFrame>Initialize Frame With Resource</dfn> (with
@@ -5455,15 +5455,15 @@
54555455
`"processed"`.
54565456
3. Otherwise, assign the {{ImageDecoder/[[codec implementation]]}} internal
54575457
slot with an implementation supporting `init.type`
5458-
3. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}.
5459-
3. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}:
5458+
4. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}.
5459+
5. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}:
54605460
1. Configure {{ImageDecoder/[[codec implementation]]}} in accordance
54615461
with the values given for {{ImageDecoderInit/colorSpaceConversion}},
54625462
{{ImageDecoderInit/desiredWidth}}, and
54635463
{{ImageDecoderInit/desiredHeight}}.
54645464
2. Assign `false` to {{ImageDecoder/[[message queue blocked]]}}.
54655465
3. [=Queue a task=] to [=Process the control message queue=].
5466-
4. Return `"processed"`.
5466+
6. Return `"processed"`.
54675467

54685468
[=Running a control message=] to <dfn>decode track metadata</dfn> means
54695469
running these steps:

0 commit comments

Comments
 (0)