Commit Graph

13 Commits

Author SHA1 Message Date
pacman f65a309656 Support all 4 of ARGB/RGBA/BGRA/ABGR unscaled conversions, with more
consistent naming of functions


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17845 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-13 03:46:25 +00:00
pacman 366151d741 Just a comment update, replacing a FIXME to reflect the new expectation of
how altivec_yuv2packedX is supposed to be used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17643 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-18 01:08:17 +00:00
pacman 7aef655c0f 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}*


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17639 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-17 05:01:46 +00:00
diego 844c1f8f8a 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17589 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-11 14:16:10 +00:00
diego f938468899 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17564 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 00:29:35 +00:00
diego d4ade611df 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17561 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 13:14:19 +00:00
diego 1806f8776f AltiVec operations need to have memory aligned on 16-byte boundaries.
patch by Alan Curry, pacman at world dot std dot com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17559 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 08:20:40 +00:00
diego 7d56335977 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17558 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 08:16:53 +00:00
diego fb20d201d7 Unify include paths, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16986 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-14 00:30:37 +00:00
michael fe4f5a4336 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>)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13565 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-05 19:11:00 +00:00
alex 82e3eeea4f simplify the init
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12838 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-07-17 08:53:20 +00:00
alex 3914e47b64 some fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12837 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-07-17 07:01:15 +00:00
michael 56164a0e7a 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12699 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-27 00:07:15 +00:00