diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2008-03-23 15:39:39 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2008-03-23 15:39:39 +0000 |
commit | 721392606bafd5a6971cce2d93fe5d0bc2a76927 (patch) | |
tree | 4e3e2dc48c76337118cdc25a02ed9765dc1e6a5c /libpostproc | |
parent | e9ddf49639735461967900c525989441bd2e3ce6 (diff) | |
download | ffmpeg-721392606bafd5a6971cce2d93fe5d0bc2a76927.tar.gz |
Remove declarations after statements from doVertDefFilter_altivec
Originally committed as revision 12563 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess_altivec_template.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c index 4c7e8e8151..31fd6b2fdd 100644 --- a/libpostproc/postprocess_altivec_template.c +++ b/libpostproc/postprocess_altivec_template.c @@ -417,12 +417,11 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext can be removed by assuming proper alignment of src & stride :-( */ - uint8_t *src2 = src; + uint8_t *src2 = src + stride*3; const vector signed int zero = vec_splat_s32(0); - DECLARE_ALIGNED(16, short, qp[8]); - qp[0] = 8*c->QP; - vector signed short vqp = vec_ld(0, qp); - vqp = vec_splat(vqp, 0); + DECLARE_ALIGNED(16, short, qp[8]) = {8*c->QP}; + vector signed short vqp = vec_splat( + (vector signed short)vec_ld(0, qp), 0); #define LOAD_LINE(i) \ const vector unsigned char perm##i = \ @@ -437,8 +436,6 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext (vector signed short)vec_mergeh((vector unsigned char)zero, \ (vector unsigned char)vbT##i) - src2 += stride*3; - LOAD_LINE(1); LOAD_LINE(2); LOAD_LINE(3); @@ -513,7 +510,7 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F); #define STORE(i) \ - const vector unsigned char perms##i = \ +{ const vector unsigned char perms##i = \ vec_lvsr(i * stride, src2); \ const vector unsigned char vg##i = \ vec_perm(st##i, vbT##i, permHH); \ @@ -526,10 +523,10 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext const vector unsigned char svB##i = \ vec_sel(vg2##i, vbB##i, mask##i); \ vec_st(svA##i, i * stride, src2); \ - vec_st(svB##i, i * stride + 16, src2) + vec_st(svB##i, i * stride + 16, src2);} - STORE(4); - STORE(5); + STORE(4) + STORE(5) } static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) { |