Bug 240633 - [Linux] TextureMapperPlatformLayerProxyDMABuf should support different colorspaces
Summary: [Linux] TextureMapperPlatformLayerProxyDMABuf should support different colors...
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek (Reviews)
Keywords: InRadar
Depends on: 240952
Blocks: DMA-BUF
  Show dependency treegraph
Reported: 2022-05-19 01:28 PDT by Zan Dobersek
Modified: 2022-05-31 06:03 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2022-05-19 01:28:32 PDT
Right now, TextureMapperPlatformLayerProxyDMABuf defaults to converting multiplanar YUV data to RGB via the BT.601 conversion matrix. It should be possible for the incoming DMABufs to have the desired colorspace specified, and the proxy class should respect it to the point of selecting the appropriate conversion matrix.

Besides BT.601, other supported YUV colorspaces should be BT.709, BT.2020 and SMPTE 240M, matching the GStreamer GST_VIDEO_COLORIMETRY_* values.
Comment 1 Radar WebKit Bug Importer 2022-05-26 01:29:12 PDT
Comment 2 Zan Dobersek 2022-05-31 00:23:10 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1174
Comment 3 EWS 2022-05-31 06:03:46 PDT
Committed r295048 (251143@main): <https://commits.webkit.org/251143@main>

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