Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
algorithm with |decoded outputs|.
2. Remove |promise| from
{{AudioDecoder/[[pending flush promises]]}}.
3. Resolve |promise|.
3. [=Resolve=] |promise|.
2. Return `"processed"`.
</dd>

Expand Down Expand Up @@ -534,7 +534,7 @@
1. Set {{AudioDecoderSupport/config}} to the result of running the
<a>Clone Configuration</a> algorithm with |config|.
2. Set {{AudioDecoderSupport/supported}} to |supported|.
2. Resolve |p| with |decoderSupport|.
2. [=Resolve=] |p| with |decoderSupport|.
5. Return |p|.
</dd>
</dl>
Expand Down Expand Up @@ -584,7 +584,7 @@
1. Set {{AudioDecoder/[[decodeQueueSize]]}} to zero.
2. Run the [=AudioDecoder/Schedule Dequeue Event=] algorithm.
6. For each |promise| in {{AudioDecoder/[[pending flush promises]]}}:
1. Reject |promise| with |exception|.
1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{AudioDecoder/[[pending flush promises]]}}.
</dd>
<dt><dfn>Close AudioDecoder</dfn> (with |exception|)</dt>
Expand Down Expand Up @@ -831,7 +831,7 @@
algorithm with |decoded outputs|.
2. Remove |promise| from
{{VideoDecoder/[[pending flush promises]]}}.
3. Resolve |promise|.
3. [=Resolve=] |promise|.
2. Return `"processed"`.
</dd>

Expand Down Expand Up @@ -880,7 +880,7 @@
1. Set {{VideoDecoderSupport/config}} to the result of running the
<a>Clone Configuration</a> algorithm with |config|.
2. Set {{VideoDecoderSupport/supported}} to |supported|.
2. Resolve |p| with |decoderSupport|.
2. [=Resolve=] |p| with |decoderSupport|.
5. Return |p|.
</dd>
</dl>
Expand Down Expand Up @@ -943,7 +943,7 @@
1. Set {{VideoDecoder/[[decodeQueueSize]]}} to zero.
2. Run the [=VideoDecoder/Schedule Dequeue Event=] algorithm.
6. For each |promise| in {{VideoDecoder/[[pending flush promises]]}}:
1. Reject |promise| with |exception|.
1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{VideoDecoder/[[pending flush promises]]}}.
</dd>
<dt><dfn>Close VideoDecoder</dfn> (with |exception|)</dt>
Expand Down Expand Up @@ -1173,7 +1173,7 @@
[=Output EncodedAudioChunks=] algorithm with |encoded outputs|.
2. Remove |promise| from
{{AudioEncoder/[[pending flush promises]]}}.
3. Resolve |promise|.
3. [=Resolve=] |promise|.
2. Return `"processed"`.
</dd>

Expand Down Expand Up @@ -1222,7 +1222,7 @@
1. Set {{AudioEncoderSupport/config}} to the result of running the
<a>Clone Configuration</a> algorithm with |config|.
2. Set {{AudioEncoderSupport/supported}} to |supported|.
2. Resolve |p| with |encoderSupport|.
2. [=Resolve=] |p| with |encoderSupport|.
5. Return |p|.
</dd>
</dl>
Expand Down Expand Up @@ -1302,7 +1302,7 @@
1. Set {{AudioEncoder/[[encodeQueueSize]]}} to zero.
2. Run the [=AudioEncoder/Schedule Dequeue Event=] algorithm.
8. For each |promise| in {{AudioEncoder/[[pending flush promises]]}}:
1. Reject |promise| with |exception|.
1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{AudioEncoder/[[pending flush promises]]}}.
</dd>
<dt><dfn>Close AudioEncoder</dfn> (with |exception|)</dt>
Expand Down Expand Up @@ -1559,7 +1559,7 @@
[=Output EncodedVideoChunks=] algorithm with |encoded outputs|.
2. Remove |promise| from
{{VideoEncoder/[[pending flush promises]]}}.
3. Resolve |promise|.
3. [=Resolve=] |promise|.
2. Return `"processed"`.
</dd>

Expand Down Expand Up @@ -1608,7 +1608,7 @@
1. Set {{VideoEncoderSupport/config}} to the result of running the
<a>Clone Configuration</a> algorithm with |config|.
2. Set {{VideoEncoderSupport/supported}} to |supported|.
2. Resolve |p| with |encoderSupport|.
2. [=Resolve=] |p| with |encoderSupport|.
5. Return |p|.
</dd>
</dl>
Expand Down Expand Up @@ -1707,7 +1707,7 @@
1. Set {{VideoEncoder/[[encodeQueueSize]]}} to zero.
2. Run the [=VideoEncoder/Schedule Dequeue Event=] algorithm.
8. For each |promise| in {{VideoEncoder/[[pending flush promises]]}}:
1. Reject |promise| with |exception|.
1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{VideoEncoder/[[pending flush promises]]}}.
</dd>
<dt><dfn>Close VideoEncoder</dfn> (with |exception|)</dt>
Expand Down Expand Up @@ -3907,7 +3907,7 @@
4. Increment |row| by `1`.
10. Increment |planeIndex| by `1`.
11. Append |layout| to |planeLayouts|.
5. [=Queue a task=] to resolve |p| with |planeLayouts|.
5. [=Queue a task=] to [=resolve=] |p| with |planeLayouts|.
11. Return |p|.

