mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
Add av_clip_uintp2() function
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
2c9a5172d3
commit
1550f45a89
@@ -1329,9 +1329,7 @@ static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *m
|
||||
filter_level += s->lf_delta.mode[mb->mode];
|
||||
}
|
||||
|
||||
/* Like av_clip for inputs 0 and max, where max is equal to (2^n-1) */
|
||||
#define POW2CLIP(x,max) (((x) & ~max) ? (-(x))>>31 & max : (x));
|
||||
filter_level = POW2CLIP(filter_level, 63);
|
||||
filter_level = av_clip_uintp2(filter_level, 6);
|
||||
|
||||
interior_limit = filter_level;
|
||||
if (s->filter.sharpness) {
|
||||
|
||||
Reference in New Issue
Block a user