Skip to content

Commit

Permalink
Merge pull request #311 from w3c/optimize
Browse files Browse the repository at this point in the history
Add optimizeForLatency to the spec.
  • Loading branch information
aboba authored Jul 28, 2021
2 parents e7ebd16 + bed76bb commit 03e42e7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@
[EnforceRange] unsigned long displayAspectWidth;
[EnforceRange] unsigned long displayAspectHeight;
HardwareAcceleration hardwareAcceleration = "allow";
boolean optimizeForLatency;
};
</xmp>

Expand Down Expand Up @@ -1688,7 +1689,7 @@
Vertical dimension of the VideoFrame's aspect ratio when displayed.
</dd>

Note: {{VideoFrame/displayWidth}} and {{VideoFrame/displayHeight}} can both be
NOTE: {{VideoFrame/displayWidth}} and {{VideoFrame/displayHeight}} can both be
different from {{VideoDecoderConfig/displayAspectWidth}} and
{{VideoDecoderConfig/displayAspectHeight}}, but they should have identical
ratios, after scaling is applied when
Expand All @@ -1699,6 +1700,17 @@
Configures hardware acceleration for this codec. See
{{HardwareAcceleration}}.
</dd>

<dt><dfn dict-member for=VideoDecoderConfig>optimizeForLatency</dfn></dt>
<dd>
Hint that the selected decoder SHOULD be configured to minimize the number
of {{EncodedVideoChunk}}s that have to be decoded before a {{VideoFrame}}
is output.

NOTE: In addition to User Agent and hardware limitations, some codec
bitstreams may require a minimum number of inputs before any output can be
produced.
</dd>
</dl>


Expand Down

0 comments on commit 03e42e7

Please sign in to comment.