Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Yan <rongyan236@gmail.com>2015-07-16 11:52:47 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-16 15:27:58 +0300
commit2af180bf1bf1d1dcca2c46e0e6ed915cd081a80d (patch)
treed982daa33ae3cc335f460edb524e988bba95bdbf /libswscale
parent0bfa176c64c228435e832d4e5ebee974c23d8256 (diff)
swscale/ppc/yuv2rgb_altivec: POWER LE support in the macros vec_unh() and vec_unl()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/ppc/yuv2rgb_altivec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index 25282bf100..638706f027 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -222,6 +222,7 @@ static const vector unsigned char
* optimized for JPEG decoding.
*/
+#if HAVE_BIGENDIAN
#define vec_unh(x) \
(vector signed short) \
vec_perm(x, (__typeof__(x)) { 0 }, \
@@ -235,6 +236,10 @@ static const vector unsigned char
((vector unsigned char) { \
0x10, 0x08, 0x10, 0x09, 0x10, 0x0A, 0x10, 0x0B, \
0x10, 0x0C, 0x10, 0x0D, 0x10, 0x0E, 0x10, 0x0F }))
+#else
+#define vec_unh(x)(vector signed short) vec_mergeh(x,(__typeof__(x)) { 0 })
+#define vec_unl(x)(vector signed short) vec_mergel(x,(__typeof__(x)) { 0 })
+#endif
#define vec_clip_s16(x) \
vec_max(vec_min(x, ((vector signed short) { \