Commit 55c54371 authored by Michael Niedermayer's avatar Michael Niedermayer

Simplify and optimize intra code in h264_loopfilter.c

Originally committed as revision 21339 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7f3f5f46
...@@ -498,21 +498,14 @@ static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, u ...@@ -498,21 +498,14 @@ static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, u
if( (edge&1) && IS_8x8DCT(mb_type) ) if( (edge&1) && IS_8x8DCT(mb_type) )
continue; continue;
if( IS_INTRA(mb_type) || if( IS_INTRA(mb_type|mbn_type)) {
IS_INTRA(mbn_type) ) { *(uint64_t*)bS= 0x0003000300030003ULL;
int value;
if (edge == 0) { if (edge == 0) {
if ( (!IS_INTERLACED(mb_type) && !IS_INTERLACED(mbm_type)) if ( (!IS_INTERLACED(mb_type|mbm_type))
|| ((FRAME_MBAFF || (s->picture_structure != PICT_FRAME)) && (dir == 0)) || ((FRAME_MBAFF || (s->picture_structure != PICT_FRAME)) && (dir == 0))
) { )
value = 4; *(uint64_t*)bS= 0x0004000400040004ULL;
} else {
value = 3;
}
} else {
value = 3;
} }
bS[0] = bS[1] = bS[2] = bS[3] = value;
} else { } else {
int i, l; int i, l;
int mv_done; int mv_done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment