Commit Graph

164 Commits

Author SHA1 Message Date
Stefan Huehner
9b2283cc33 Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård

Originally committed as revision 17567 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-09 14:08:03 +00:00
Alan Curry
5edb653bca AltiVec operations need to have memory aligned on 16-byte boundaries.
patch by Alan Curry, pacman at world dot std dot com

Originally committed as revision 17559 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-08 08:20:40 +00:00
Michael Niedermayer
2e728364d3 change sws sharpen filter a little
Originally committed as revision 17531 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-04 00:08:54 +00:00
Diego Biurrun
660204c65c Update licensing information: The FSF changed postal address.
Originally committed as revision 17368 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-01-13 00:23:32 +00:00
Diego Biurrun
b2d374c958 Unify include paths, -I.. is in CFLAGS.
Originally committed as revision 16986 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-11-14 00:30:37 +00:00
D Richard Felker III
73cbfb1c59 100l -- mismatched type after changing sizes to type long!
Originally committed as revision 16784 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-10-17 05:05:51 +00:00
Diego Biurrun
b40e353aa4 Reduce unnecessary swscaler verbosity.
Originally committed as revision 16405 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-09-06 15:15:27 +00:00
Nicolas Plourde
6634d0ef1d Should fix altivec detection for g3 system.
Originally committed as revision 15524 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-05-20 12:08:31 +00:00
Jindřich Makovička
12e1166234 check for negative strides before memcpy
Originally committed as revision 15250 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-04-24 07:50:18 +00:00
Jindřich Makovička
e63ac25d05 support for both orderings of the slices (top->down / bottom->up)
Originally committed as revision 15249 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-04-24 07:47:41 +00:00
Reimar Döffinger
0ce5275d78 100l, forgot to change an ifdef on last commit
Originally committed as revision 14784 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-02-23 14:07:18 +00:00
Reimar Döffinger
113ef149fd fix for MAP_ANON vs. MAP_ANONYMOUS fix...
Originally committed as revision 14762 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-02-22 14:40:44 +00:00
Ville Syrjälä
6118e52ea6 Improved NV12/NV21 support.
- Fixed PlanarToNV12Wrapper() and made it handle NV21.
- Added yuv2nv12XinC() to handle software scaling.
- Added NV12/NV21 handling to various places.
- Removed NV12 from vf_hue and vf_spp as they don't look like they can
  actually handle it.

Originally committed as revision 14716 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-02-16 23:47:00 +00:00
Bohdan Horst
171d7d788a FreeBSD fix
Originally committed as revision 14699 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-02-14 13:29:55 +00:00
Reimar Döffinger
790409c949 Compile fix on non-x86
Originally committed as revision 14631 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-02-01 09:00:12 +00:00
Aurelien Jacobs
38d5c282cd makes funnyCode pages executable (for CPU with NX bit)
Originally committed as revision 14626 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-01-31 15:57:27 +00:00
Aurelien Jacobs
6d606c4f5b fix few x86_64 registers handling
Originally committed as revision 14557 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-01-21 16:48:18 +00:00
Aurelien Jacobs
6e1c66bc06 adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64
Originally committed as revision 13721 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-10-21 11:55:20 +00:00
Luca Barbato
582552fb56 postproc/yuv2rgb_altivec.c compile fix
yuv2rgb_altivec_init_tables does initialize the SwsContext vectors.
missing vec_splat.
patch by (Luca Barbato <lu_zero at gentoo dot org>) and (Romain Dolbeau <dolbeau at irisa dot fr>)

Originally committed as revision 13565 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-10-05 19:11:00 +00:00
Michael Niedermayer
66d1cdb672 passing an array or double precission parameters for the scaling function, instead of missusing a few bits of the flags
fixing the naming of the scaling functions a little

Originally committed as revision 13374 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-09-18 00:08:17 +00:00
Alex Beregszaszi
f2015f0c50 fix altivec.h inclusion (vector keyword in structure)
Originally committed as revision 12839 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-07-17 08:56:47 +00:00
Romain Dolbeau
b71cf33c9b Altivec unscaled YV12 -> packed YUV patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 12769 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-07-06 13:52:56 +00:00
Michael Niedermayer
a31de95620 altivec yuv->rgb converter
orginal patch  by (Marc Hoffman <mmh at pleasantst dot com>)
critical fixes by (Reza Jelveh <reza.jelveh at tu-harburg dot de>)

known bugs/issues, which should be fixed ASAP by someone who has a ppc:
0..255 vs. 16..235
unneeded recalculation of tables
general cleaup, like removing double initalizing of variables

Originally committed as revision 12699 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-06-27 00:07:15 +00:00
D Richard Felker III
ae4cffd9fc this isn't actually stupid, but it's not valid C and gcc 3.5 rejects it as such
Originally committed as revision 12386 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-05-01 20:15:21 +00:00
Matthieu Castet
db7a2e0d17 attribute_used patch by (matthieu castet <castet.matthieu at free dot fr>)
Originally committed as revision 12302 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-04-26 19:38:17 +00:00
Romain Dolbeau
8c266f0cb7 AltiVec hScale, all size patch by (Romain Dolbeau <dolbeaur at club-internet dot fr>)
Originally committed as revision 12131 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-04-06 00:25:47 +00:00
Magnus Damm
35fe5cc53f altivec swscale under Linux patch by (Magnus Damm <damm at opensource dot se>)
Originally committed as revision 12024 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-03-14 18:04:59 +00:00
Romain Dolbeau
a2faa40192 AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 12018 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-03-11 17:58:11 +00:00
Michael Niedermayer
468887480c 1000l
Originally committed as revision 11407 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-11-06 23:22:17 +00:00
Michael Niedermayer
ec62c38fd5 -sws 0 && -ssf chs fixed
Originally committed as revision 11380 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-11-04 13:52:12 +00:00
Michael Niedermayer
c4f1e443e7 minimum slice size fix (fixes 422P 1 line per slice, used by huffyuv)
Originally committed as revision 11214 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-10-22 00:19:20 +00:00
Michael Niedermayer
ff49072013 dither scaling coefficients so they add up to 1.0
Originally committed as revision 11124 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-10-15 12:08:31 +00:00
Michael Niedermayer
379a20360c rounding fixes
Originally committed as revision 11123 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-10-15 11:21:54 +00:00
Alex Beregszaszi
caeaabe7d0 uyvy output support in swscaler
Originally committed as revision 11069 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-10-09 22:25:53 +00:00
Gabucino
77a416e8aa many small typo and grammar fixes
Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk>

Originally committed as revision 11001 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-10-04 17:29:08 +00:00
Michael Niedermayer
54324550b8 srcSliceY % 4 != 0 fix
Originally committed as revision 10953 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-09-26 23:37:28 +00:00
Michael Niedermayer
a4c90ea3ba fixing "internal error in orderYUV" bug
Originally committed as revision 10313 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-06-19 21:28:56 +00:00
Alex Beregszaszi
cd96358cb5 unused
Originally committed as revision 10236 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-06-01 22:10:44 +00:00
Alex Beregszaszi
b706b007a4 removed the last mp_msg :)
Originally committed as revision 10047 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-05-01 19:14:27 +00:00
Michael Niedermayer
700490a4d1 remove remaining cpudetect dependancy
Originally committed as revision 9988 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-04-25 17:16:55 +00:00
Michael Niedermayer
e21206a820 moving getFilter stuff back (vf_scale.c -> swscale.c)
Originally committed as revision 9986 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-04-25 11:26:34 +00:00
Michael Niedermayer
516b1f82ac removing sws - global verbose var dependancy
removing sws - cpudetect dependancy (note rgb2rgb still needs it)
moving mplayer specific stuff from swscale.c -> vf_scale.c

Originally committed as revision 9976 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-04-24 17:04:20 +00:00
Michael Niedermayer
c9b99ea661 mplayer idependant (not really yet) swscale example
Originally committed as revision 9922 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-04-17 19:32:46 +00:00
Michael Niedermayer
5bf0135422 10l
Originally committed as revision 9699 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-03-27 16:16:58 +00:00
Michael Niedermayer
fccb9b2b80 10000l (YUV vs. YVU swscale fix/cleanup)
Originally committed as revision 9698 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-03-27 16:04:53 +00:00
Michael Niedermayer
3e499f531a cleanup
Originally committed as revision 9500 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-02-24 00:12:30 +00:00
Michael Niedermayer
d4e242755f sws_ prefix, more seperation between internal & external swscaler API
sws_scale() returns the number of outputed lines

Originally committed as revision 9495 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-02-23 22:05:55 +00:00
Michael Niedermayer
5427e24291 yuv2rgb brightness/contrast/saturation/different colorspaces support finished
yuv2rgb deglobalize
yuv2rgb optimizations / cleanup
bugs?

Originally committed as revision 9477 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-02-21 20:35:18 +00:00
Michael Niedermayer
20380eb831 cleanup
Originally committed as revision 9456 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-02-18 19:36:20 +00:00
Michael Niedermayer
0481412aba brightness / saturation / contrast / different yuv colorspace support for some yuv2rgb converters (many converters still ignore it)
Originally committed as revision 9417 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2003-02-13 19:27:17 +00:00