1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00
Commit Graph

376 Commits

Author SHA1 Message Date
diego
9e48ce48d4 Declare struct SwsContext before using it, fixes the checkheaders warning:
libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list
libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28353 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 12:03:28 +00:00
diego
1a1bdca3e4 Disable C code when compiling AltiVec code, fixes the warning:
swscale_template.c:2623: warning: `swScale_C' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28352 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:59:22 +00:00
diego
51acb7b7ab spelling/grammar cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28351 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:57:17 +00:00
diego
2eefcf233a Fix #endif comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28350 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:33:35 +00:00
cehoyos
3ba07a9843 Add PIX_FMT_VDPAU_WMV3 and PIX_FMT_VDPAU_VC1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28344 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-20 09:31:07 +00:00
cehoyos
285e30f1e4 Add VDPAU hardware accelerated decoding for MPEG1 and MPEG2 which will
be used by MPlayer.

Original patch by NVIDIA corporation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28322 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 02:14:25 +00:00
aurel
be34ba7a39 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28311 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-14 00:13:56 +00:00
cehoyos
1015c5adf3 Add PIX_FMT_VDPAU_H264.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28281 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-08 19:54:43 +00:00
diego
8787793a78 Avoid POSIX-reserved _t namespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28195 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 11:45:46 +00:00
diego
333e050fdf consistency cosmetics: Rename POWERPC identifiers to PPC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28194 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 11:33:54 +00:00
diego
41b75ecf57 Remove pointless malloc.h #include.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28164 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-19 09:59:59 +00:00
reimar
1c3d84f190 Some forgotten eax -> REG_a changes.
It seems that binutils >= 2.18 just treat eax as rax but older versions fail.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28136 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-12 16:46:43 +00:00
diego
0a5006b175 Delete unnecessary 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28082 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 15:25:27 +00:00
diego
d7291e499e Remove commented-out duplicate declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28058 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:26:14 +00:00
diego
563ae9f8eb Remove unused declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28057 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:21:37 +00:00
diego
80b1673d17 cosmetics: Consistently place HEADERS before OBJS in all Makefiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27970 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-20 22:54:30 +00:00
diego
f76cb1f891 Put variable declaration inside an #ifdef to avoid an unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27945 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-17 10:33:59 +00:00
diego
79782db877 Add some const specifiers to function name variables; fixes a bunch of
"initialization discards qualifiers from pointer target type" warnings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27894 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-04 20:38:55 +00:00
diego
07fa797413 Merge ARCH_BFIN lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27889 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 22:06:45 +00:00
diego
1b623e6087 Add tests target for libswscale test programs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27888 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 22:01:03 +00:00
mru
427bab48a4 Remove forgotten ASM_OBJS in libswscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27887 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 21:49:54 +00:00
vitor
9a33429014 Silence GCC warnings:
ibswscale/swscale.c: In function ‘sws_scale’:
libswscale/swscale.c:2678: warning: ‘b’ may be used uninitialized in 
this function
libswscale/swscale.c:2678: warning: ‘g’ may be used uninitialized in 
this function
libswscale/swscale.c:2678: warning: ‘r’ may be used uninitialized in 
this function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27837 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-27 19:59:01 +00:00
michael
75a7476b85 rgb2rgb.h was not really intended to be a public header, thus remove it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27836 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-27 09:05:27 +00:00
michael
86843f41c2 Remove rgb2rgb.h dependancy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27835 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-27 09:03:47 +00:00
vitor
e2b8d3f60d Silence the following GCC warning:
libswscale/swscale.c: In function ‘pal2rgbWrapper’:
libswscale/swscale.c:1744: warning: passing argument 4 of ‘conv’ from 
incompatible pointer type



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27834 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-26 15:41:11 +00:00
cehoyos
d6ed4677ca Remove unused code that can't be compiled without svn archive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27827 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-25 20:41:51 +00:00
michael
e3fc47b713 Do not attempt to use the unscaled yuv2rgb converter when height is odd because
it will overflow the buffer by 1 line. This might have been exploitable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27826 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-25 15:00:28 +00:00
vitor
d979a142fd Cosmetics: alignment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27818 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 19:20:14 +00:00
vitor
f42e50f367 Fix broken palette8to*.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27817 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 19:13:11 +00:00
diego
e9b43bec09 cosmetics: typo fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27816 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 16:23:42 +00:00
conrad
b5e728431a Convert typeof keyword into __typeof__
typeof is a gcc extension and the former is not accepted in C99 without
GNU extensions enabled (e.g. via -fasm).
This fixes compilation on PPC.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27805 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-19 18:56:35 +00:00
flameeyes
3679961515 Convert asm keyword into __asm__.
Neither the asm() nor the __asm__() keyword is part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without
requiring further command-line options).

Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 syntax.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27778 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 13:34:30 +00:00
flameeyes
3035850d27 Mark some symbols in swscale.c as constant.
These are only used in swscale_template.c (and thus don't need to be
made extern), and can be declared as ASM constants.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27737 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 11:13:14 +00:00
flameeyes
98fb4aebc2 Mark dither_2x2_{8,4} static to swscale.c
These two tables are not used outside swscale.c even though they are
declared also in yuv2rgb.c.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27736 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 11:12:38 +00:00
flameeyes
46caebfa6e Mark variation-specific interleaveBytes static.
These functions are never called by themselves, the alias
interleaveBytes is used instead.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27735 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 11:11:35 +00:00
flameeyes
3ab65de119 Invert logic for the single-pass in swScale() functions.
Instead of having a firstTime variable defaulting to 1, have a
warnedAlready defaulting to 0. While this should make no difference in
code speed at runtime, it allows to aggregate the four bytes of that
variable with clip_table in .bss section, rather than issuing a .data
section just for that.

As it is, libswscale require no .data section but .data.rel.ro (that
can be mitigated by prelinking), so the change might actually save one
page of memory at runtime (per process).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27734 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 11:10:30 +00:00
cehoyos
a0d55235a7 Change variable types from int to enum PixelFormat.
Fixes icc warning #188: enumerated type mixed with another type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27733 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 08:36:04 +00:00
vitor
74bb6be453 Do not set src[1] to the palette, it is now in the context
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27731 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 17:48:23 +00:00
vitor
c51fe849d6 Add a new unscaled PAL8 -> RGB converter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27730 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 17:46:22 +00:00
aurel
9bbe7f1131 Change one more variable type from int to enum PixelFormat.
This one was missing from r27727.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27728 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 11:59:01 +00:00
cehoyos
878e88cd5c Change variable types from int to enum PixelFormat.
Fixes icc warning #188: enumerated type mixed with another type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27727 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-07 19:44:39 +00:00
lu_zero
8ecc4934ef gcc-apple specific fallback not necessary anymore
(btw no apple hardware is less than a Intel core, thus it
won't come there w/out disabling all the optimizations)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27722 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-05 21:00:16 +00:00
diego
93de0584c5 Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27720 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-05 16:47:55 +00:00
cehoyos
99877b2fc6 Remove b5Dither, g5Dither and r5Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27718 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 18:50:39 +00:00
cehoyos
15d516ffdf Remove g6Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 16:40:35 +00:00
diego
4d040d35d0 Remove MPlayer-specific MP_WORDSIZE hack.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27698 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 09:52:07 +00:00
diego
f7bb9b8955 Remove unused function fast_memcpy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27673 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 06:06:19 +00:00
diego
e440b6bbdc cosmetics: indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27672 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 05:41:54 +00:00
michael
deea294c89 Revert mistakenly committed hunk.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27671 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 01:15:54 +00:00
michael
0c42ebdc5c Print all cases that are tested, not just the ones that are bad.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27670 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 01:14:27 +00:00