|
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 |
|
729 | 729 | [=Running a control message=] to configure the decoder means running |
730 | 730 | these steps: |
731 | 731 | 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]]}}: |
733 | 733 | 1. Let |supported| be the result of running the <a>Check Configuration |
734 | 734 | Support</a> algorithm with |config|. |
735 | 735 | 2. If |supported| is `false`, [=queue a task=] to run the <a>Close |
|
1459 | 1459 | [=Running a control message=] to configure the encoder means performing |
1460 | 1460 | these steps: |
1461 | 1461 | 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]]}}: |
1463 | 1463 | 1. Let |supported| be the result of running the <a>Check Configuration |
1464 | 1464 | Support</a> algorithm with |config|. |
1465 | 1465 | 2. If |supported| is `false`, [=queue a task=] to run the <a>Close |
|
2944 | 2944 | |options|.{{AudioDataCopyToOptions/format}} to |destFormat|. |
2945 | 2945 | 5. Let |bytesPerSample| be the number of bytes per sample, as defined by |
2946 | 2946 | the |destFormat|. |
2947 | | - 4. Return the product of multiplying |bytesPerSample| by |
| 2947 | + 6. Return the product of multiplying |bytesPerSample| by |
2948 | 2948 | |copyElementCount|. |
2949 | 2949 |
|
2950 | 2950 | : <dfn method for=AudioData>copyTo(|destination|, |options|)</dfn> |
|
3998 | 3998 | 2. If |init|.{{VideoFrameInit/alpha}} is {{AlphaOption/discard}}, |
3999 | 3999 | assign |otherFrame|.{{VideoFrame/format}}'s [=equivalent opaque format=] |
4000 | 4000 | |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=] |
4002 | 4002 | algorithm with |format| and |otherFrame|'s |
4003 | 4003 | {{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 |
4006 | 4006 | {{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 |
4008 | 4008 | {{VideoFrame/[[resource reference]]}}. |
4009 | | - 5. Assign the following attributes from |otherFrame| to |frame|: |
| 4009 | + 7. Assign the following attributes from |otherFrame| to |frame|: |
4010 | 4010 | {{VideoFrame/codedWidth}}, {{VideoFrame/codedHeight}}, |
4011 | 4011 | {{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 |
4013 | 4013 | for {{VideoFrame/visibleRect}} on |otherFrame|. |
4014 | | - 7. Let |baseRotation| and |baseFlip| be |otherFrame|'s |
| 4014 | + 9. Let |baseRotation| and |baseFlip| be |otherFrame|'s |
4015 | 4015 | {{VideoFrame/[[rotation]]}} and {{VideoFrame/[[flip]]}}, respectively. |
4016 | | - 8. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s |
| 4016 | + 10. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s |
4017 | 4017 | {{VideoFrame/[[display width]]}} and {{VideoFrame/[[display height]]}}, |
4018 | 4018 | 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=] |
4020 | 4020 | algorithm with |init|, |frame|, |defaultVisibleRect|, |baseRotation|, |
4021 | 4021 | |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 |
4023 | 4023 | |frame|'s {{VideoFrame/[[duration]]}}. Otherwise, assign |
4024 | 4024 | |otherFrame|.{{VideoFrame/duration}} to |
4025 | 4025 | |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 |
4027 | 4027 | |frame|'s {{VideoFrame/[[timestamp]]}}. Otherwise, assign |
4028 | 4028 | |otherFrame|'s {{VideoFrame/timestamp}} to |
4029 | 4029 | |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=] |
4032 | 4032 | with |init|'s {{VideoFrameInit/metadata}} to |frame|.{{VideoFrame/[[metadata]]}}. |
4033 | 4033 |
|
4034 | 4034 | : <dfn for=VideoFrame>Initialize Frame With Resource</dfn> (with |
|
5455 | 5455 | `"processed"`. |
5456 | 5456 | 3. Otherwise, assign the {{ImageDecoder/[[codec implementation]]}} internal |
5457 | 5457 | 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]]}}: |
5460 | 5460 | 1. Configure {{ImageDecoder/[[codec implementation]]}} in accordance |
5461 | 5461 | with the values given for {{ImageDecoderInit/colorSpaceConversion}}, |
5462 | 5462 | {{ImageDecoderInit/desiredWidth}}, and |
5463 | 5463 | {{ImageDecoderInit/desiredHeight}}. |
5464 | 5464 | 2. Assign `false` to {{ImageDecoder/[[message queue blocked]]}}. |
5465 | 5465 | 3. [=Queue a task=] to [=Process the control message queue=]. |
5466 | | - 4. Return `"processed"`. |
| 5466 | + 6. Return `"processed"`. |
5467 | 5467 |
|
5468 | 5468 | [=Running a control message=] to <dfn>decode track metadata</dfn> means |
5469 | 5469 | running these steps: |
|
0 commit comments