Commit Graph

44 Commits

Author SHA1 Message Date
wm4 3c9c1790fe vo_gl3: support RGBA EOSD
This also adds support for multiple EOSD renderers. This capability is
unused yet, but important for the following commits.
2012-10-16 07:26:30 +02:00
wm4 0e2c48a3ce VO: remove vo_directfb2 and vo_directx
While being able to play videos on a framebuffer device would be nice,
I didn't need it, and couldn't even test it (buggy nvidia binary
drivers that disable framebuffers, buggy DirectFB that crashes when
using the X11 backend). It's just dead weight, get rid of it.

vo_directx was very horrible, and by today it's mostly useless. I didn't
remove it, because there was that-guy who told me in amazement how
awesome mplayer was, because it was the only video player fast enough
for fast playback on his system when using vo_directx. Sorry, that-guy.
2012-08-16 17:17:50 +02:00
wm4 a4bab723b3 fastmemcpy.h: remove code duplication
Remove the mem2agpcpy_pic function, which is obviously duplicated from
the other function in this file.

Untested, as this is only used by the directx and directfb2 VOs.
2012-07-30 01:36:35 +02:00
wm4 273a6623e7 libvo: remove custom assembler memcpy implementations (aka fastmemcpy)
aclib[_template].c contained inline assembler versions of memcpy using
MMX/SSE/3dnow etc. instructions. It's possible that this gave quite a
speed a decade ago, but it's unlikely to have any use on modern
systems. Also, libc implementations already have their own
optimizations for the native memcpy function.

I did not verify my assumptions eith benchmarks, so I could be wrong.

Also note that some platforms have extremely crappy libc
implementations, and it's well possible that these might suffer from a
major performance loss (hello Windows). Unfortunately, I do not care.
2012-07-30 01:33:40 +02:00
astrange 9ac35085f5 Fix compilation with --disable-fastmemcpy on x86
The inverse of a && b isn't !a && !b.
Regression in r30728.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31154 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-11 09:23:31 +00:00
diego 2074d1a3e7 Unconditionally declare fast_memcpy() and mem2agpcpy().
This fixes the following warnings on non-x86 systems:
libvo/aclib.c:162: warning: no previous prototype for 'fast_memcpy'
libvo/aclib.c:196: warning: no previous prototype for 'mem2agpcpy'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30728 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 13:20:56 +00:00
diego 1753d37fc7 Merge two preprocessor conditions in order to drop one duplicated #else case.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28902 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 11:02:54 +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 4abf191c5d More #ifdef -> #if fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28326 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 09:29:20 +00:00
diego 0864f92e7a Get rid of pointless 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 23:01:03 +00:00
diego 4b141479da Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 12:01:30 +00:00
diego b158675b6d Add missing string.h #include for memcpy prototype;
fixes warnings with 'make checkheaders'.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27076 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 08:45:01 +00:00
diego 8efb2fa21c Add MPLAYER_ prefix to multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 09:09:46 +00:00
diego fba0b66ff9 Add explanatory comments to the #endif part of multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 16:15:50 +00:00
diego 3e9e4acd8d Do not use leading underscores in multiple inclusion guards, they are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23709 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 22:34:45 +00:00
diego e2928ff729 Consistently use filenames as multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23706 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 21:23:42 +00:00
reimar ad164e04ee Get rid of my_memcpy_pic code duplication in many filters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23686 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-28 11:24:12 +00:00
reimar 6a09e8e2ed Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23475 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-05 14:27:54 +00:00
diego 83ebbc9fcd Add LGPL license header.
OKed by Arpi and Michael, the authors of all non-trivial parts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23403 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-28 17:13:52 +00:00
diego 14523bd8ec fastmemcpy.h always has to include inttypes.h on systems that need it.
patch by Carl Eugen Hoyos, cehoyos ag.or at


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22021 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-26 18:43:17 +00:00
gpoirier 80c237677f get rid of void pointer arithmetic, as spotted by ICC
Original thread:
date: Jan 25, 2007 5:01 PM
subject: Re: [MPlayer-dev-eng] [PATCH] get rid of *void pointer arithemtic in libvo/fastmemcpy.h


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22018 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-26 09:07:55 +00:00
rathann 52dfba2d4d fix
vf_remove_logo.c:738: warning: passing argument 2 of 'memcpy_pic' discards qualifiers from pointer target type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17096 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:30:01 +00:00
henry 47f90af3ba support for negative strides (fixes -vf spp,flip crash)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15070 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-08 10:31:18 +00:00
diego 5b0d96c6b4 Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-28 01:15:53 +00:00
diego fcd3e26d1e 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12664 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-25 18:20:45 +00:00
diego 1bd9852166 Unify the config.h #include, use "config.h" instead of "../config.h"
everywhere, will make extracting libvo/ easier.  Approved by Alex.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12651 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-25 16:58:45 +00:00
arpi 133757919e memcpy_pic() added (copy image plane with src/dst stride)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5505 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-06 21:46:07 +00:00
michael 23d578910a mem2agpcpy_pic()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4709 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-02-14 22:34:24 +00:00
michael 7a4350e4c1 mem2agpcpy()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4682 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-02-12 23:17:14 +00:00
al3x 0fa160eedf cosmetic changes and sse/sse included
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1132 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-06-15 12:42:00 +00:00
pontscho 91df402134 USE_FASTMEMCPY bug fixed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@801 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-05-14 18:18:14 +00:00
nickols_k ada40a6be6 Moving fast_memcpy to separate file (Size optimization)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@699 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-05-05 13:30:00 +00:00
arpi_esp cd6ae34f71 SSE+2.2.x+SIGILL bug fixed - SSE code disabled...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@686 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-05-02 00:29:16 +00:00
atmosfear fc6fab0429 Changed code, should be faster on Athlon/K6 but slower on PIII with SSE, more portable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@645 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-26 20:35:58 +00:00
atmosfear ff791d698e New optimized SSE code, overall optimizations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@582 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-22 19:25:47 +00:00
arpi_esp b128050fac 16-byte align fix for SSE
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@568 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-21 21:49:28 +00:00
pontscho e4c014f334 replace "movsl..." to small_memcpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@514 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-18 20:44:16 +00:00
pontscho 3ea3b615a3 sorry, for the #endif
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@479 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-16 21:08:05 +00:00
pontscho ebe63858a9 add 3dnow support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@478 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-16 20:55:27 +00:00
atmosfear 0fc60fe28c - applied SSE patch by Nick Kurshev
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@410 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-14 17:56:44 +00:00
arpi_esp 34a4680099 P3 fixes...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@377 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-12 14:40:10 +00:00
arpi_esp 627806710a __memcpy fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@371 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-12 00:09:57 +00:00
arpi_esp 3cfac87cb4 small typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@369 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-12 00:05:18 +00:00
arpi_esp feb552b3de fast memcpy() using x86 asm or mmxext
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@359 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-11 20:14:49 +00:00