pipewire/spa/include/spa
Sven Püschel 5932963506 spa: match camera property types with libcamera
The Pipewire libcamera spa plugin exposes multiple camera properties.
Unlike v4l2, libcamera usually exposes these as normalized floating
point values. But as the SPA_PROP types are based on v4l2, they are
currently set to integers.

This causes a problem when using pw-cli to change the properties,
as the spa_json_to_pod_part function casts the properties according
to their spa_type_info. Other software that doesn't depend on the
spa_type_info can correctly set the properties, as the values are
encoded in the spa_pod type and therefore also carry a type.

As the limited range from switching integers to floats is likely not a
problem, the affected spa properties were changed to the Float type.
This will cause pw-cli to also generate spa_pod values of type float
when setting v4l2 properties. Therefore the v4l2 spa plugin is also
adapted to allow floating point properties and cast these to integers.

Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
2024-07-17 15:56:53 +00:00
..
buffer buffer: add that the mapoffset is page aligned 2024-06-13 10:22:58 +02:00
control treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
debug spa: deal with non-null terminated strings in spa_error_location 2024-03-27 18:36:06 +02:00
graph treewide: fix C++20 compilation error wrt. designated initializers 2024-05-03 07:16:57 +00:00
interfaces/audio aec: add new init2 method to initialize with different formats 2023-04-11 16:54:11 +02:00
monitor Fix some warnings 2023-11-21 16:32:51 +00:00
node node: add a clock XRUN_RECOVER flag 2024-07-12 12:21:59 +02:00
param spa: match camera property types with libcamera 2024-07-17 15:56:53 +00:00
pod Fix compilation with -Werror=float-conversion 2024-06-18 12:17:56 +02:00
support thread: make it possible to set a custom create function 2024-07-09 17:04:35 +02:00
utils spa: utils: explicitly preserve errno in spa_cleanup handlers 2024-07-04 20:57:51 +00:00