Mercurial > libavcodec.hg
comparison h264_loopfilter.c @ 11040:f0b31169d04d libavcodec
Restructure check_mv()
~20 cpu cycles faster loopfilter
author | michael |
---|---|
date | Thu, 28 Jan 2010 11:12:46 +0000 |
parents | b9a6d26f48eb |
children | 6d74270c4f6f |
comparison
equal
deleted
inserted
replaced
11039:b9a6d26f48eb | 11040:f0b31169d04d |
---|---|
437 h->mv_cache[1][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U | | 437 h->mv_cache[1][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U | |
438 FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit; | 438 FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit; |
439 | 439 |
440 if(v){ | 440 if(v){ |
441 if(h->ref_cache[0][b_idx] != h->ref_cache[1][bn_idx] | | 441 if(h->ref_cache[0][b_idx] != h->ref_cache[1][bn_idx] | |
442 h->ref_cache[1][b_idx] != h->ref_cache[0][bn_idx]) | |
443 return 1; | |
444 return | |
442 h->mv_cache[0][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U | | 445 h->mv_cache[0][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U | |
443 FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit) | 446 FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit | |
444 return 1; | |
445 if(h->ref_cache[1][b_idx] != h->ref_cache[0][bn_idx] | | |
446 h->mv_cache[1][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U | | 447 h->mv_cache[1][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U | |
447 FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit) | 448 FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit; |
448 return 1; | |
449 return 0; | |
450 } | 449 } |
451 } | 450 } |
452 | 451 |
453 return v; | 452 return v; |
454 } | 453 } |