mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
Disambiguate which abs type we want.
This commit is contained in:
parent
7261af1d9f
commit
0aba6e09f3
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ static inline uint32_t rgb_to_yuv(uint32_t c)
|
||||||
|
|
||||||
/* Test if there is difference in color */
|
/* Test if there is difference in color */
|
||||||
static inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) {
|
static inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) {
|
||||||
return (( abs((yuv1 & Ymask) - (yuv2 & Ymask)) > trY ) ||
|
return (( abs((int64_t)(yuv1 & Ymask) - (int64_t)(yuv2 & Ymask)) > trY ) ||
|
||||||
( abs((yuv1 & Umask) - (yuv2 & Umask)) > trU ) ||
|
( abs((int64_t)(yuv1 & Umask) - (int64_t)(yuv2 & Umask)) > trU ) ||
|
||||||
( abs((yuv1 & Vmask) - (yuv2 & Vmask)) > trV ) );
|
( abs((int64_t)(yuv1 & Vmask) - (int64_t)(yuv2 & Vmask)) > trV ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int Diff(uint32_t c1, uint32_t c2)
|
static inline int Diff(uint32_t c1, uint32_t c2)
|
||||||
|
|
Loading…
Reference in a new issue