mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
rename some symbols clashing with MSVC headers
This is to prepare the inclusion of <windows.h> FrameRect => FrameRectangle CLIP_MASK => CLIP_8b_MASK Change-Id: Ia4b1fa4ac06137b4102c91e232206a1fb7159ce0
This commit is contained in:
@ -71,10 +71,11 @@ typedef struct {
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#define CLIP_MASK (int)(~0U << (8 + DFIX))
|
||||
#define CLIP_8b_MASK (int)(~0U << (8 + DFIX))
|
||||
static WEBP_INLINE uint8_t clip_8b(int v) {
|
||||
return (!(v & CLIP_MASK)) ? (uint8_t)(v >> DFIX) : (v < 0) ? 0u : 255u;
|
||||
return (!(v & CLIP_8b_MASK)) ? (uint8_t)(v >> DFIX) : (v < 0) ? 0u : 255u;
|
||||
}
|
||||
#undef CLIP_8b_MASK
|
||||
|
||||
// vertical accumulation
|
||||
static void VFilter(SmoothParams* const p) {
|
||||
|
Reference in New Issue
Block a user