TIFF decoder: remove unused KINV definition

+ some #undef

Change-Id: Ib8b8357ad3a6458ca421a59d9ad625656dd54afe
This commit is contained in:
Pascal Massimino 2018-10-14 08:24:43 +02:00
parent ef1094b0fe
commit 123d330699

View File

@ -121,7 +121,6 @@ static tsize_t MyRead(thandle_t opaque, void* dst, tsize_t size) {
// (we don't want to force a dependency to a libdspdec library).
#define MFIX 24 // 24bit fixed-point arithmetic
#define HALF ((1u << MFIX) >> 1)
#define KINV_255 ((1u << MFIX) / 255u)
static uint32_t Unmult(uint8_t x, uint32_t mult) {
const uint32_t v = (x * mult + HALF) >> MFIX;
@ -132,6 +131,9 @@ static WEBP_INLINE uint32_t GetScale(uint32_t a) {
return (255u << MFIX) / a;
}
#undef MFIX
#undef HALF
static void MultARGBRow(uint8_t* ptr, int width) {
int x;
for (x = 0; x < width; ++x, ptr += 4) {