Skip to content

Commit

Permalink
Allow newly created codecs to be reclaimed if the system is out of re…
Browse files Browse the repository at this point in the history
…sources
  • Loading branch information
Djuffin committed Oct 2, 2024
1 parent 6fd01eb commit b5e1d38
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -3696,7 +3696,7 @@
:: The presentation timestamp, given in microseconds. For decode,
timestamp is copied from the {{EncodedVideoChunk}} corresponding
to this {{VideoFrame}}. For encode, timestamp is copied to the
{{EncodedVideoChunk}}s corresponding to this {{VideoFrame}}.
{{EncodedVideoChunk}}s corresponding to this {{VideoFrame}}.

The {{VideoFrame/timestamp}} getter steps are to return
{{VideoFrame/[[timestamp]]}}.
Expand Down Expand Up @@ -6032,14 +6032,10 @@
an [=active=] or [=inactive=] codec and/or a [=background=] codec.

An <dfn lt="active codec|active">active codec</dfn> is a codec that has
received a call to `encode()`, `decode()`, `configure()`, `flush()` or `reset()`
in the past `10 seconds`, or has called its `output()` callback in the past `10
seconds`. Addionally, {{VideoEncoder}}s are considered [=active=] if they are
making progress in encoding queued {{VideoFrame}}s.

NOTE: Encoding large {{VideoFrame}}s can take more than `10s` per frame. The
special case for {{VideoEncoder}}s ensures that they are not reclaimed if more
than `10 seconds` elapses between each `output()` callback.
made progress on the [=[[codec work queue]]=] in the past `10 seconds`.

NOTE: A reliable sign of the working queue's progress is a call to `output()`
callback.

An <dfn lt="inactive codec|inactive">inactive codec</dfn> is any codec that does
not meet the definition of an [=active codec=].
Expand Down

0 comments on commit b5e1d38

Please sign in to comment.