diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-01-19 22:46:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-01-19 22:46:58 +0000 |
commit | c9640c17ac78c3ef0c127e4f6393e66ee5d31878 (patch) | |
tree | b925405c4b6b5db4026bc9a226eec87db080b0b7 /libavcodec | |
parent | 0e21dcdb136a37de4a81dc638544f7e5f137c7db (diff) | |
download | ffmpeg-c9640c17ac78c3ef0c127e4f6393e66ee5d31878.tar.gz |
skip outer pixels if possible in h264_loop_filter_luma_c().
overall 3.7% faster loop filtering (C version only)
Originally committed as revision 21332 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsputil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 41a63778bb..25f501a6e1 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2999,10 +2999,12 @@ static inline void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystrid int i_delta; if( FFABS( p2 - p0 ) < beta ) { + if(tc0[i]) pix[-2*xstride] = p1 + av_clip( (( p2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - p1, -tc0[i], tc0[i] ); tc++; } if( FFABS( q2 - q0 ) < beta ) { + if(tc0[i]) pix[ xstride] = q1 + av_clip( (( q2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - q1, -tc0[i], tc0[i] ); tc++; } |