1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
Commit Graph

430 Commits

Author SHA1 Message Date
Alan Curry
1d773cfde0 Fix rgb32tobgr16, rgb32to15, and rgb32tobgr15. All had the same problem that
was fixed in rgb32to16 about a year ago: using only the first 8 bits of the
32-bit pixel.

Originally committed as revision 17671 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-24 09:52:59 +00:00
Alan Curry
cd92221a8d Just a comment update, replacing a FIXME to reflect the new expectation of
how altivec_yuv2packedX is supposed to be used

Originally committed as revision 17643 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-18 01:08:17 +00:00
Alan Curry
b9a6fae930 don't call altivec_yuv2packedX() with a dstFormat that it doesn't support;
instead fall back on yuv2packedXinC

Originally committed as revision 17642 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-18 00:41:28 +00:00
Alan Curry
cbddd5dfc6 Fix vec_clip for gcc's that don't handle (vector signed short){16} according
to spec; also convert a few vec_splat's to vec_splat_{s,u}*

Originally committed as revision 17639 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-17 05:01:46 +00:00
Alan Curry
247d2c9699 ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)
Originally committed as revision 17633 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-16 12:55:23 +00:00
Alan Curry
999bbe8367 make swscale-example compile patch by (Alan Curry <pacman TheWorld com>)
Originally committed as revision 17632 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-16 12:52:09 +00:00
Diego Biurrun
f41b1d3541 Remove obsolete big-endian FIXMEs.
Originally committed as revision 17623 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-13 12:44:17 +00:00
Alan Curry
d33d485e83 Move the v{Y,C}CoeffsBank vectors into the SwsContext, filling them in just
once when the scaler is initialized, instead of building them and freeing
them over and over. This gives massive performance improvements.
patch by Alan Curry, pacman*at*TheWorld*dot*com

Originally committed as revision 17589 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-11 14:16:10 +00:00
Diego Biurrun
c9fa86df9d cosmetics: indentation fixes
Originally committed as revision 17588 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-11 13:42:54 +00:00
Alan Curry
f688668c3c Fix big-endian color permutation problems.
patch by Alan Curry, pacman_at_TheWorld_dot_com

Originally committed as revision 17587 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-11 13:35:46 +00:00
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
7d20ebffdf Correct RGB vs. BGR confusion, the macros vec_mstrgb24 and vec_mstbgr24 each
do the opposite of what they say.
The vec_mstrgb24 and vec_mstbgr24 macros should be opposites and not perform
the same things.
patch by Alan Curry, pacman_at_world_dot_std_dot_com

Originally committed as revision 17564 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-09 00:29:35 +00:00
Alan Curry
3845b56dd1 altivec_yuv2packedX() ignores the requested output format and unconditionally
outputs RGBA. This patch supports 6 output formats and prints an error message
if it is asked to provide an output format it is not capable of.
patch by Alan Curry, pacman_at_world_dot_std_dot_com

Originally committed as revision 17561 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-08 13:14:19 +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
Alan Curry
be9d060d0c vYCoeffsBank and vCCoeffsBank are allocated and initialized using incorrect
sizes based on the image width instead of height.
patch by Alan Curry, pacman at world dot std dot com

Originally committed as revision 17558 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-02-08 08:16:53 +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
e435887cf6 Make clean/distclean behave uniformly in all directories.
Originally committed as revision 17489 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2006-01-27 00:06:42 +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
Reimar Döffinger
7f526efd17 Change unsigned->signed and int->long, this fits the asm code better on 64
bit systems.
Also fixes several crashes because (long)-i is incorrect if i is unsigned.

Originally committed as revision 16740 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-10-12 12:11:27 +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
Guillaume Poirier
dc77ef7fea Re-enables the GCC-4 fix for AMD-64 only. Patch by cartman and poirierg
Originally committed as revision 15973 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-07-12 19:16:04 +00:00
Guillaume Poirier
9cc768f64c Reverts GCC-4.0 "fixe" which broke GCC-3.3 and maybe others
Originally committed as revision 15859 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-30 05:35:26 +00:00
Reimar Döffinger
c35afa2f57 Another REG_d -> REG_D fix.
Originally committed as revision 15846 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-28 22:54:09 +00:00
Michael Niedermayer
d926e8c5c3 width % 16 != 0 workaround by (Nicolas Plourde: nicolas plourde, gmail com>)
cleanup by me
  indention fixed
  second one must be yv12touyvy instead of yv12toyuy2
  replace slow modulo by bitwise and
  move %16!=0 code before the comment saying the code cant handle %16!=0

Originally committed as revision 15825 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-27 07:40:24 +00:00
Guillaume Poirier
69cf0be2c3 Fixes GCC4 fix by using "g" instead of "mp" as some compilers misscompile
that code othewisei (leading to segfaults).

Originally committed as revision 15814 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-24 12:17:30 +00:00
Guillaume Poirier
1a2f549126 10l. Previous GCC4 commit broke compilation with gcc-3.4 and maybe others ia-32
tested with gcc-2.95, 3.3, 3.4, 4.0 on ia-32 and 3.4, 4.0, 3.3 on amd64

Originally committed as revision 15763 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-19 14:35:10 +00:00
Guillaume Poirier
bf0c1b62f8 GCC-4 fix for AMD-64
Warning: high cola-affinity here)

Originally committed as revision 15750 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-18 20:16:19 +00:00
Michael Niedermayer
20ffdcf9c0 one bugfix and a few gcc4 bug workaorunds by (Gianluigi Tiesi: mplayer, netfarm it)
Originally committed as revision 15618 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-06-02 20:54:03 +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
Alex Beregszaszi
b7782b47c9 unused define
Originally committed as revision 15296 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-04-29 18:32:24 +00:00
Nicolas Plourde
f8c1d62d74 fix palette8tobgr32/palette8torgb32 on big endian
Originally committed as revision 15278 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-04-27 18:17:53 +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
Rene Rebe
d07355da77 Fixes rgb32to16 conversion for I think all platforms since the int8
cast should never have worked. Tested on PowerPC and fixes the black GUI
to show the content.
patch by Rene Rebe <rene at exactcode dot de>

Originally committed as revision 14983 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-03-22 10:11:42 +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
Reimar Döffinger
b6663a5573 100l, fix broken AMD64 patch. To whoever applied it: Did you actually _try_
to check if it's correct??

Originally committed as revision 14537 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2005-01-19 12:56:16 +00:00
Aurelien Jacobs
a7b42d28da 10000l : fix a crash on x86 due to an horrible mistake in my x86_64 patch
Originally committed as revision 13734 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-10-22 00:21:57 +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
Alex Beregszaszi
6cb38650e8 lot of bigendian fixes
Originally committed as revision 13424 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-09-21 17:23:49 +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
Reimar Döffinger
4ccbc7d5a9 width instead of chromWidth causing segfault in some cases
Originally committed as revision 12994 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
2004-08-10 20:23:58 +00:00