Command line video player
Go to file
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
DOCS
TOOLS TOOLS/fil2string.py: fix for use with binary files 2012-07-28 23:36:08 +02:00
debian
etc
ffmpeg_files
input bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
libaf Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
libao2 Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
libmpcodecs Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
libmpdemux Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
libvo Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
loader Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
osdep
rpm
stream Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
sub bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
timeline bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
.gitignore
AUTHORS
Copyright
LICENSE
Makefile libvo: remove custom assembler memcpy implementations (aka fastmemcpy) 2012-07-30 01:33:40 +02:00
README osd: remove freetype font rendering code 2012-07-28 23:36:08 +02:00
asxparser.c
asxparser.h
av_log.c
av_log.h
av_opts.c
av_opts.h
bstr.c
bstr.h bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
cfg-mplayer.h osd: remove freetype font rendering code 2012-07-28 23:36:08 +02:00
codec-cfg.c
codec-cfg.h
command.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
command.h
configure Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
cpudetect.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
cpudetect.h Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
cpuinfo.c
defaultopts.c
defaultopts.h
fmt-conversion.c
fmt-conversion.h
m_config.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
m_config.h bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
m_option.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
m_option.h
m_property.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
m_property.h
m_struct.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
m_struct.h
mangle.h configure: remove pointless checks for yasm etc. 2012-07-29 00:22:13 +02:00
metadata.h
mixer.c
mixer.h
mp_core.h
mp_fifo.c
mp_fifo.h
mp_msg.c
mp_msg.h
mp_osd.h
mpbswap.h
mpcommon.c Change version string 2012-07-29 00:04:17 +02:00
mpcommon.h
mplayer.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
mplayer.h
options.h
parser-cfg.c
parser-cfg.h
parser-mpcmd.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
parser-mpcmd.h
path.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
path.h
playtree.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
playtree.h
playtreeparser.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
playtreeparser.h
pnm_loader.c
pnm_loader.h
screenshot.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
screenshot.h
subopt-helper.c
subopt-helper.h
talloc.c
talloc.h
version.sh Change version string 2012-07-29 00:04:17 +02:00

README

Compiling with full features requires development files for several
external libraries. Below is a list of some important requirements. For
more information see the output of './configure --help' for a list of options,
or look at the list of enabled and disabled features printed after running
'./configure'. If you think you have support for some feature installed
but configure fails to detect it, the file config.log may contain information
about the reasons for the failure.

Libraries specific to particular video output methods
(you'll want at least one of VDPAU, GL or Xv):
 - libvdpau (for VDPAU output, best choice for NVIDIA cards)
 - libGL (OpenGL output)
 - libXv (XVideo output)
general:
 - libasound   (ALSA audio output)
 - various general X development libraries
 - libfreetype (for libass)
 - libfontconfig (for libass)
 - libass
 - FFmpeg libraries (libavutil libavcodec libavformat libswscale libpostproc)

Most of the above libraries are available in suitable versions on normal
Linux distributions. However FFmpeg is an exception (distro versions may be
too old to work at all or work well). For that reason you may want to use
the separately available build wrapper that first compiles FFmpeg libraries
and libass, and then compiles the player statically linked against those.