[FFmpeg-devel] [PATCH] VP8: slightly faster loopfilter sharpness logic

Diego Biurrun diego
Fri Feb 4 13:34:01 CET 2011


On Thu, Feb 03, 2011 at 11:37:58PM -0800, Jason Garrett-Glaser wrote:
> 
> --- a/libavcodec/vp8.c
> +++ b/libavcodec/vp8.c
> @@ -1487,7 +1487,7 @@ static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *m
>  
>      if (s->filter.sharpness) {
> -        interior_limit >>= s->filter.sharpness > 4 ? 2 : 1;
> +        interior_limit >>= (s->filter.sharpness+3)>>2;
>          interior_limit = FFMIN(interior_limit, 9 - s->filter.sharpness);

nit: Can you give operators a little more space to breathe? :)

Diego



More information about the ffmpeg-devel mailing list