Commit Graph

38 Commits

Author SHA1 Message Date
wm4 477af1c777 osd: remove FAST_OSD code
This code has never been active by default, ever since it was added
back in 2001. You had to edit config.h or configure manually to enable
it.
2012-08-07 02:21:19 +02:00
wm4 c92538dfaa Remove dead code
This was done with the help of callcatcher [1]. Only functions which
are statically known to be unused are removed.

Some unused functions are not removed yet, because they might be needed
in the near future (such as open_output_stream for the encode branch).

There is one user visible change: the --subcc option did nothing, and is
removed with this commit.

[1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
2012-08-01 17:07:35 +02:00
wm4 43da1e78c4 Rip out 3DNOW support
Ancient AMD specific enhancement to the MMX instruction set. Officually
discontinued by AMD.

Note that support for this was already disabled in the previous commit.
This commit removes the actual code.
2012-07-30 01:38:14 +02:00
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
diego e5751ced4f Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-26 19:53:00 +00:00
diego 6e9cbdc104 whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
diego befc528297 Add standard license headers, unify header formatting.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-08 03:27:30 +00:00
diego eb4a4604c0 HAVE_3DNOW --> HAVE_AMD3DNOW
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28370 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-26 09:29:53 +00:00
reimar 93d598c7b2 Lots and lots of #ifdef ARCH_... -> #if ARCH_...
and #ifdef HAVE_MMX etc -> #if HAVE_MMX.
There might be still more that need to be fixed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28325 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 09:21:21 +00:00
diego 6b52a2e974 Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.
Neither variant is valid C99 syntax, but __asm__ is the most portable variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 18:59:27 +00:00
uau 1a3fb6c21e libvo: change asm syntax to use ASMALIGN and " # nop"
Change ".balign 16\n\t" to ASMALIGN(4) and "/nop" to " # nop". The new
version is what other code in MPlayer uses, and works with old
assembler versions like that used on OS X.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26005 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-15 21:52:34 +00:00
reimar 2b9d7e2bdb Avoid a MANGLE, there is no register pressure and the generated code
should be no worse.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25935 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-30 18:52:59 +00:00
reimar 4373e71a95 Avoid compiling code using %ah etc. on AMD64, since that will not work
(problems only occur with -O0 or -Os, see also
http://bugs.gentoo.org/show_bug.cgi?id=156375)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21385 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-29 13:49:48 +00:00
reimar 74a504f25b ARCH_X86 simplifications
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20593 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 18:41:25 +00:00
gpoirier 68a1de942c moves invariant code (chiefly MMX register initialization) out of loops as well as eliminating some memory accesses within the inner loop.
Patch by Zuxy Meng < zuxy POIS meng AH gmail POIS com >
Original thread:
Date: Mon, 12 Jun 2006 00:31:53 -0700 (PDT)
Subject [MPlayer-dev-eng] [PATCH] Loop invariant motion in libvo/osd_template.c


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18686 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-12 11:14:10 +00:00
reimar 2f5698c9cb Fix MMX accelerated RGB24 OSD, fixes "ugly OSD with -vo gl2".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16484 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-13 21:41:44 +00:00
aurel 798d2d1337 adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13721 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-21 11:55:20 +00:00
nplourde d2ad2147cc draw alpha for uyvy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12517 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-31 15:13:35 +00:00
alex c68f67e2e0 removed obsolete my_profile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10517 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-03 18:33:28 +00:00
michael 9c160c32b5 big endian yellow fix?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9961 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-21 17:24:29 +00:00
michael 7d74522cdd workaround lack of -fomit-frame-pointer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5140 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-16 17:12:19 +00:00
atmos4 6afa7d6988 mangling in libvo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4246 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-01-19 04:44:49 +00:00
michael a1bb772c18 yuy2 in C color bugfix patch from Artur Zaprzala <artur.zaprzala@talex.com.pl>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3432 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-10 13:14:28 +00:00
michael 2e4b5d0908 runtime cpu detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3143 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-26 21:12:15 +00:00
atmos4 c184876b1a Compile fix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2851 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-12 02:01:24 +00:00
michael 6778e88bf5 p2/p3 bgr32 version (20%faster)
yv12 and yuy2 versions in mmx


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2847 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 22:14:13 +00:00
nick 615471a069 Use new logic suggested by Michael Niedermayer
K7:
Non-MMX stuff
    total=299997790
Old-MMX stuff:
    total=159120928
New-MMX stuff:
    total=80925337


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2844 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 17:14:57 +00:00
nick c5e3ac66ac Cloning 32 stuff to 24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2840 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 16:09:19 +00:00
nick 1ffb6bfa2b Minor speedup for K6-2, K7, P3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2836 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 15:35:11 +00:00
nick 7035adb0bd Enable MMX stuff
I don't know why Michael Niedermayer disabled it but:
my benchmarks of 25 frames for TIMER+SUBTITLE (measured by RDTSC):
Non-MMX stuff:
    total=306142159
MMX stuff:
    total=159534150


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2834 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 14:42:10 +00:00
nick f4730e10c1 Extract parallelism from OSD stuff + MMX2 optimization.
I've found that mplayer's measuring is not precise :(
Here my test with using RDTSC:
Old stuff:
	rd_tsc: 774377
	rd_tsc: 765985
	rd_tsc: 265309
New CPU optimized stuff:
	rd_tsc: 661154
	rd_tsc: 641317
	rd_tsc: 222448
New MMX2 optimized stuff:
	rd_tsc: 269544
	rd_tsc: 329189
	rd_tsc: 173110


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2824 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 11:18:50 +00:00
michael 20d9b4ff45 bugfix
nick why did u remove the #if 0 around that code without testing it?


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2808 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 01:14:09 +00:00
michael 751324d0d3 .balign or we´ll align by 64kb on some architectures
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2801 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-10 20:39:23 +00:00
nick 672e0016c9 Code cleanup - emms is not required when MMX block is commented out.
Special notes for Michael Niedermayer:
Are you still here?
If you don't like for(cond;cond;cond) C-constructions and prefer
asm ones: "jb 1b" then use .align 16 pseudo assembler instructions
else loops rather will be not aligned on correct boundary.
(16 it's for K7 for pent should be 8).
Your parts have a lot such lacks.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2799 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-10 18:40:49 +00:00
michael 028ee068e4 slow mmx & not so slow asm versions (outcommented)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2579 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-30 22:35:02 +00:00
arpi_esp ba8f720ce0 FAST_OSD option to disable font outline antialiasing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@948 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-06-02 16:02:38 +00:00
arpi_esp 07bdafcbe7 to be sure in that header is okey
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@623 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-24 20:03:13 +00:00
arpi_esp 2f46205ad3 OSD alpha renderers moved to osd.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@327 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-10 02:29:38 +00:00