: <dfn method for=VideoFrame>clone()</dfn>
Expand Down Expand Up @@ -5473,7 +5473,7 @@
3. Otherwise:
1. Assign a copy of `init.data` to {{ImageDecoder/[[encoded data]]}}.
4. Assign `true` to {{ImageDecoder/[[complete]]}}.
5. Resolve {{ImageDecoder/[[completed promise]]}}.
5. [=Resolve=] {{ImageDecoder/[[completed promise]]}}.
6. Queue a control message to [=configure the image decoder=] with
|init|.
7. Queue a control message to [=decode track metadata=].
Expand Down Expand Up @@ -5589,7 +5589,7 @@
3. Run the following steps [=in parallel=]:
1. Let |isSupported| be the result of running the
[=Check Type Support=] algorithm with |type|.
2. [=Queue a task=] to resolve |p| with |isSupported|.
2. [=Queue a task=] to [=resolve=] |p| with |isSupported|.
4. Return |p|.

### Algorithms ### {#imagedecoder-algorithms}
Expand All @@ -5614,7 +5614,7 @@

: [=read request/close steps=]
:: 1. Assign `true` to {{ImageDecoder/[[complete]]}}
2. Resolve {{ImageDecoder/[[completed promise]]}}.
2. [=Resolve=] {{ImageDecoder/[[completed promise]]}}.

: [=read request/error steps=]
:: 1. [=Queue a task=] to run the [=ImageDecoder/Close ImageDecoder=]
Expand Down Expand Up @@ -5676,7 +5676,7 @@
{{ImageTrackList/[[track list]]}} internal slot.
2. Assign |selectedTrackIndex| to {{ImageDecoder/tracks}}
{{ImageTrackList/[[selected index]]}}.
3. Resolve {{ImageTrackList/[[ready promise]]}}.
3. [=Resolve=] {{ImageTrackList/[[ready promise]]}}.

: <dfn for=ImageDecoder>Get Default Selected Track Index</dfn> (with
|trackList|)
Expand Down Expand Up @@ -5851,15 +5851,15 @@
[=Create a VideoFrame=] algorithm with |output|, |timestamp|,
|duration|, |rotation|, and |flip|.
19. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
20. Resolve |promise| with |decodeResult|.
20. [=Resolve=] |promise| with |decodeResult|.

: <dfn for=ImageDecoder>Resolve Decode</dfn> (with |promise| and |result|)
:: 1. [=Queue a task=] to perform these steps:
1. If {{ImageDecoder/[[closed]]}}, abort these steps.
2. Assert that |promise| is an element of
{{ImageDecoder/[[pending decode promises]]}}.
3. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
4. Resolve |promise| with |result|.
4. [=Resolve=] |promise| with |result|.

: <dfn for=ImageDecoder>Reject Infeasible Decode</dfn> (with |promise|)
:: 1. Assert that {{ImageDecoder/complete}} is `true` or
Expand All @@ -5872,7 +5872,7 @@
2. Assert that |promise| is an element of
{{ImageDecoder/[[pending decode promises]]}}.
3. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
4. Reject |promise| with |exception|.
4. [=Reject=] |promise| with |exception|.

: <dfn for=ImageDecoder>Fatally Reject Bad Data</dfn>
:: 1. [=Queue a task=] to perform these steps:
Expand All @@ -5890,7 +5890,7 @@
decoding operation.
2. For each |decodePromise| in
{{ImageDecoder/[[pending decode promises]]}}:
1. Reject |decodePromise| with |exception|.
1. [=Reject=] |decodePromise| with |exception|.
2. Remove |decodePromise| from
{{ImageDecoder/[[pending decode promises]]}}.

Expand All @@ -5899,13 +5899,13 @@
1. Assign `true` to {{ImageDecoder/[[closed]]}}.
2. Clear {{ImageDecoder/[[codec implementation]]}} and release associated
[=system resources=].
3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, reject
3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, [=reject=]
{{ImageTrackList/[[ready promise]]}} with |exception|. Otherwise
perform these steps,
1. Remove all entries from {{ImageDecoder/[[ImageTrackList]]}}.
2. Assign `-1` to {{ImageDecoder/[[ImageTrackList]]}}'s
{{ImageTrackList/[[selected index]]}}.
4. If {{ImageDecoder/[[complete]]}} is false resolve
4. If {{ImageDecoder/[[complete]]}} is false, [=reject=]
{{ImageDecoder/[[completed promise]]}} with |exception|.

ImageDecoderInit Interface {#imagedecoderinit-interface}
Expand Down
Loading