diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2008-03-23 15:29:22 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2008-03-23 15:29:22 +0000 |
commit | 5369d74c30c89e2f460960cd99ea6f483e383c1e (patch) | |
tree | 41698be36576ad0a1f5f29f7ef2eddc26d705f20 | |
parent | a5b3b5f6c8878a7c5527444fd4a51b0b8a3ff88d (diff) | |
download | ffmpeg-5369d74c30c89e2f460960cd99ea6f483e383c1e.tar.gz |
Reorder declarations in vertClassify_altivec
Originally committed as revision 12560 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libpostproc/postprocess_altivec_template.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c index dbffccd1a4..c7ef78e91b 100644 --- a/libpostproc/postprocess_altivec_template.c +++ b/libpostproc/postprocess_altivec_template.c @@ -62,7 +62,13 @@ static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) vector by assuming (stride % 16) == 0, unfortunately this is not always true. */ - DECLARE_ALIGNED(16, short, data[8]); + DECLARE_ALIGNED(16, short, data[8]) = + { + ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1, + data[0] * 2 + 1, + c->QP * 2, + c->QP * 4 + }; int numEq; uint8_t *src2 = src; vector signed short v_dcOffset; @@ -75,12 +81,10 @@ static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) const vector signed int zero = vec_splat_s32(0); const vector signed short mask = vec_splat_s16(1); vector signed int v_numEq = vec_splat_s32(0); - - data[0] = ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1; - data[1] = data[0] * 2 + 1; - data[2] = c->QP * 2; - data[3] = c->QP * 4; vector signed short v_data = vec_ld(0, data); + vector signed short v_srcAss0, v_srcAss1, v_srcAss2, v_srcAss3, + v_srcAss4, v_srcAss5, v_srcAss6, v_srcAss7; + v_dcOffset = vec_splat(v_data, 0); v_dcThreshold = (vector unsigned short)vec_splat(v_data, 1); v2QP = vec_splat(v_data, 2); @@ -88,7 +92,6 @@ static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) src2 += stride * 4; - vector signed short v_srcAss0, v_srcAss1, v_srcAss2, v_srcAss3, v_srcAss4, v_srcAss5, v_srcAss6, v_srcAss7; #define LOAD_LINE(i) \ register int j##i = i * stride; \ |