mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
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. |
||
---|---|---|
.. | ||
aspect.c | ||
aspect.h | ||
cocoa_common.h | ||
cocoa_common.m | ||
csputils.c | ||
csputils.h | ||
d3d_shader_yuv_2ch.h | ||
d3d_shader_yuv.h | ||
d3d_shader_yuv.hlsl | ||
eosd_packer.c | ||
eosd_packer.h | ||
fastmemcpy.h | ||
filter_kernels.c | ||
filter_kernels.h | ||
geometry.c | ||
geometry.h | ||
gl_common.c | ||
gl_common.h | ||
gl_header_fixes.h | ||
old_vo_defines.h | ||
old_vo_wrapper.c | ||
old_vo_wrapper.h | ||
osd_template.c | ||
osd.c | ||
osd.h | ||
osx_common.c | ||
osx_common.h | ||
video_out_internal.h | ||
video_out.c | ||
video_out.h | ||
videodev_mjpeg.h | ||
vo_caca.c | ||
vo_corevideo.h | ||
vo_corevideo.m | ||
vo_direct3d.c | ||
vo_directfb2.c | ||
vo_directx.c | ||
vo_gif89a.c | ||
vo_gl3_shaders.glsl | ||
vo_gl3.c | ||
vo_gl.c | ||
vo_jpeg.c | ||
vo_md5sum.c | ||
vo_null.c | ||
vo_png.c | ||
vo_pnm.c | ||
vo_sharedbuffer.h | ||
vo_sharedbuffer.m | ||
vo_tga.c | ||
vo_v4l2.c | ||
vo_v4l2.h | ||
vo_vdpau.c | ||
vo_x11.c | ||
vo_xv.c | ||
vo_yuv4mpeg.c | ||
w32_common.c | ||
w32_common.h | ||
x11_common.c | ||
x11_common.h |