diff options
author | pacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-06 10:08:54 +0000 |
---|---|---|
committer | pacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-06 10:08:54 +0000 |
commit | b2e9d4082de5ea6443da97342a577e1fa96fdfc4 (patch) | |
tree | c354cda2c20cd1201002d2861d0408d4258d8189 /postproc | |
parent | 7882100299d2977c11e4f793d92c3788a665aa67 (diff) | |
download | mpv-b2e9d4082de5ea6443da97342a577e1fa96fdfc4.tar.bz2 mpv-b2e9d4082de5ea6443da97342a577e1fa96fdfc4.tar.xz |
Reorganize vector constants to work around gcc 4.1 bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27006
This bug caused certain movies (444P or RGB/BGR-based) to become brighter
and more purple when played on a YV12 vo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18047 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/swscale_altivec_template.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/postproc/swscale_altivec_template.c b/postproc/swscale_altivec_template.c index a466c026ff..d4a38201f1 100644 --- a/postproc/swscale_altivec_template.c +++ b/postproc/swscale_altivec_template.c @@ -26,14 +26,13 @@ #define AVV(x...) {x} #endif -static const vector signed int vzero = - (const vector signed int)AVV(0, 0, 0, 0); -static const vector unsigned int altivec_vectorShiftInt19 = - (const vector unsigned int)AVV(19, 19, 19, 19); +#define vzero vec_splat_s32(0) static inline void altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) { register int i; + vector unsigned int altivec_vectorShiftInt19 = + vec_add(vec_splat_u32(10),vec_splat_u32(9)); if ((unsigned long)dest % 16) { /* badly aligned store, we force store alignement */ /* and will handle load misalignement on val w/ vec_perm */ |