mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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 commit07a4e593bb)
This commit is contained in:
parent
db23d9fa04
commit
b775acca60
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue