[webkit-changes] [WebKit/WebKit] e99a99: Resolve WebCodecsVideoEncoder::isConfigSupported p...
youennf
noreply at github.com
Mon Jul 10 05:50:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e99a99cea11288498936429a46434c1ec9d0b6df
https://github.com/WebKit/WebKit/commit/e99a99cea11288498936429a46434c1ec9d0b6df
Author: Youenn Fablet <youennf at gmail.com>
Date: 2023-07-10 (Mon, 10 Jul 2023)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any.worker-expected.txt
M Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp
Log Message:
-----------
Resolve WebCodecsVideoEncoder::isConfigSupported promise when createVideoEncoderConfig does not support the input parameters
https://bugs.webkit.org/show_bug.cgi?id=259047
rdar://112005870
Reviewed by Eric Carlson.
Update the implementation according the spec, by resolving with false when the given parameters are not supported.
We also pass the input parameters as per spec.
We add a H.264 specific check for odd size video frames, which is consistent with Chrome.
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any.worker-expected.txt:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp:
(WebCore::WebCodecsVideoEncoder::isConfigSupported):
Canonical link: https://commits.webkit.org/265900@main
More information about the webkit-changes
mailing list