From 07a4e593bb1b0638e782042cbd69dde73e14b323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 24 Jul 2025 11:54:16 +0200 Subject: [PATCH] spa: libcamera: source: fix mapping of `libcamera::ColorSpace::TransferFunction::Linear` `SPA_VIDEO_TRANSFER_GAMMA10` should be used to represent a linear transfer function. Fixes: 7e202a384472b5 ("spa: libcamera: add colorimetry support") --- spa/plugins/libcamera/libcamera-source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/libcamera/libcamera-source.cpp b/spa/plugins/libcamera/libcamera-source.cpp index 76b512c97..5e934790b 100644 --- a/spa/plugins/libcamera/libcamera-source.cpp +++ b/spa/plugins/libcamera/libcamera-source.cpp @@ -476,7 +476,7 @@ color_space_to_colorimetry(const libcamera::ColorSpace& colorspace) switch (colorspace.transferFunction) { case ColorSpace::TransferFunction::Linear: - res.transfer = SPA_VIDEO_TRANSFER_UNKNOWN; + res.transfer = SPA_VIDEO_TRANSFER_GAMMA10; break; case ColorSpace::TransferFunction::Srgb: res.transfer = SPA_VIDEO_TRANSFER_SRGB;