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")
This commit is contained in:
Barnabás Pőcze 2025-07-24 11:54:16 +02:00 committed by Wim Taymans
parent 938195b19f
commit 07a4e593bb

View file

@ -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;