# HG changeset patch # User michael # Date 1194644677 0 # Node ID a070b05fdbd28fcff42caea6940f59e4462ee7be # Parent 7eb994e6c0472c4ccfd7076bdf6dbbbe2b59a314 remove #if 0 code diff -r 7eb994e6c047 -r a070b05fdbd2 intrax8dsp.c --- 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