Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add cropping support to WebCodecsVideoFrame copyTo
https://bugs.webkit.org/show_bug.cgi?id=246683 rdar://problem/101282697 Reviewed by Eric Carlson. Implement cropping in copyTo as per https://w3c.github.io/webcodecs/#dom-videoframe-copyto step 8.4. Beef up testing for RGBA, BGRA and NV12 as well as I420. * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any.js: (makeRGBA_4x2): (makeRGBA_2x4): (makeBGRA_4x2): (makeBGRA_2x4): (makeNV12_2x4): (makeI420_2x4): (promise_test.async t): * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any.worker-expected.txt: * Source/WebCore/platform/graphics/cv/VideoFrameCV.mm: (WebCore::copyPlane): (WebCore::copyRGBData): (WebCore::copyNV12): (WebCore::copyI420): (WebCore::VideoFrame::copyTo): Canonical link: https://commits.webkit.org/255716@main
- Loading branch information
Showing
4 changed files
with
328 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.