mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
fix msvc build breakage after 252028a
replace inline with WEBP_INLINE; inline is reserved for c++ code w/visual studio Change-Id: Ib06c6a12fd786701740d8b260d9aa310ee81fddf
This commit is contained in:
parent
7c4c177c39
commit
9d0e17c9a9
@ -164,11 +164,11 @@ static void GradientUnfilter(const uint8_t* data, int width, int height,
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Paeth filter.
|
// Paeth filter.
|
||||||
|
|
||||||
static inline int AbsDiff(int a, int b) {
|
static WEBP_INLINE int AbsDiff(int a, int b) {
|
||||||
return (a > b) ? a - b : b - a;
|
return (a > b) ? a - b : b - a;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint8_t PaethPredictor(uint8_t a, uint8_t b, uint8_t c) {
|
static WEBP_INLINE uint8_t PaethPredictor(uint8_t a, uint8_t b, uint8_t c) {
|
||||||
const int p = a + b - c; // Base.
|
const int p = a + b - c; // Base.
|
||||||
const int pa = AbsDiff(p, a);
|
const int pa = AbsDiff(p, a);
|
||||||
const int pb = AbsDiff(p, b);
|
const int pb = AbsDiff(p, b);
|
||||||
|
Loading…
Reference in New Issue
Block a user