diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2013-01-06 23:47:30 -0500 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-16 10:45:45 +0100 |
commit | e034cc6c60c77dce390b1ac31141b1862bdf8999 (patch) | |
tree | e61443e9c6413b1b92107e932c1d79a9717e16be /libavcodec/ppc | |
parent | a7ba3244131d96d9ab7a99ef30dc7276efd05cc7 (diff) | |
download | ffmpeg-e034cc6c60c77dce390b1ac31141b1862bdf8999.tar.gz |
lavc: Move vector_fmul_window to AVFloatDSPContext
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/float_altivec.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libavcodec/ppc/float_altivec.c b/libavcodec/ppc/float_altivec.c index 5068fd4eb8..b56440ba10 100644 --- a/libavcodec/ppc/float_altivec.c +++ b/libavcodec/ppc/float_altivec.c @@ -75,43 +75,8 @@ static void vector_fmul_add_altivec(float *dst, const float *src0, } } -static void vector_fmul_window_altivec(float *dst, const float *src0, const float *src1, const float *win, int len) -{ - vector float zero, t0, t1, s0, s1, wi, wj; - const vector unsigned char reverse = vcprm(3,2,1,0); - int i,j; - - dst += len; - win += len; - src0+= len; - - zero = (vector float)vec_splat_u32(0); - - for(i=-len*4, j=len*4-16; i<0; i+=16, j-=16) { - s0 = vec_ld(i, src0); - s1 = vec_ld(j, src1); - wi = vec_ld(i, win); - wj = vec_ld(j, win); - - s1 = vec_perm(s1, s1, reverse); - wj = vec_perm(wj, wj, reverse); - - t0 = vec_madd(s0, wj, zero); - t0 = vec_nmsub(s1, wi, t0); - t1 = vec_madd(s0, wi, zero); - t1 = vec_madd(s1, wj, t1); - t1 = vec_perm(t1, t1, reverse); - - vec_st(t0, i, dst); - vec_st(t1, j, dst); - } -} - void ff_float_init_altivec(DSPContext* c, AVCodecContext *avctx) { c->vector_fmul_reverse = vector_fmul_reverse_altivec; c->vector_fmul_add = vector_fmul_add_altivec; - if(!(avctx->flags & CODEC_FLAG_BITEXACT)) { - c->vector_fmul_window = vector_fmul_window_altivec; - } } |