spa: libcamera: source: fix mapping of libcamera::ColorSpace::TransferFunction::Linear

`SPA_VIDEO_TRANSFER_GAMMA10` should be used to represent a
linear transfer function.

Fixes: 7e202a3844 ("spa: libcamera: add colorimetry support")
(cherry picked from commit 07a4e593bb)
This commit is contained in:
Barnabás Pőcze 2025-07-24 11:54:16 +02:00 committed by Robert Mader
parent db23d9fa04
commit b775acca60

View file

@ -475,7 +475,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;