[webkit-changes] [WebKit/WebKit] 903dab: Add cropping support to WebCodecsVideoFrame copyTo

youennf noreply at github.com
Tue Oct 18 23:35:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 903dab21ab4f09d231bd7064153c712243aaa900
      https://github.com/WebKit/WebKit/commit/903dab21ab4f09d231bd7064153c712243aaa900
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any.js
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-copyTo.any.worker-expected.txt
    M Source/WebCore/platform/graphics/cv/VideoFrameCV.mm

  Log Message:
  -----------
  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




More information about the webkit-changes mailing list