mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: move dither and noise to fmt-ops
We need to do dithering and noise when converting f32 to the target format. This is more natural because we can work in 32 bits integers instead of floats. This will also make it possible to actually calculate the error between source and target values and implement some sort of feedback and noise shaping later.
This commit is contained in:
parent
51f4f1fb69
commit
6b49bded3a
9 changed files with 555 additions and 571 deletions
|
|
@ -22,8 +22,7 @@ if have_sse
|
|||
endif
|
||||
if have_sse2
|
||||
audioconvert_sse2 = static_library('audioconvert_sse2',
|
||||
['fmt-ops-sse2.c',
|
||||
'dither-ops-sse2.c' ],
|
||||
['fmt-ops-sse2.c' ],
|
||||
c_args : [sse2_args, '-O3', '-DHAVE_SSE2'],
|
||||
dependencies : [ spa_dep ],
|
||||
install : false
|
||||
|
|
@ -95,9 +94,7 @@ audioconvert_lib = static_library('audioconvert',
|
|||
'resample-peaks.c',
|
||||
'fmt-ops-c.c',
|
||||
'volume-ops.c',
|
||||
'volume-ops-c.c',
|
||||
'dither-ops.c',
|
||||
'dither-ops-c.c' ],
|
||||
'volume-ops-c.c' ],
|
||||
c_args : [ simd_cargs, '-O3'],
|
||||
link_with : simd_dependencies,
|
||||
include_directories : [configinc],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue