mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-23 08:56:47 -05:00
audioconvert: move some things around
To make it easier to add other implementations later. Improve selection of resampler function
This commit is contained in:
parent
bf3ebb67aa
commit
0d1cef6b3a
12 changed files with 172 additions and 131 deletions
|
|
@ -30,7 +30,6 @@
|
|||
#include <time.h>
|
||||
|
||||
#include "resample.h"
|
||||
#include "resample-native.h"
|
||||
|
||||
#define MAX_SAMPLES 4096
|
||||
#define MAX_CHANNELS 11
|
||||
|
|
@ -135,7 +134,7 @@ int main(int argc, char *argv[])
|
|||
r.i_rate = in_rates[i];
|
||||
r.o_rate = out_rates[i];
|
||||
r.quality = RESAMPLE_DEFAULT_QUALITY;
|
||||
impl_native_init(&r);
|
||||
resample_native_init(&r);
|
||||
run_test("native", "c", &r);
|
||||
resample_free(&r);
|
||||
}
|
||||
|
|
@ -147,7 +146,7 @@ int main(int argc, char *argv[])
|
|||
r.i_rate = in_rates[i];
|
||||
r.o_rate = out_rates[i];
|
||||
r.quality = RESAMPLE_DEFAULT_QUALITY;
|
||||
impl_native_init(&r);
|
||||
resample_native_init(&r);
|
||||
run_test("native", "sse", &r);
|
||||
resample_free(&r);
|
||||
}
|
||||
|
|
@ -160,7 +159,7 @@ int main(int argc, char *argv[])
|
|||
r.i_rate = in_rates[i];
|
||||
r.o_rate = out_rates[i];
|
||||
r.quality = RESAMPLE_DEFAULT_QUALITY;
|
||||
impl_native_init(&r);
|
||||
resample_native_init(&r);
|
||||
run_test("native", "ssse3", &r);
|
||||
resample_free(&r);
|
||||
}
|
||||
|
|
@ -173,7 +172,7 @@ int main(int argc, char *argv[])
|
|||
r.i_rate = in_rates[i];
|
||||
r.o_rate = out_rates[i];
|
||||
r.quality = RESAMPLE_DEFAULT_QUALITY;
|
||||
impl_native_init(&r);
|
||||
resample_native_init(&r);
|
||||
run_test("native", "avx", &r);
|
||||
resample_free(&r);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue