Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cedeafd8a94d859d66a01697af868fd0552a2150
https://github.com/WebKit/WebKit/commit/cedeafd8a94d859d66a01697af868fd0552a2150
Author: Youenn Fablet <[email protected]>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.js
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_annexb-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_avc-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h265_annexb-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h265_hevc-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_annexb-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_avc-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h265_annexb-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h265_hevc-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_hardware-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_software-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_hardware-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_software-expected.txt
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_hardware-expected.txt
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_software-expected.txt
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_hardware-expected.txt
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_software-expected.txt
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources-output.xcfilelist
M Source/WebCore/DerivedSources.make
M Source/WebCore/Modules/webcodecs/AvcEncoderConfig.h
A Source/WebCore/Modules/webcodecs/HevcEncoderConfig.h
A Source/WebCore/Modules/webcodecs/HevcEncoderConfig.idl
M Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp
M Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoderConfig.h
M Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoderConfig.idl
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
Log Message:
-----------
Support WebCodecs HEVC annexB encoder
rdar://188387670
https://bugs.webkit.org/show_bug.cgi?id=324804
Reviewed by Jean-Yves Avenard.
We add support for the HevcEncoderConfig so that web pages can turn on annexB
HEVC encoding.
We add a few enumerations to AvcBitstreamFormat and HevcBitstreamFormat so that
we get better casing for avec, hevc and annexb enumeration values.
Covered by updated WPT test.
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp:
(WebCore::createVideoEncoderConfig):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoderConfig.h:
(WebCore::WebCodecsVideoEncoderConfig::isolatedCopy):
(WebCore::WebCodecsVideoEncoderConfig::isolatedCopy const):
(WebCore::isSameConfigurationExceptBitrateAndFramerate):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoderConfig.idl:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.js:
(const.encoder_init.async if):
(promise_test.async t):
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_annexb-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_avc-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h265_annexb-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h265_hevc-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_annexb-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_avc-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h265_annexb-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h265_hevc-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_hardware-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_software-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_hardware-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_software-expected.txt:
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_hardware-expected.txt:
Removed.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any.worker_h265_annexb_software-expected.txt:
Removed.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_hardware-expected.txt:
Removed.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webcodecs/video-encoder-h26x-annexb.https.any_h265_annexb_software-expected.txt:
Removed.
* Source/WebCore/Modules/webcodecs/AvcEncoderConfig.h:
* Source/WebCore/Modules/webcodecs/HEVCEncoderConfig.h: Copied from
Source/WebCore/Modules/webcodecs/AvcEncoderConfig.h.
* Source/WebCore/Modules/webcodecs/HEVCEncoderConfig.idl: Copied from
Source/WebCore/Modules/webcodecs/AvcEncoderConfig.h.
Canonical link: https://commits.webkit.org/322385@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications