Revision 68363b69

View differences:

libswscale/yuv2rgb_altivec.c
237 237
        ((vector unsigned short)vec_max (x,((vector signed short) {0})), \
238 238
         (vector unsigned short)vec_max (y,((vector signed short) {0})))
239 239

  
240
//#define out_pixels(a,b,c,ptr) vec_mstrgb32(__typeof__(a),((__typeof__ (a)){0}),a,a,a,ptr)
240
//#define out_pixels(a,b,c,ptr) vec_mstrgb32(__typeof__(a),((__typeof__ (a)){255}),a,a,a,ptr)
241 241

  
242 242

  
243 243
static inline void cvtyuvtoRGB (SwsContext *c,
......
438 438
}
439 439

  
440 440

  
441
#define out_abgr(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),((__typeof__ (a)){0}),c,b,a,ptr)
442
#define out_bgra(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),c,b,a,((__typeof__ (a)){0}),ptr)
443
#define out_rgba(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),a,b,c,((__typeof__ (a)){0}),ptr)
444
#define out_argb(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),((__typeof__ (a)){0}),a,b,c,ptr)
441
#define out_abgr(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),((__typeof__ (a)){255}),c,b,a,ptr)
442
#define out_bgra(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),c,b,a,((__typeof__ (a)){255}),ptr)
443
#define out_rgba(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),a,b,c,((__typeof__ (a)){255}),ptr)
444
#define out_argb(a,b,c,ptr)  vec_mstrgb32(__typeof__(a),((__typeof__ (a)){255}),a,b,c,ptr)
445 445
#define out_rgb24(a,b,c,ptr) vec_mstrgb24(a,b,c,ptr)
446 446
#define out_bgr24(a,b,c,ptr) vec_mstbgr24(a,b,c,ptr)
447 447

  

Also available in: Unified diff