Use the WebIDL default for the VideoFrame.copyTo color space option
Categories
(Core :: Audio/Video: Web Codecs, task)
Tracking
()
People
(Reporter: padenot, Assigned: padenot)
References
Details
Attachments
(2 external files, 1 obsolete file)
Replace the manual default for the colorSpace option in VideoFrame::CopyTo with the default from VideoFrame.webidl, and give the unsupported-format error in ParseVideoFrameCopyToOptions a clearer message. No behaviour change. Also add a cast to the videoFrame-copyTo WPT, which had no test with an offset.
https://github.com/w3c/webcodecs/pull/958 is what prompted this.
| Assignee | ||
Comment 1•14 days ago
|
||
Replace the manual default for colorSpace in VideoFrame::CopyTo with the
default from VideoFrame.webidl, and give the unsupported-format error a
clearer message. No behaviour change.
Related spec change: https://github.com/w3c/webcodecs/pull/958
This adds a cast to the copyTo WPT, there was no test with an offset.
Updated•14 days ago
|
| Assignee | ||
Comment 2•14 days ago
|
||
Replace the manual default for colorSpace in VideoFrame::CopyTo with the
default from VideoFrame.webidl, and give the unsupported-format error a
clearer message. No behaviour change.
Related spec change: https://github.com/w3c/webcodecs/pull/958
This adds a cast to the copyTo WPT, there was no test with an offset.
Updated•14 days ago
|
| Assignee | ||
Comment 3•14 days ago
|
||
Check the destination view byte length after parsing options, as required by
the copyTo algorithm. This rejects detached and undersized destinations
before attempting RGB conversion.
Cover detached, empty, undersized and exact-sized buffers and views,
including non-zero byte offsets and multi-byte typed arrays.
Description
•