changeset 8311:cfa400ec2a75 libavcodec

Cleanup types
author lu_zero
date Sat, 13 Dec 2008 10:52:34 +0000
parents 4e58133ef122
children 87ae12cd9db0
files ppc/imgresample_altivec.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/imgresample_altivec.c	Sat Dec 13 10:49:38 2008 +0000
+++ b/ppc/imgresample_altivec.c	Sat Dec 13 10:52:34 2008 +0000
@@ -28,14 +28,9 @@
 #define FILTER_BITS   8
 
 typedef         union {
-    vector unsigned char v;
-    unsigned char c[16];
-} vec_uc_t;
-
-typedef         union {
     vector signed short v;
     signed short s[8];
-} vec_ss_t;
+} vec_ss;
 
 void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src,
                           int wrap, int16_t *filter)
@@ -43,7 +38,7 @@
     int sum, i;
     const uint8_t *s;
     vector unsigned char *tv, tmp, dstv, zero;
-    vec_ss_t srchv[4], srclv[4], fv[4];
+    vec_ss srchv[4], srclv[4], fv[4];
     vector signed short zeros, sumhv, sumlv;
     s = src;