mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 13:35:13 +00:00
remove #if 0 code
Originally committed as revision 10974 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
de12b9be6c
commit
cdcf24f87c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user