mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
VP8: slightly faster loopfilter sharpness logic
This commit is contained in:
parent
79dec1541b
commit
8a2c99b486
@ -1487,7 +1487,7 @@ static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *m
|
||||
|
||||
interior_limit = filter_level;
|
||||
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);
|
||||
}
|
||||
interior_limit = FFMAX(interior_limit, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user