Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9761a5d2141040ada1b594b913fd7adaf53ea266
      
https://github.com/WebKit/WebKit/commit/9761a5d2141040ada1b594b913fd7adaf53ea266
  Author: Youenn Fablet <[email protected]>
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.any-expected.txt
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.cpp
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.h
    M Source/WebCore/platform/VideoPixelFormat.cpp
    M Source/WebCore/platform/VideoPixelFormat.h

  Log Message:
  -----------
  Implement WebCodecs Validate VideoFrameInit algorithm
https://bugs.webkit.org/show_bug.cgi?id=246796
rdar://problem/101373396

Reviewed by Eric Carlson.

Implement https://w3c.github.io/webcodecs/#validate-videoframeinit and add 
support for alpha from canvas.
Covered by rebased test.

* 
LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.any-expected.txt:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp:
(WebCore::WebCodecsVideoFrame::initializeFrameFromOtherFrame):
(WebCore::WebCodecsVideoFrame::initializeFrameWithResourceAndSize):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.cpp:
(WebCore::isNegativeOrNonFinite):
(WebCore::validateVideoFrameInit):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.h:
* Source/WebCore/platform/VideoPixelFormat.cpp:
(WebCore::convertVideoFramePixelFormat):
* Source/WebCore/platform/VideoPixelFormat.h:

Canonical link: https://commits.webkit.org/255786@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to