Mercurial > libavcodec.hg
comparison intrax8dsp.c @ 5890:a070b05fdbd2 libavcodec
remove #if 0 code
author | michael |
---|---|
date | Fri, 09 Nov 2007 21:44:37 +0000 |
parents | 7eb994e6c047 |
children | 595a2f31430e |
comparison
equal
deleted
inserted
replaced
5889:7eb994e6c047 | 5890:a070b05fdbd2 |
---|---|
429 dsp->x8_spacial_compensation[8]=spacial_compensation_8; | 429 dsp->x8_spacial_compensation[8]=spacial_compensation_8; |
430 dsp->x8_spacial_compensation[9]=spacial_compensation_9; | 430 dsp->x8_spacial_compensation[9]=spacial_compensation_9; |
431 dsp->x8_spacial_compensation[10]=spacial_compensation_10; | 431 dsp->x8_spacial_compensation[10]=spacial_compensation_10; |
432 dsp->x8_spacial_compensation[11]=spacial_compensation_11; | 432 dsp->x8_spacial_compensation[11]=spacial_compensation_11; |
433 } | 433 } |
434 | |
435 #if 0 | |
436 static void wmv2_loop_filter(uint8_t * ptr, const int a_stride, const int b_stride, int quant){ | |
437 int i,t; | |
438 int p0,p1,p2,p3,p4,p5,p6,p7,p8,p9; | |
439 | |
440 for(i=0; i<8; i++,ptr+=b_stride){ | |
441 p1=ptr[-4*a_stride]; | |
442 p2=ptr[-3*a_stride]; | |
443 p3=ptr[-2*a_stride]; | |
444 p4=ptr[-1*a_stride]; | |
445 p5=ptr[ 0 ]; | |
446 p6=ptr[ 1*a_stride]; | |
447 p7=ptr[ 2*a_stride]; | |
448 p8=ptr[ 3*a_stride]; | |
449 | |
450 { | |
451 int x,x0,x1,x2; | |
452 int m; | |
453 | |
454 x0 = (2*p3 - 5*p4 + 5*p5 - 2*p6 + 4)>>3; | |
455 if(abs(x0) < quant){ | |
456 x1=(2*p1 - 5*p2 + 5*p3 - 2*p4 + 4)>>3; | |
457 x2=(2*p5 - 5*p6 + 5*p7 - 2*p8 + 4)>>3; | |
458 | |
459 x=abs(x0) - FFMIN( abs(x1), abs(x2) ); | |
460 m=p4-p5; | |
461 | |
462 if( x > 0 && (m^x0) < 0){ | |
463 int32_t sign; | |
464 | |
465 sign=m>>31; | |
466 m=(m^sign)-sign;//abs(m) | |
467 m>>=1; | |
468 | |
469 x=(5*x)>>3; | |
470 | |
471 if(x>m) x=m; | |
472 | |
473 x=(x^sign)-sign; | |
474 | |
475 ptr[-1*a_stride] -= x; | |
476 ptr[ 0] += x; | |
477 } | |
478 } | |
479 } | |
480 } | |
481 } | |
482 #endif |