1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00
mpv/libvo
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
..
aspect.c VO: silence "[ASPECT] Warning: No suitable new res found!" 2011-07-05 00:38:34 +03:00
aspect.h
cocoa_common.h cocoa: gl3: support querying of colors bit depth 2012-05-15 10:37:58 +02:00
cocoa_common.m libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
csputils.c vo_gl: improve 10-bit YUV->RGB conversion accuracy slightly 2012-03-09 20:48:55 +02:00
csputils.h vo_gl: improve 10-bit YUV->RGB conversion accuracy slightly 2012-03-09 20:48:55 +02:00
d3d_shader_yuv_2ch.h vo_direct3d: add hack for using 2 channel textures for 10 bit pixel formats 2012-03-17 21:06:28 +01:00
d3d_shader_yuv.h vo_direct3d: implement YUV conversion using shaders 2012-03-17 21:05:34 +01:00
d3d_shader_yuv.hlsl vo_direct3d: add hack for using 2 channel textures for 10 bit pixel formats 2012-03-17 21:06:28 +01:00
eosd_packer.c libvo, vo_vdpau: make the EOSD packer code from vo_vdpau generic 2011-12-25 20:42:18 +01:00
eosd_packer.h libvo, vo_vdpau: make the EOSD packer code from vo_vdpau generic 2011-12-25 20:42:18 +01:00
fastmemcpy.h fastmemcpy.h: remove code duplication 2012-07-30 01:36:35 +02:00
filter_kernels.c libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
filter_kernels.h libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
geometry.c
geometry.h
gl_common.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
gl_common.h libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
gl_header_fixes.h gl_common: move header hacks into gl_header_fixes.h 2012-03-31 02:58:53 +02:00
old_vo_defines.h
old_vo_wrapper.c libvo: remove title argument from struct vo_driver.config 2011-12-06 20:32:33 +01:00
old_vo_wrapper.h libvo: remove title argument from struct vo_driver.config 2011-12-06 20:32:33 +01:00
osd_template.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
osd.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
osd.h
osx_common.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
osx_common.h
video_out_internal.h cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
video_out.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
video_out.h libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
videodev_mjpeg.h
vo_caca.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
vo_corevideo.h vo_corevideo: restructure this video output 2012-04-26 21:03:10 +03:00
vo_corevideo.m vo_corevideo, vo_sharedbuffer: put private state in vo->priv 2012-07-27 16:52:22 +03:00
vo_direct3d.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
vo_directfb2.c mpcodecs: remove mp_image_t.x/y 2012-02-24 15:25:22 +01:00
vo_directx.c vo_directx: clear panscan borders in windowed mode 2012-04-24 01:28:09 +02:00
vo_gif89a.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vo_gl3_shaders.glsl libvo: add vo_gl3 2012-03-31 02:58:52 +02:00
vo_gl3.c bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr 2012-07-28 23:47:42 +02:00
vo_gl.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
vo_jpeg.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
vo_md5sum.c cleanup: vo_md5sum: Remove unused define/undef 2011-01-31 16:03:10 +02:00
vo_null.c
vo_png.c screenshot, vo_png: fix dependency on sizeof(AVFrame) 2012-04-29 10:01:55 +02:00
vo_pnm.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
vo_sharedbuffer.h vo_sharedbuffer: add this video output 2012-04-26 21:03:10 +03:00
vo_sharedbuffer.m vo_corevideo, vo_sharedbuffer: put private state in vo->priv 2012-07-27 16:52:22 +03:00
vo_tga.c
vo_v4l2.c
vo_v4l2.h
vo_vdpau.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
vo_x11.c Remove compile time/runtime CPU detection, and drop some platforms 2012-07-30 01:37:28 +02:00
vo_xv.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
vo_yuv4mpeg.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
w32_common.c win32: don't crash if vo_w32_uninit() is called without vo_w32_init() 2012-04-24 01:25:10 +02:00
w32_common.h win32: move global variables into a struct & some refactoring 2012-04-14 17:03:11 +02:00
x11_common.c libvo, libao: remove useless video and audio output drivers 2012-07-28 20:44:59 +02:00
x11_common.h vo_vdpau: disable refresh-aware frame timing when composited 2012-07-27 03:40:38 +03:00