comparison libswscale/yuv2rgb_altivec.c @ 27317:5707f04b8e69

compilation fix with GCC 4.0.1 on MacOSX tiger, broken by the removal of AVV() macro
author gpoirier
date Fri, 25 Jul 2008 09:15:08 +0000
parents ffbe8d9e13d6
children 15df1f217e6d
comparison
equal deleted inserted replaced
27316:978eb4967935 27317:5707f04b8e69
221 221
222 222
223 #define vec_unh(x) \ 223 #define vec_unh(x) \
224 (vector signed short) \ 224 (vector signed short) \
225 vec_perm(x,(typeof(x)){0}, \ 225 vec_perm(x,(typeof(x)){0}, \
226 (vector unsigned char){0x10,0x00,0x10,0x01,0x10,0x02,0x10,0x03,\ 226 ((vector unsigned char){0x10,0x00,0x10,0x01,0x10,0x02,0x10,0x03,\
227 0x10,0x04,0x10,0x05,0x10,0x06,0x10,0x07}) 227 0x10,0x04,0x10,0x05,0x10,0x06,0x10,0x07}))
228 #define vec_unl(x) \ 228 #define vec_unl(x) \
229 (vector signed short) \ 229 (vector signed short) \
230 vec_perm(x,(typeof(x)){0}, \ 230 vec_perm(x,(typeof(x)){0}, \
231 (vector unsigned char){0x10,0x08,0x10,0x09,0x10,0x0A,0x10,0x0B,\ 231 ((vector unsigned char){0x10,0x08,0x10,0x09,0x10,0x0A,0x10,0x0B,\
232 0x10,0x0C,0x10,0x0D,0x10,0x0E,0x10,0x0F}) 232 0x10,0x0C,0x10,0x0D,0x10,0x0E,0x10,0x0F}))
233 233
234 #define vec_clip_s16(x) \ 234 #define vec_clip_s16(x) \
235 vec_max (vec_min (x, (vector signed short){235,235,235,235,235,235,235,235}), \ 235 vec_max (vec_min (x, ((vector signed short){235,235,235,235,235,235,235,235})), \
236 (vector signed short){ 16, 16, 16, 16, 16, 16, 16, 16 }) 236 ((vector signed short){ 16, 16, 16, 16, 16, 16, 16, 16}))
237 237
238 #define vec_packclp(x,y) \ 238 #define vec_packclp(x,y) \
239 (vector unsigned char)vec_packs \ 239 (vector unsigned char)vec_packs \
240 ((vector unsigned short)vec_max (x,(vector signed short) {0}), \ 240 ((vector unsigned short)vec_max (x,((vector signed short) {0})), \
241 (vector unsigned short)vec_max (y,(vector signed short) {0})) 241 (vector unsigned short)vec_max (y,((vector signed short) {0})))
242 242
243 //#define out_pixels(a,b,c,ptr) vec_mstrgb32(typeof(a),((typeof (a)){0}),a,a,a,ptr) 243 //#define out_pixels(a,b,c,ptr) vec_mstrgb32(typeof(a),((typeof (a)){0}),a,a,a,ptr)
244 244
245 245
246 static inline void cvtyuvtoRGB (SwsContext *c, 246 static inline void cvtyuvtoRGB (SwsContext *c,