Mercurial > libavcodec.hg
changeset 10940:563cb9b1a9b7 libavcodec
skip outer pixels if possible in h264_loop_filter_luma_c().
overall 3.7% faster loop filtering (C version only)
author | michael |
---|---|
date | Tue, 19 Jan 2010 22:46:58 +0000 |
parents | 5660eac25fb4 |
children | 28edcc8c54c0 |
files | dsputil.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dsputil.c Tue Jan 19 16:43:57 2010 +0000 +++ b/dsputil.c Tue Jan 19 22:46:58 2010 +0000 @@ -2999,10 +2999,12 @@ 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++; }