diff options
author | mru <mru@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-22 03:26:30 +0000 |
---|---|---|
committer | mru <mru@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-22 03:26:30 +0000 |
commit | 134976ee4d0f58fca20aa2b79d874d035b0bc30b (patch) | |
tree | 4607860a918ed1a47e4c2959967bfe3995f8563d /libswscale/ppc | |
parent | 937c4fab19b5eec3ff2f6cfa4eeae3b809e63f19 (diff) | |
download | mpv-134976ee4d0f58fca20aa2b79d874d035b0bc30b.tar.bz2 mpv-134976ee4d0f58fca20aa2b79d874d035b0bc30b.tar.xz |
Move array specifiers outside DECLARE_ALIGNED() invocations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30385 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/ppc')
-rw-r--r-- | libswscale/ppc/swscale_altivec_template.c | 8 | ||||
-rw-r--r-- | libswscale/ppc/yuv2rgb_altivec.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libswscale/ppc/swscale_altivec_template.c b/libswscale/ppc/swscale_altivec_template.c index 23da6b0178..a438e4cb37 100644 --- a/libswscale/ppc/swscale_altivec_template.c +++ b/libswscale/ppc/swscale_altivec_template.c @@ -93,7 +93,7 @@ yuv2yuvX_altivec_real(const int16_t *lumFilter, int16_t **lumSrc, int lumFilterS const vector signed int vini = {(1 << 18), (1 << 18), (1 << 18), (1 << 18)}; register int i, j; { - DECLARE_ALIGNED(16, int, val[dstW]); + DECLARE_ALIGNED(16, int, val)[dstW]; for (i = 0; i < (dstW -7); i+=4) { vec_st(vini, i << 2, val); @@ -141,8 +141,8 @@ yuv2yuvX_altivec_real(const int16_t *lumFilter, int16_t **lumSrc, int lumFilterS altivec_packIntArrayToCharArray(val, dest, dstW); } if (uDest != 0) { - DECLARE_ALIGNED(16, int, u[chrDstW]); - DECLARE_ALIGNED(16, int, v[chrDstW]); + DECLARE_ALIGNED(16, int, u)[chrDstW]; + DECLARE_ALIGNED(16, int, v)[chrDstW]; for (i = 0; i < (chrDstW -7); i+=4) { vec_st(vini, i << 2, u); @@ -215,7 +215,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, const int16_t *filterPos, int filterSize) { register int i; - DECLARE_ALIGNED(16, int, tempo[4]); + DECLARE_ALIGNED(16, int, tempo)[4]; if (filterSize % 4) { for (i=0; i<dstW; i++) { diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c index b549a450a5..be26647498 100644 --- a/libswscale/ppc/yuv2rgb_altivec.c +++ b/libswscale/ppc/yuv2rgb_altivec.c @@ -753,7 +753,7 @@ SwsFunc ff_yuv2rgb_init_altivec(SwsContext *c) void ff_yuv2rgb_init_tables_altivec(SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation) { union { - DECLARE_ALIGNED(16, signed short, tmp[8]); + DECLARE_ALIGNED(16, signed short, tmp)[8]; vector signed short vec; } buf; @@ -791,7 +791,7 @@ ff_yuv2packedX_altivec(SwsContext *c, vector signed short RND = vec_splat_s16(1<<3); vector unsigned short SCL = vec_splat_u16(4); - DECLARE_ALIGNED(16, unsigned long, scratch[16]); + DECLARE_ALIGNED(16, unsigned long, scratch)[16]; vector signed short *YCoeffs, *CCoeffs; |