Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4abe3550323a0846d5f459d8beea6ff70a743934
      
https://github.com/WebKit/WebKit/commit/4abe3550323a0846d5f459d8beea6ff70a743934
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2026-10-07 (Wed, 07 Oct 2026)

  Changed paths:
    A LayoutTests/http/wpt/webcodecs/av1-encoder-bit-depth-expected.txt
    A LayoutTests/http/wpt/webcodecs/av1-encoder-bit-depth.html
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/platform/VideoEncoder.cpp

  Log Message:
  -----------
  WebCodecs AV1 encoder accepts 10-bit, 12-bit, monochrome and 4:4:4/4:2:2 
codec strings but always encodes 8-bit 4:2:0
https://bugs.webkit.org/show_bug.cgi?id=325906
rdar://188882755

Reviewed by Youenn Fablet.

WebCodecsVideoEncoder accepted any codec string starting with "av01.0", and on 
Cocoa the encoder
is libwebrtc's libaom wrapper, which sets an 8-bit input depth and is built 
without
CONFIG_AV1_HIGHBITDEPTH. Codec strings requesting 10-bit, 12-bit, monochrome or 
non-4:2:0 chroma
were reported as supported and produced an 8-bit 4:2:0 stream.

VideoEncoder::createLocalEncoder() now parses AV1 codec strings with 
parseAV1CodecParameters() and
fails to create the libwebrtc encoder unless they describe 8-bit 4:2:0, so 
isConfigSupported()
reports them as unsupported and configure() fails. The GStreamer encoder is 
unchanged.

* LayoutTests/http/wpt/webcodecs/av1-encoder-bit-depth-expected.txt: Added.
* LayoutTests/http/wpt/webcodecs/av1-encoder-bit-depth.html: Added.
* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/platform/VideoEncoder.cpp:
(WebCore::VideoEncoder::createLocalEncoder): Reject AV1 codec strings that are 
not 8-bit 4:2:0.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to