Mercurial > libavcodec.hg
changeset 2651:534f3b47afda libavcodec
minor optimization of the h264 loop filter
author | michael |
---|---|
date | Sat, 07 May 2005 16:35:24 +0000 |
parents | d321fbf0b2ce |
children | 659b92488061 |
files | dsputil.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dsputil.c Sat May 07 11:07:47 2005 +0000 +++ b/dsputil.c Sat May 07 16:35:24 2005 +0000 @@ -2667,11 +2667,11 @@ int i_delta; if( ABS( p2 - p0 ) < beta ) { - pix[-2*xstride] = p1 + clip( ( p2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( p1 << 1 ) ) >> 1, -tc0[i], tc0[i] ); + pix[-2*xstride] = p1 + clip( (( p2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - p1, -tc0[i], tc0[i] ); tc++; } if( ABS( q2 - q0 ) < beta ) { - pix[xstride] = q1 + clip( ( q2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( q1 << 1 ) ) >> 1, -tc0[i], tc0[i] ); + pix[ xstride] = q1 + clip( (( q2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - q1, -tc0[i], tc0[i] ); tc++; }