1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 19:35:49 +00:00
Commit Graph

217 Commits

Author SHA1 Message Date
diego
37ea342f85 #include config.h before all other headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26235 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-14 16:46:13 +00:00
diego
dd7c4bc268 Refactor AltiVec macros as done for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26028 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-18 23:33:14 +00:00
reimar
af86efaee0 Always use inline instead of _inline, the former is supported by all
compilers we care about, while e.g. ICC does not support the later.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25876 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 11:28:13 +00:00
uau
b5aa5692cd Remove unnecessary <signal.h> includes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:49 +00:00
diego
df7795b63a cosmetics: Remove ugly and inconsistent uppercasing from filenames.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25378 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:50:54 +00:00
diego
946f71f3aa cosmetics: Move public function declarations together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25377 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:45:05 +00:00
diego
c927397b78 Add missing declaration for dct64_altivec, fixes the warning:
In file included from layer3.c:1171,
                 from sr1.c:391:
decod386.c: In function 'synth_1to1':
decod386.c:145: warning: implicit declaration of function 'dct64_altivec'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25376 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:29:55 +00:00
diego
d1198fab82 Add missing #include <stdio.h>, fixes the warning:
dct64_altivec.c: In function 'dct64_altivec':
dct64_altivec.c:74: warning: implicit declaration of function 'printf'
dct64_altivec.c:74: warning: incompatible implicit declaration of built-in function 'printf'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25369 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 23:25:36 +00:00
diego
24af96f8cc There is a check for altivec.h in configure so use the preprocessor directive
set by configure instead of an OS-specific directive when #including altivec.h.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25356 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:16:00 +00:00
diego
17981e0ab6 Replace SYS_DARWIN conditional directive around gcc macros by __APPLE_CC__.
The macro definition depends on compiler capabilities, not OS features.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25355 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:07:18 +00:00
diego
0febd8cf0f Identifiers starting with __ are reserved for the system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25353 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 19:54:35 +00:00
diego
2912d9ee57 Remove pointless HAVE_ALTIVEC around the whole file, it is only compiled when
HAVE_ALTIVEC is set anyway.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25352 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 19:52:17 +00:00
diego
825bfaf480 Fix warning:
In file included from layer3.c:1171,
                 from sr1.c:391:
decod386.c:106: warning: redundant redeclaration of 'synth_1to1_MMX'
mpg123.h:120: warning: previous declaration of 'synth_1to1_MMX' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24193 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:05:02 +00:00
diego
97369c5e09 Get rid of duplicate processor feature variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23684 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 23:11:21 +00:00
reimar
1064982ff8 Follow ffmpeg TARGET_ARCH_* -> ARCH_* change.
Feel free to revert if you do not like it, but I want to get MPlayer to compile again.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-16 15:24:39 +00:00
zuxy
dd053ddd67 Enable SIMD optmizations for mp3lib on AMD64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23515 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-08 14:38:25 +00:00
zuxy
1c757aef17 Change some static temporary vars to automatic ones because mingw32 binutils
couldn't align them properly. Also 1% faster decode.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23485 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-06 05:16:08 +00:00
zuxy
739f79a5ff Align output pointer so that we can use movaps instead of movups in dct64_sse;
1.5% faster decode.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23484 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-06 05:13:13 +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
zuxy
48f565b5f5 Change '%ld' to '%d' to remove warnings introduced by r23452
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-04 09:20:00 +00:00
zuxy
08301d0056 Correct dct64 functions' declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23459 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-04 03:05:16 +00:00
zuxy
79225d26ad Remove non-existing make_decode_tables_MMX()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23453 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-02 16:47:10 +00:00
zuxy
a9df2bb148 Use int and uint32_t instead of long and unsigned long, when appropriate.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23452 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-02 16:25:18 +00:00
zuxy
b4cf5f855c Record what was produced by make_decode_table_MMX() and used that data to
initialize mp3lib_decwins directly, then remove call to
make_decode_table_MMX() and tabinit_MMX.c itself.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23383 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-25 02:52:35 +00:00
zuxy
7792bf8c1f Remove hardcoded registers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23378 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-23 15:31:37 +00:00
zuxy
c31cbc62df Replace hardcoded 32-bit leal with equivalent add/sub so pointer arithmetic will be 64-bit under AMD64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23376 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-22 14:00:39 +00:00
zuxy
6e13c348c3 Remove unused synth_1to1_mono()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23374 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-22 13:44:14 +00:00
zuxy
a147ec530e Rewrite generic code in decode_MMX.c in C for easier AMD64 port. Slightly faster than original assembly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23360 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-21 01:47:27 +00:00
zuxy
38388e5595 Fix bug in reference code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23341 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-19 08:09:16 +00:00
diego
83470e26c3 Move test program removal on distclean to mpcommon.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22802 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-24 15:03:57 +00:00
diego
b5abaa0a52 Nuke MIPS-specific compiler bug workaround, it's unlikely to help anyway.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22703 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-17 18:25:15 +00:00
diego
b24be2fd83 Simplify setting special CFLAGS for decode_i586.o.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22615 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-15 16:49:59 +00:00
diego
39658f2872 Simplify conditional expression.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22613 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-15 13:20:22 +00:00
diego
e4cc2b1c2f Remove Darwin AltiVec CFLAGS settings, configure handles this.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22612 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-15 13:19:22 +00:00
diego
e361f0a500 Remove addition of AltiVec flags to CFLAGS, configure takes care of this.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22607 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-15 12:17:22 +00:00
diego
43275ac3b0 Fix test program compilation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22555 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-13 22:28:13 +00:00
diego
4220b41edb Rename mp3lib/libMP3.a to mp3lib/libmp3.a for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22554 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-13 22:19:18 +00:00
diego
5519d98983 cosmetics: Fix indentation, reorder some lines for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22549 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-13 21:55:23 +00:00
diego
60b39e2786 Give more descriptive names to the source and library variables and split
between common, MPlayer-specific and MEncoder-specific parts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22546 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-13 12:10:57 +00:00
reimar
2ad2fefc2b Add missing registers to asm code in mp3lib
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22393 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-01 12:45:00 +00:00
reimar
2225b00ca6 Make sure buffer is aligned so no unaligned access happens.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22158 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-05 19:24:03 +00:00
reimar
18004d2d98 Hack around libavutil/bswap.h compilation problems due to always_inline undefined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21523 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-07 11:58:07 +00:00
diego
cac6c0eea2 Remove bswap.h, use libavutil/bswap.h instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21388 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-29 15:02:45 +00:00
diego
2a86b5b99e FFmpeg-style dependency declaration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21325 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 13:42:36 +00:00
diego
5f3740e4ed Remove redundant ifeq ($(TARGET_ARCH_POWERPC),yes), AltiVec exists only on PPC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21324 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 13:38:13 +00:00
diego
65c3094348 Simplify test program generation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21312 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 11:11:14 +00:00
diego
40c03f4f3a Remove superfluous CFLAGS declaration (is in mpcommon.mak).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21311 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 10:58:03 +00:00
diego
875b66cefe There are no .s files in mp3lib/, remove the corresponding suffix rule.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21310 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 10:53:40 +00:00
diego
d4e86e6a11 Remove unnecessary header indirection.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21305 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 02:20:15 +00:00
diego
dc2be42703 Merge common parts of all Makefiles into one file included by all.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21275 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-26 18:12:36 +00:00