mpv/libaf
wm4 74df1d8e05 Remove compile time/runtime CPU detection, and drop some platforms
mplayer had three ways of enabling CPU specific assembler routines:
a) Enable them at compile time; crash if the CPU can't handle it.
b) Enable them at compile time, but let the configure script detect
   your CPU. Your binary will only crash if you try to run it on a
   different system that has less features than yours.
   This was the default, I think.
c) Runtime detection.

The implementation of b) and c) suck. a) is not really feasible (it
sucks for users). Remove all code related to this, and use libav's CPU
detection instead. Now the configure script will always enable CPU
specific features, and disable them at runtime if libav reports them
not as available.

One implication is that now the compiler is always expected to handle
SSE (etc.) inline assembly at runtime, unless it's explicitly disabled.

Only checks for x86 CPU specific features are kept, the rest is either
unused or barely used.

Get rid of all the dump -mpcu, -march etc. flags. Trust the compiler
to select decent settings.

Get rid of support for the following operating systems:
- BSD/OS (some ancient BSD fork)
- QNX (don't care)
- BeOS (dead, Haiku support is still welcome)
- AIX (don't care)
- HP-UX (don't care)
- OS/2 (dead, actual support has been removed a while ago)

Remove the configure code for detecting the endianness. Instead, use
the standard header <endian.h>, which can be used if _GNU_SOURCE or
_BSD_SOURCE is defined. (Maybe these changes should have been in a
separate commit.)

Since this is a quite violent code removal orgy, and I'm testing only
on x86 32 bit Linux, expect regressions.
2012-07-30 01:37:28 +02:00
..
af.c af: fix crash when trying to use volume controls with AC3 pass-through 2012-01-18 04:21:46 +01:00
af.h libaf: Make af_reinit "public", to allow using it in future patches 2010-11-02 04:18:37 +02:00
af_bs2b.c Cosmetics for r29244 to follow K&R style closely. 2009-05-03 21:52:41 +00:00
af_center.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_channels.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
af_comp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_delay.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_dummy.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_equalizer.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_export.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_extrastereo.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_format.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
af_format.h Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
af_format_alaw.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
af_format_ulaw.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
af_gate.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_hrtf.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_hrtf.h Replace informal license notices by standard license header 2009-01-05 12:41:40 +00:00
af_karaoke.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_ladspa.c cleanup: avoid various GCC warnings 2011-04-20 04:22:53 +03:00
af_lavcac3enc.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
af_lavcresample.c cleanup: avoid various GCC warnings 2011-04-20 04:22:53 +03:00
af_pan.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_resample.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_resample_template.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
af_scaletempo.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
af_sinesuppress.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_stats.c af_stats: Some fixes to the new filter 2009-02-21 22:07:39 +00:00
af_sub.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_surround.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_sweep.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_tools.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
af_volnorm.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
af_volume.c af_volume: do not change data when volume is 1 2012-01-16 22:40:14 +02:00
control.h Change libaf control ordering to make the controls unique again, (AF_CONTROL_PAN_BALANCE vs. 2009-09-26 06:41:09 +00:00
dsp.h Replace informal license notices by standard license header 2009-01-05 12:41:40 +00:00
equalizer.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
filter.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
filter.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
format.c cleanup: silence most of the clang warnings 2011-07-09 04:23:24 +03:00
reorder_ch.c Fix mangling of 24-bit audio during channel reorder. 2009-11-28 18:23:26 +00:00
reorder_ch.h Add support for 8 channel audio. 2009-11-10 00:45:19 +00:00
window.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
window.h Replace informal license notices by standard license header 2009-01-05 12:41:40 +00:00