|
395 | 395 | [=Running a control message=] to configure the decoder means running
|
396 | 396 | these steps:
|
397 | 397 | 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]]}}: |
399 | 399 | 1. Let |supported| be the result of running the <a>Check Configuration
|
400 | 400 | Support</a> algorithm with |config|.
|
401 | 401 | 2. If |supported| is `false`, [=queue a task=] to run the <a>Close
|
|
730 | 730 | [=Running a control message=] to configure the decoder means running
|
731 | 731 | these steps:
|
732 | 732 | 1. Assign `true` to {{VideoDecoder/[[message queue blocked]]}}.
|
733 |
| - 1. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}: |
| 733 | + 2. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}: |
734 | 734 | 1. Let |supported| be the result of running the <a>Check Configuration
|
735 | 735 | Support</a> algorithm with |config|.
|
736 | 736 | 2. If |supported| is `false`, [=queue a task=] to run the <a>Close
|
|
1462 | 1462 | [=Running a control message=] to configure the encoder means performing
|
1463 | 1463 | these steps:
|
1464 | 1464 | 1. Assign `true` to {{VideoEncoder/[[message queue blocked]]}}.
|
1465 |
| - 1. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}: |
| 1465 | + 2. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}: |
1466 | 1466 | 1. Let |supported| be the result of running the <a>Check Configuration
|
1467 | 1467 | Support</a> algorithm with |config|.
|
1468 | 1468 | 2. If |supported| is `false`, [=queue a task=] to run the <a>Close
|
|
2948 | 2948 | |options|.{{AudioDataCopyToOptions/format}} to |destFormat|.
|
2949 | 2949 | 5. Let |bytesPerSample| be the number of bytes per sample, as defined by
|
2950 | 2950 | the |destFormat|.
|
2951 |
| - 4. Return the product of multiplying |bytesPerSample| by |
| 2951 | + 6. Return the product of multiplying |bytesPerSample| by |
2952 | 2952 | |copyElementCount|.
|
2953 | 2953 |
|
2954 | 2954 | : <dfn method for=AudioData>copyTo(|destination|, |options|)</dfn>
|
|
4002 | 4002 | 2. If |init|.{{VideoFrameInit/alpha}} is {{AlphaOption/discard}},
|
4003 | 4003 | assign |otherFrame|.{{VideoFrame/format}}'s [=equivalent opaque format=]
|
4004 | 4004 | |format|.
|
4005 |
| - 1. Let |validInit| be the result of running the [=Validate VideoFrameInit=] |
| 4005 | + 3. Let |validInit| be the result of running the [=Validate VideoFrameInit=] |
4006 | 4006 | algorithm with |format| and |otherFrame|'s
|
4007 | 4007 | {{VideoFrame/[[coded width]]}} and {{VideoFrame/[[coded height]]}}.
|
4008 |
| - 2. If |validInit| is `false`, throw a {{TypeError}}. |
4009 |
| - 3. Let |resource| be the [=media resource=] referenced by |otherFrame|'s |
| 4008 | + 4. If |validInit| is `false`, throw a {{TypeError}}. |
| 4009 | + 5. Let |resource| be the [=media resource=] referenced by |otherFrame|'s |
4010 | 4010 | {{VideoFrame/[[resource reference]]}}.
|
4011 |
| - 4. Assign a new reference for |resource| to |frame|'s |
| 4011 | + 6. Assign a new reference for |resource| to |frame|'s |
4012 | 4012 | {{VideoFrame/[[resource reference]]}}.
|
4013 |
| - 5. Assign the following attributes from |otherFrame| to |frame|: |
| 4013 | + 7. Assign the following attributes from |otherFrame| to |frame|: |
4014 | 4014 | {{VideoFrame/codedWidth}}, {{VideoFrame/codedHeight}},
|
4015 | 4015 | {{VideoFrame/colorSpace}}.
|
4016 |
| - 6. Let |defaultVisibleRect| be the result of performing the getter steps |
| 4016 | + 8. Let |defaultVisibleRect| be the result of performing the getter steps |
4017 | 4017 | for {{VideoFrame/visibleRect}} on |otherFrame|.
|
4018 |
| - 7. Let |baseRotation| and |baseFlip| be |otherFrame|'s |
| 4018 | + 9. Let |baseRotation| and |baseFlip| be |otherFrame|'s |
4019 | 4019 | {{VideoFrame/[[rotation]]}} and {{VideoFrame/[[flip]]}}, respectively.
|
4020 |
| - 8. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s |
| 4020 | + 10. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s |
4021 | 4021 | {{VideoFrame/[[display width]]}} and {{VideoFrame/[[display height]]}},
|
4022 | 4022 | respectively.
|
4023 |
| - 9. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=] |
| 4023 | + 11. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=] |
4024 | 4024 | algorithm with |init|, |frame|, |defaultVisibleRect|, |baseRotation|,
|
4025 | 4025 | |baseFlip|, |defaultDisplayWidth|, and |defaultDisplayHeight|.
|
4026 |
| - 10. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to |
| 4026 | + 12. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to |
4027 | 4027 | |frame|'s {{VideoFrame/[[duration]]}}. Otherwise, assign
|
4028 | 4028 | |otherFrame|.{{VideoFrame/duration}} to
|
4029 | 4029 | |frame|'s {{VideoFrame/[[duration]]}}.
|
4030 |
| - 11. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to |
| 4030 | + 13. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to |
4031 | 4031 | |frame|'s {{VideoFrame/[[timestamp]]}}. Otherwise, assign
|
4032 | 4032 | |otherFrame|'s {{VideoFrame/timestamp}} to
|
4033 | 4033 | |frame|'s {{VideoFrame/[[timestamp]]}}.
|
4034 |
| - 12. Assign |format| to |frame|.{{VideoFrame/[[format]]}}. |
4035 |
| - 13. Assign the result of calling [=Copy VideoFrame metadata=] |
| 4034 | + 14. Assign |format| to |frame|.{{VideoFrame/[[format]]}}. |
| 4035 | + 15. Assign the result of calling [=Copy VideoFrame metadata=] |
4036 | 4036 | with |init|'s {{VideoFrameInit/metadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
|
4037 | 4037 |
|
4038 | 4038 | : <dfn for=VideoFrame>Initialize Frame With Resource</dfn> (with
|
|
5459 | 5459 | `"processed"`.
|
5460 | 5460 | 3. Otherwise, assign the {{ImageDecoder/[[codec implementation]]}} internal
|
5461 | 5461 | slot with an implementation supporting `init.type`
|
5462 |
| - 3. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}. |
5463 |
| - 3. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}: |
| 5462 | + 4. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}. |
| 5463 | + 5. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}: |
5464 | 5464 | 1. Configure {{ImageDecoder/[[codec implementation]]}} in accordance
|
5465 | 5465 | with the values given for {{ImageDecoderInit/colorSpaceConversion}},
|
5466 | 5466 | {{ImageDecoderInit/desiredWidth}}, and
|
5467 | 5467 | {{ImageDecoderInit/desiredHeight}}.
|
5468 | 5468 | 2. Assign `false` to {{ImageDecoder/[[message queue blocked]]}}.
|
5469 | 5469 | 3. [=Queue a task=] to [=Process the control message queue=].
|
5470 |
| - 4. Return `"processed"`. |
| 5470 | + 6. Return `"processed"`. |
5471 | 5471 |
|
5472 | 5472 | [=Running a control message=] to <dfn>decode track metadata</dfn> means
|
5473 | 5473 | running these steps:
|
|
0 commit comments