[webkit-changes] [WebKit/WebKit] 576c92: Add support for RGBX and BGRX pixel formats
youennf
noreply at github.com
Tue Oct 11 10:50:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 576c925abbaf5822b68d94c0563009c9e216c04a
https://github.com/WebKit/WebKit/commit/576c925abbaf5822b68d94c0563009c9e216c04a
Author: Youenn Fablet <youennf at gmail.com>
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
More information about the webkit-changes
mailing list