Skip to content

Commit

Permalink
Merge pull request w3c#836 from Djuffin/quota
Browse files Browse the repository at this point in the history
Allow newly created codecs to be reclaimed if the system is out of resources
  • Loading branch information
Djuffin authored Oct 8, 2024
2 parents 4bea332 + b5e1d38 commit a2770c1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -6049,14 +6049,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 a2770c1

Please sign in to comment.