Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 576c925abbaf5822b68d94c0563009c9e216c04a
      
https://github.com/WebKit/WebKit/commit/576c925abbaf5822b68d94c0563009c9e216c04a
  Author: Youenn Fablet <[email protected]>
  Date:   2022-10-11 (Tue, 11 Oct 2022)

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

  Log Message:
  -----------
  Add support for RGBX and BGRX pixel formats
https://bugs.webkit.org/show_bug.cgi?id=246332
rdar://problem/101026504

Reviewed by Eric Carlson.

Add support for RGBX and BGRX as well as alpha discarding.
We do not actually change the pixels so that creating a frame from another 
remains very cheap.
But this will require the renderer code path to be aware that alpha should be 
discarded for RGBX and BGRX framess.

* 
LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.any.worker-expected.txt:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp:
(WebCore::WebCodecsVideoFrame::create):
(WebCore::computeVideoPixelFormat):
(WebCore::WebCodecsVideoFrame::initializeFrameFromOtherFrame):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.idl:

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


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

Reply via email to