aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/intrax8dsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer2007-11-09 21:44:37 +0000
committerMichael Niedermayer2007-11-09 21:44:37 +0000
commitcdcf24f87c8a758af119f3bf9e03c9a79e6c5cd9 (patch)
tree9e6852d539ac42278d1b4f710715b25b172c56be /libavcodec/intrax8dsp.c
parentde12b9be6ccfbfc1d0809ece0e9da488251f769f (diff)
remove #if 0 code
Originally committed as revision 10974 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/intrax8dsp.c')
-rw-r--r--libavcodec/intrax8dsp.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/libavcodec/intrax8dsp.c b/libavcodec/intrax8dsp.c
index 669923d9da..9b06189e1a 100644
--- a/libavcodec/intrax8dsp.c
+++ b/libavcodec/intrax8dsp.c
@@ -431,52 +431,3 @@ void ff_intrax8dsp_init(DSPContext* dsp, AVCodecContext *avctx) {
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