From b5e1d38f07c9b6c0b85544cf25f59e9a42ac6322 Mon Sep 17 00:00:00 2001 From: Eugene Zemtsov Date: Thu, 12 Sep 2024 16:13:11 -0700 Subject: [PATCH] Allow newly created codecs to be reclaimed if the system is out of resources --- index.src.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/index.src.html b/index.src.html index 8ccf7e03..1d64cc64 100644 --- a/index.src.html +++ b/index.src.html @@ -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]]}}. @@ -6032,14 +6032,10 @@ an [=active=] or [=inactive=] codec and/or a [=background=] codec. An active codec 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 inactive codec is any codec that does not meet the definition of an [=active codec=].