Mercurial > libavcodec.hg
comparison h264_loopfilter.c @ 10945:0d93bbc17950 libavcodec
Simplify and optimize intra code in h264_loopfilter.c
| author | michael |
|---|---|
| date | Wed, 20 Jan 2010 00:44:03 +0000 |
| parents | ee944149442f |
| children | 5a23fa01dec1 |
comparison
equal
deleted
inserted
replaced
| 10944:0985f1f7ab72 | 10945:0d93bbc17950 |
|---|---|
| 496 int qp; | 496 int qp; |
| 497 | 497 |
| 498 if( (edge&1) && IS_8x8DCT(mb_type) ) | 498 if( (edge&1) && IS_8x8DCT(mb_type) ) |
| 499 continue; | 499 continue; |
| 500 | 500 |
| 501 if( IS_INTRA(mb_type) || | 501 if( IS_INTRA(mb_type|mbn_type)) { |
| 502 IS_INTRA(mbn_type) ) { | 502 *(uint64_t*)bS= 0x0003000300030003ULL; |
| 503 int value; | |
| 504 if (edge == 0) { | 503 if (edge == 0) { |
| 505 if ( (!IS_INTERLACED(mb_type) && !IS_INTERLACED(mbm_type)) | 504 if ( (!IS_INTERLACED(mb_type|mbm_type)) |
| 506 || ((FRAME_MBAFF || (s->picture_structure != PICT_FRAME)) && (dir == 0)) | 505 || ((FRAME_MBAFF || (s->picture_structure != PICT_FRAME)) && (dir == 0)) |
| 507 ) { | 506 ) |
| 508 value = 4; | 507 *(uint64_t*)bS= 0x0004000400040004ULL; |
| 509 } else { | 508 } |
| 510 value = 3; | |
| 511 } | |
| 512 } else { | |
| 513 value = 3; | |
| 514 } | |
| 515 bS[0] = bS[1] = bS[2] = bS[3] = value; | |
| 516 } else { | 509 } else { |
| 517 int i, l; | 510 int i, l; |
| 518 int mv_done; | 511 int mv_done; |
| 519 | 512 |
| 520 if( edge & mask_edge ) { | 513 if( edge & mask_edge ) { |
