Open Bug 2089555 Opened 14 days ago Updated 14 days ago

Use the WebIDL default for the VideoFrame.copyTo color space option

Categories

(Core :: Audio/Video: Web Codecs, task)

task

Tracking

()

ASSIGNED

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.

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.

Assignee: nobody → padenot
Status: NEW → ASSIGNED

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.

Attachment #9674855 - Attachment is obsolete: true

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: