Skip to content

Conversation

@philn
Copy link
Member

@philn philn commented Nov 5, 2022

2a9d6e2

[GStreamer] Rebrand colorspace handling to common facilities
https://bugs.webkit.org/show_bug.cgi?id=247524

Reviewed by Xabier Rodriguez-Calvar.

We had some basic GstVideoInfo -> PlatformVideoColorSpace conversion in VideoTrackPrivateGStreamer.
This now lives in GStreamerCommon along with a GstCaps -> PlatformVideoColorSpace and
PlatformVideoColorSpace -> GstCaps utilities. Those will be useful to improve the
VideoFrameGStreamer implementation for the WebCodecs backend.

* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::videoColorSpaceFromCaps):
(WebCore::videoColorSpaceFromInfo):
(WebCore::fillVideoInfoColorimetryFromColorSpace):
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:
* Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp:
(WebCore::VideoTrackPrivateGStreamer::updateConfigurationFromCaps):

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

9afbbfd

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 🧪 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-debug ✅ 🛠 gtk ✅ 🛠 wincairo
✅ 🧪 webkitperl 🧪 ios-wk2 ✅ 🛠 mac-AS-debug 🧪 gtk-wk2
🧪 api-ios ✅ 🧪 api-mac 🧪 api-gtk
✅ 🛠 tv 🧪 mac-wk1
✅ 🛠 tv-sim ✅ 🧪 mac-wk2
✅ 🛠 🧪 merge ✅ 🛠 watch 🧪 mac-AS-debug-wk2
✅ 🛠 watch-sim ✅ 🧪 mac-wk2-stress

@philn philn self-assigned this Nov 5, 2022
@philn philn added Platform Portability improvements and other general platform improvements not driven directly by site bugs. WebKit Nightly Build labels Nov 5, 2022
@philn philn requested a review from calvaris November 7, 2022 09:17
@philn philn added the merge-queue Applied to send a pull request to merge-queue label Nov 7, 2022
https://bugs.webkit.org/show_bug.cgi?id=247524

Reviewed by Xabier Rodriguez-Calvar.

We had some basic GstVideoInfo -> PlatformVideoColorSpace conversion in VideoTrackPrivateGStreamer.
This now lives in GStreamerCommon along with a GstCaps -> PlatformVideoColorSpace and
PlatformVideoColorSpace -> GstCaps utilities. Those will be useful to improve the
VideoFrameGStreamer implementation for the WebCodecs backend.

* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::videoColorSpaceFromCaps):
(WebCore::videoColorSpaceFromInfo):
(WebCore::fillVideoInfoColorimetryFromColorSpace):
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:
* Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp:
(WebCore::VideoTrackPrivateGStreamer::updateConfigurationFromCaps):

Canonical link: https://commits.webkit.org/256396@main
@webkit-commit-queue
Copy link
Collaborator

Committed 256396@main (2a9d6e2): https://commits.webkit.org/256396@main

Reviewed commits have been landed. Closing PR #6169 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 2a9d6e2 into WebKit:main Nov 7, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 7, 2022
@philn philn deleted the eng/247524 branch November 7, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Platform Portability improvements and other general platform improvements not driven directly by site bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants