@@ -4040,6 +4040,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
4040
4040
<li><dfn data-x-href="https://w3c.github.io/manifest/#dfn-processing-a-manifest">process the manifest</dfn></li>
4041
4041
</ul>
4042
4042
</dd>
4043
+
4044
+ <dt>WebCodecs</dt>
4045
+
4046
+ <dd>
4047
+ <p>The following features are defined in <cite>WebCodecs</cite>: <ref spec=WEBCODECS></p>
4048
+
4049
+ <ul class="brief">
4050
+ <li><dfn data-x-href="https://w3c.github.io/webcodecs/#videoframe-interface"><code>VideoFrame</code></dfn> interface.</li>
4051
+ <li><dfn data-x-href="https://w3c.github.io/webcodecs/#dom-videoframe-displaywidth">displayWidth</dfn></li>
4052
+ <li><dfn data-x-href="https://w3c.github.io/webcodecs/#dom-videoframe-displayheight">displayHeight</dfn></li>
4053
+ </ul>
4054
+ </dd>
4043
4055
</dl>
4044
4056
4045
4057
<hr>
@@ -60202,7 +60214,8 @@ typedef (<span>HTMLOrSVGImageElement</span> or
60202
60214
<span>HTMLVideoElement</span> or
60203
60215
<span>HTMLCanvasElement</span> or
60204
60216
<span>ImageBitmap</span> or
60205
- <span>OffscreenCanvas</span>) <dfn>CanvasImageSource</dfn>;
60217
+ <span>OffscreenCanvas</span> or
60218
+ <span>VideoFrame</span>) <dfn>CanvasImageSource</dfn>;
60206
60219
60207
60220
enum <dfn>CanvasFillRule</dfn> { "<span data-x="dom-context-2d-fillRule-nonzero">nonzero</span>", "<span data-x="dom-context-2d-fillRule-evenodd">evenodd</span>" };
60208
60221
@@ -62684,6 +62697,8 @@ try {
62684
62697
62685
62698
<li><code>ImageBitmap</code></li>
62686
62699
62700
+ <li><code>VideoFrame</code></li>
62701
+
62687
62702
</ul>
62688
62703
62689
62704
<p class="note">Although not formally specified as such, <span>SVG <code>image</code></span>
@@ -62728,6 +62743,7 @@ try {
62728
62743
<code>DOMException</code>.</p></dd>
62729
62744
62730
62745
<dt><code>ImageBitmap</code></dt>
62746
+ <dt><code>VideoFrame</code></dt>
62731
62747
<dd><p>If <var>image</var>'s <span>[[Detached]]</span> internal slot value
62732
62748
is set to true, then throw an <span>"<code>InvalidStateError</code>"</span>
62733
62749
<code>DOMException</code>.</p></dd>
@@ -62769,6 +62785,10 @@ try {
62769
62785
<p>When a <code>CanvasImageSource</code> object represents an <code>ImageBitmap</code>, the
62770
62786
object's bitmap image data must be used as the source image.</p>
62771
62787
62788
+ <p>When a <code>CanvasImageSource</code> object represents a <code>VideoFrame</code>, the
62789
+ object's pixel data must be used as the source image, and the source image's dimensions must be the
62790
+ <span>displayWidth</span> and <span>displayHeight</span> of the frame.</p>
62791
+
62772
62792
<p>An object <var>image</var> <dfn id=the-image-argument-is-not-origin-clean>is not
62773
62793
origin-clean</dfn> if, switching on <var>image</var>:</p>
62774
62794
@@ -95423,6 +95443,23 @@ dictionary <dfn>ImageBitmapOptions</dfn> {
95423
95443
</li>
95424
95444
</ol>
95425
95445
</dd>
95446
+
95447
+ <dt><code>VideoFrame</code>
95448
+ <dd>
95449
+ <ol>
95450
+ <li><p>Set <var>imageBitmap</var>'s <span data-x="concept-ImageBitmap-bitmap-data">bitmap
95451
+ data</span> to a copy of <var>image</var>'s visible pixel data, <span>cropped to the source
95452
+ rectangle with formatting</span>.</p></li>
95453
+
95454
+ <li>
95455
+ <p>Run this step <span>in parallel</span>:</p>
95456
+
95457
+ <ol>
95458
+ <li><p>Resolve <var>p</var> with <var>imageBitmap</var>.</p></li>
95459
+ </ol>
95460
+ </li>
95461
+ </ol>
95462
+ </dd>
95426
95463
</dl>
95427
95464
</li>
95428
95465
@@ -123482,6 +123519,9 @@ INSERT INTERFACES HERE
123482
123519
<dt id="refsWEBAUDIO">[WEBAUDIO]</dt>
123483
123520
<dd>(Non-normative) <cite><a href="https://webaudio.github.io/web-audio-api/">Web Audio API</a></cite>, P. Adenot, H. Choi. W3C.</dd>
123484
123521
123522
+ <dt id="refsWEBCODECS">[WEBCODECS]</dt>
123523
+ <dd>(Non-normative) <cite><a href="https://w3c.github.io/webcodecs/">WebCodecs API</a></cite>, C. Cunningham, P. Adenot, B. Aboba. W3C.</dd>
123524
+
123485
123525
<dt id="refsWEBCRYPTO">[WEBCRYPTO]</dt>
123486
123526
<dd>(Non-normative) <cite><a href="https://w3c.github.io/webcrypto/Overview.html">Web Cryptography API</a></cite>, M. Watson. W3C.</dd>
123487
123527
0 commit comments