Mercurial > libavcodec.hg
changeset 5890:a070b05fdbd2 libavcodec
remove #if 0 code
author | michael |
---|---|
date | Fri, 09 Nov 2007 21:44:37 +0000 |
parents | 7eb994e6c047 |
children | d0bfc0b00d6c |
files | intrax8dsp.c |
diffstat | 1 files changed, 0 insertions(+), 49 deletions(-) [+] |
line wrap: on
line diff
--- a/intrax8dsp.c Fri Nov 09 21:43:03 2007 +0000 +++ b/intrax8dsp.c Fri Nov 09 21:44:37 2007 +0000 @@ -431,52 +431,3 @@ dsp->x8_spacial_compensation[10]=spacial_compensation_10; dsp->x8_spacial_compensation[11]=spacial_compensation_11; } - -#if 0 -static void wmv2_loop_filter(uint8_t * ptr, const int a_stride, const int b_stride, int quant){ - int i,t; - int p0,p1,p2,p3,p4,p5,p6,p7,p8,p9; - - for(i=0; i<8; i++,ptr+=b_stride){ - p1=ptr[-4*a_stride]; - p2=ptr[-3*a_stride]; - p3=ptr[-2*a_stride]; - p4=ptr[-1*a_stride]; - p5=ptr[ 0 ]; - p6=ptr[ 1*a_stride]; - p7=ptr[ 2*a_stride]; - p8=ptr[ 3*a_stride]; - - { - int x,x0,x1,x2; - int m; - - x0 = (2*p3 - 5*p4 + 5*p5 - 2*p6 + 4)>>3; - if(abs(x0) < quant){ - x1=(2*p1 - 5*p2 + 5*p3 - 2*p4 + 4)>>3; - x2=(2*p5 - 5*p6 + 5*p7 - 2*p8 + 4)>>3; - - x=abs(x0) - FFMIN( abs(x1), abs(x2) ); - m=p4-p5; - - if( x > 0 && (m^x0) < 0){ - int32_t sign; - - sign=m>>31; - m=(m^sign)-sign;//abs(m) - m>>=1; - - x=(5*x)>>3; - - if(x>m) x=m; - - x=(x^sign)-sign; - - ptr[-1*a_stride] -= x; - ptr[ 0] += x; - } - } - } - } -} -#endif