mirror of https://github.com/mpv-player/mpv
74df1d8e05
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. |
||
---|---|---|
.. | ||
freesdp | ||
librtsp | ||
realrtsp | ||
ai_alsa1x.c | ||
ai_oss.c | ||
asf_mmst_streaming.c | ||
asf_mmst_streaming.h | ||
asf_streaming.c | ||
audio_in.c | ||
audio_in.h | ||
cache2.c | ||
cache2.h | ||
cdd.h | ||
cdinfo.c | ||
cookies.c | ||
cookies.h | ||
dvb_tune.c | ||
dvb_tune.h | ||
dvbin.h | ||
frequencies.c | ||
frequencies.h | ||
http.c | ||
http.h | ||
network.c | ||
network.h | ||
open.c | ||
pnm.c | ||
pnm.h | ||
pvr.h | ||
rtp.c | ||
rtp.h | ||
stream.c | ||
stream.h | ||
stream_bluray.c | ||
stream_cdda.c | ||
stream_cddb.c | ||
stream_cue.c | ||
stream_dvb.c | ||
stream_dvd.c | ||
stream_dvd.h | ||
stream_dvd_common.c | ||
stream_dvd_common.h | ||
stream_dvdnav.c | ||
stream_dvdnav.h | ||
stream_ffmpeg.c | ||
stream_file.c | ||
stream_ftp.c | ||
stream_live555.c | ||
stream_mf.c | ||
stream_nemesi.c | ||
stream_netstream.c | ||
stream_netstream.h | ||
stream_null.c | ||
stream_pvr.c | ||
stream_radio.c | ||
stream_radio.h | ||
stream_rtp.c | ||
stream_rtsp.c | ||
stream_smb.c | ||
stream_tv.c | ||
stream_udp.c | ||
stream_vcd.c | ||
stream_vstream.c | ||
tcp.c | ||
tcp.h | ||
tv.c | ||
tv.h | ||
tvi_bsdbt848.c | ||
tvi_def.h | ||
tvi_dshow.c | ||
tvi_dshow.h | ||
tvi_dummy.c | ||
tvi_v4l.c | ||
tvi_v4l2.c | ||
udp.c | ||
udp.h | ||
url.c | ||
url.h | ||
vcd_read.h | ||
vcd_read_darwin.h | ||
vcd_read_fbsd.h | ||
vcd_read_win32.h |