Michael Niedermayer
|
11ad5f0d7d
|
swr-x86-simd: create prototypes with macros, this is simpler.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
adfa53b91f
|
swr-x86-SIMD: 3 instructions less for stereo planar->packed s32/flt->s16
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
5f4e18cd16
|
swr: replace the remaining 2 audio convert SIMD macros by the new ones
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
df5ff103cd
|
swr: fix internal asm labels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
b6f4f0d9ef
|
swr: fix PACK_2CH register count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
aae3119643
|
swr: replace planar->planar/packed->packed FLT<->S16/S32 SIMD by new macros
this simplifies the code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
47055b8913
|
swr: implement stereo S16/S32/FLT->S16/S32/FLT planar->packed in SSE/SSE2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
fec3700dcd
|
swr: update calling code to support mixed packed planar SIMD
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
e8dd7928c8
|
swr: change simd len argument to be in samples instead of dst bytes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
3db6093244
|
swr-test: allow testing a specific subset of cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
c1fe2db376
|
swr: add ff_int32_to_float_a_avx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
29ed1900cc
|
swr-test: fix rounding error leading to NAN
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
33f7033452
|
swr: automatically choose s16/flt/dbl to preserve input precision unless user overrides.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
f2e799a3d0
|
swr: add double precision support to the rematrix code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
71a1f76d3c
|
swr: update double precision checks for our resampler
It supports double precision since a while
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Justin Ruggles
|
6d5bf67f04
|
swr: add lfe_mix_level
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Justin Ruggles
|
9b42653b22
|
swr: update side to back mixing.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
aab5a4521c
|
swr: add and use function pointers for rematrix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
00fea26faf
|
swr: add native matrix for rematrixing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
046b5339fc
|
swr: disable 1 stage convert when dither is enabled.
This combination is not possible easily.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
30aa004f0c
|
swr-test: allow randomizing mode differently each run.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
bea3d19fbb
|
swr-test: use uint_rand() for mode too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
0334464336
|
swr-test: simplify by using uint_rand()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
9f98a8e9bc
|
swr: use memcpy when input and output match
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
106789dfa0
|
swr: add sample format to AudioData
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
2d6c29f566
|
swr: add set_audiodata_fmt() and use it to simplify code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
65722e7fc5
|
swr: int32_to_int16_mmx/sse
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
73edb58c3c
|
swr: float_to_int16_sse2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
5932938c9a
|
swr: float_to_int32_sse2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
b72a0f9c23
|
swr: add int16_to_float_sse2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
832c3b10d2
|
swr: add int32_to_float_sse2
could be done for sse/3dnow too if someone wants
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
95057b1972
|
swr: int16->int32: use the old index negate trick to avoid 2 adds
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
113738d6c2
|
swr: more correct cglobal parameters to int16->int32
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
fa5daaca0d
|
swr: seperate functions for aligned & unaligned
If someone has an idea on how to do this cleaner, its welcome
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
bcc66ff0e4
|
swr: add int16_to_int32_mmx/sse
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
06b62cb8f2
|
swr: move AudioConvert to header
the next commits will need it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
edbde52226
|
swr: change sample format representation so as to maintain the planer/packed distinction.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
dcfc12e86a
|
swr-test: simplify prng code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
bbd3dc49ff
|
swr: unroll audioconvert core C function
36k->32k decicycles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
4119fa7023
|
swr: audioconvert, mark some constants as floats.
idea from avr
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
76d376d99b
|
swr-test: fix declaration statement ordering.
swr-test is now warning free.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
f75169b251
|
swr-test: fix pointer type warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
7b2ce50701
|
swr-test: fix unused var warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
a0dd81dd95
|
swr-test:indent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
f1f5b39866
|
swr-test: support fabrices audiogen like avr
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
73be22f526
|
swr-test: fix u8 zero point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
56f89bae52
|
swr-test: improve rounding in set()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
27de7a8eb3
|
swr-test: remove unneeded hack to test planar formats.
planar formats are now chosen like any other parameter.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
08809e3085
|
swr-test: improve output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |
Michael Niedermayer
|
5347b9da98
|
swr-test: print channel layout, instead of just channel counts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
13 years ago |