Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 044bcbf0c269e999b8bcda26e7de11041e057c0d
      
https://github.com/WebKit/WebKit/commit/044bcbf0c269e999b8bcda26e7de11041e057c0d
  Author: Youenn Fablet <[email protected]>
  Date:   2025-05-16 (Fri, 16 May 2025)

  Changed paths:
    A LayoutTests/webrtc/media-capabilities-webrtc-expected.txt
    A LayoutTests/webrtc/media-capabilities-webrtc.html
    M Source/WebCore/platform/graphics/AV1Utilities.cpp
    M Source/WebCore/platform/graphics/AV1Utilities.h
    M Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
    M Source/WebCore/platform/mediastream/WebRTCProvider.cpp
    M Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp

  Log Message:
  -----------
  Improving Decoding Capability accuracy on Media Capability API
rdar://150685443
https://bugs.webkit.org/show_bug.cgi?id=292468

Reviewed by Jean-Yves Avenard.

The regular streaming media capabilities code path is doing finer grained 
checks on things like HDR.
We reuse that code path for WebRTC video decoding media capabilities by first 
checking whether the video decoder
is supported by WebRTC and is power efficient.
If so, we make another call to validate that the same video configuration would 
be supported for MSE.
We then reuse these results.

The reason we do this two step approach is that, HW support be the same for 
WebRTC and regular video streaming.
But SW support may be different (VP8 support for instance).

We update GStreamerRegistryScanner::isRtpPacketizerSupported to add missing 
FourCC based codec names (vp08, vp09, avc1....).

* LayoutTests/webrtc/media-capabilities-webrtc-expected.txt: Added.
* LayoutTests/webrtc/media-capabilities-webrtc.html: Added.
* Source/WebCore/platform/graphics/AV1Utilities.cpp:
(WebCore::parseEnumFromStringView): Deleted.
* Source/WebCore/platform/graphics/AV1Utilities.h:
(WebCore::parseEnumFromStringView):
* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::isRtpPacketizerSupported):
* Source/WebCore/platform/mediastream/WebRTCProvider.cpp:
(WebCore::contentTypeFromRTPVideoMimeType):
(WebCore::WebRTCProvider::createDecodingConfiguration):
* Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
(WebCore::LibWebRTCProvider::videoDecodingCapabilitiesOverride):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to