Skip to content

spa: libcamera: fix RGB mappings

Robert Mader requested to merge rmader/pipewire:libcamera-fix-rgb-colors into master

Libcamera formats are generally little-endian, matching DMA DRM fourccs, while PW ones are big-endian. Thus we have to invert the order.

Only RGB and BGR where tested, as these are the formats currently supported by the software ISP. This fixes inverted red and blue in Snapshot on the Librem5 and Pinephone (OG).

See also gstlibcamera-utils.cpp in libcamera.


If accepted, please backport to the 1.0 branch.

Edited by Robert Mader

Merge request reports