Skip to content

Commit 1e84fca

Browse files
committed
Allow allocationSize/copyTo on format-less VideoFrames when converting to RGB.
1 parent c954be0 commit 1e84fca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3830,7 +3830,7 @@
38303830
When invoked, run these steps:
38313831
1. If {{platform object/[[Detached]]}} is `true`, throw an
38323832
{{InvalidStateError}} {{DOMException}}.
3833-
2. If {{VideoFrame/[[format]]}} is `null`, throw a {{NotSupportedError}}
3833+
2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], throw a {{NotSupportedError}}
38343834
{{DOMException}}.
38353835
3. Let |combinedLayout| be the result of running the [=Parse
38363836
VideoFrameCopyToOptions=] algorithm with |options|.
@@ -3849,7 +3849,7 @@
38493849
When invoked, run these steps:
38503850
1. If {{platform object/[[Detached]]}} is `true`, return a promise rejected
38513851
with a {{InvalidStateError}} {{DOMException}}.
3852-
2. If {{VideoFrame/[[format]]}} is `null`, return a promise rejected with a
3852+
2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], return a promise rejected with a
38533853
{{NotSupportedError}} {{DOMException}}.
38543854
3. Let |combinedLayout| be the result of running the [=Parse
38553855
VideoFrameCopyToOptions=] algorithm with |options|.
@@ -6258,6 +6258,7 @@
62586258
conditions, such as allowing a site to mutate a codec input or output while
62596259
the underlying codec is still operating on that data. This concern is mitigated
62606260
by ensuring that input and output interfaces are immutable.
6261+
</div>
62616262

62626263
Privacy Considerations{#privacy-considerations}
62636264
===============================================
@@ -6305,6 +6306,7 @@
63056306
budget", which depletes as authors use WebCodecs and other identifying APIs.
63066307
Upon exhaustion of the privacy budget, codec capabilities could be reduced to a
63076308
common baseline or prompt for user approval.
6309+
</div>
63086310

63096311
Best Practices for Authors Using WebCodecs{#best-practices-developers}
63106312
======================================================================

0 commit comments

Comments
 (0)