pipewire/spa/plugins
Roman Lebedev f4c89b1b40
audioconvert: avoid even more precision loss in S32 to F32 conversion
There's really no point in doing that s25_32 intermediate step,
to be honest i don't have a clue why the original implementation
did that \_(ツ)_/¯.

Both `S25_SCALE` and `S32_SCALE` are powers of two,
and thus are both exactly representable as floats,
and reprocial of power-of-two is also exactly representable,
so it's not like that rescaling results in precision loss.

This additionally avoids right-shift, and thus is even faster.

As `test_lossless_s32_lossless_subset` shows,
if the integer is in the form of s25+shift,
the maximal absolute error became even lower,
but not zero, because F32->S32 still goes through S25 intermediate.
I think we could theoretically do better,
but then the clamping becomes pretty finicky,
so i don't feel like touching that here.
2024-06-27 19:41:20 +03:00
..
aec spa: aec: webrtc: Fix multichannel processing 2024-06-25 15:34:30 -04:00
alsa impl-port: add port.group property 2024-06-24 13:38:09 +02:00
audioconvert audioconvert: avoid even more precision loss in S32 to F32 conversion 2024-06-27 19:41:20 +03:00
audiomixer spa: revert peer_enum_params node event again 2024-06-20 10:22:45 +02:00
audiotestsrc fix compilation some more 2024-06-18 15:41:12 +02:00
avb spa: small cleanups 2024-01-10 15:51:01 +01:00
bluez5 impl-port: add port.group property 2024-06-24 13:38:09 +02:00
control spa: revert peer_enum_params node event again 2024-06-20 10:22:45 +02:00
ffmpeg spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
jack spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
libcamera impl-port: add port.group property 2024-06-24 13:38:09 +02:00
support Fix compilation with -Werror=float-conversion 2024-06-18 12:17:56 +02:00
test spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
v4l2 impl-port: add port.group property 2024-06-24 13:38:09 +02:00
videoconvert videoconvert: Enable loading external converter plugins 2024-01-22 13:59:16 +00:00
videotestsrc spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
volume spa: fix volume plugin compilation 2024-06-18 15:44:26 +02:00
vulkan vulkan: fix compilation 2024-06-18 15:16:06 +02:00
meson.build meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00