[webkit-changes] [WebKit/WebKit] cf92dc: [GStreamer] Minimal codec parsing module
Philippe Normand
noreply at github.com
Fri Dec 9 01:07:42 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cf92dc1de95a7620e873987eed9cd096d1a65851
https://github.com/WebKit/WebKit/commit/cf92dc1de95a7620e873987eed9cd096d1a65851
Author: Philippe Normand <philn at igalia.com>
Date: 2022-12-09 (Fri, 09 Dec 2022)
Changed paths:
M Source/WebCore/platform/GStreamer.cmake
M Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
A Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.cpp
A Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.h
Log Message:
-----------
[GStreamer] Minimal codec parsing module
https://bugs.webkit.org/show_bug.cgi?id=248948
Reviewed by Xabier Rodriguez-Calvar.
This patch exposes API for parsing H.264 profile and level from a codec string, this code existed in
the registry scanner before but can now be reused for eg. the upcoming WebCodecs backend. A minimal
VP9 profile parsing utility is also part of this patch.
The new file is stored in platform/gstreamer, we should gradually add new GStreamer modules there
when appropriate. Some of the platform/graphics/gstreamer files could also move there at some point.
* Source/WebCore/platform/GStreamer.cmake:
* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::isAVC1CodecSupported const):
* Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.cpp: Added.
(WebCore::ensureDebugCategoryInitialized):
(WebCore::GStreamerCodecUtilities::parseVP9Profile):
* Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.h: Added.
Canonical link: https://commits.webkit.org/257615@main
More information about the webkit-changes
mailing list