The generic version should be faster if optimized.
Stefano Sabatini authored on 2013/12/21 03:11:35... | ... |
@@ -144,8 +144,8 @@ static inline void create_chrominance_lut(HueContext *h, const int32_t c, |
144 | 144 |
new_v = ((s * u) + (c * v) + (1 << 15) + (128 << 16)) >> 16; |
145 | 145 |
|
146 | 146 |
/* Prevent a potential overflow */ |
147 |
- h->lut_u[i][j] = av_clip_uint8_c(new_u); |
|
148 |
- h->lut_v[i][j] = av_clip_uint8_c(new_v); |
|
147 |
+ h->lut_u[i][j] = av_clip_uint8(new_u); |
|
148 |
+ h->lut_v[i][j] = av_clip_uint8(new_v); |
|
149 | 149 |
} |
150 | 150 |
} |
151 | 151 |
} |