summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/imgresample_altivec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2008-12-13 10:52:34 +0000
committerLuca Barbato <lu_zero@gentoo.org>2008-12-13 10:52:34 +0000
commit7a8f36cccccb7bd1c974632ca671493f7a006229 (patch)
treebdcb3aa3a7bbbaad45cd753c87e0c1f2a460a62d /libavcodec/ppc/imgresample_altivec.c
parent006c8e9e9cef05750433d33f291430666780519c (diff)
Cleanup types
Originally committed as revision 16092 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/imgresample_altivec.c')
-rw-r--r--libavcodec/ppc/imgresample_altivec.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/ppc/imgresample_altivec.c b/libavcodec/ppc/imgresample_altivec.c
index c43639c9fa..fdbca5c6fb 100644
--- a/libavcodec/ppc/imgresample_altivec.c
+++ b/libavcodec/ppc/imgresample_altivec.c
@@ -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 @@ void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src,
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;