ref: bbc11c99790e6475e44ba3248da5281ca5cfd99f
parent: 7fe3b037953a6d13956f1e0a365607720e35987d
author: Ronald S. Bultje <[email protected]>
date: Wed Nov 7 13:12:41 EST 2018
cdef: make scalar types non-sized
--- a/src/cdef_tmpl.c
+++ b/src/cdef_tmpl.c
@@ -128,7 +128,7 @@
const int px = dst[x];
int max = px, min = px;
for (int k = 0; k < 2; k++) {
- const int8_t off1 = cdef_directions[dir][k];
+ const int off1 = cdef_directions[dir][k];
const int p0 = tmp[x + off1];
const int p1 = tmp[x - off1];
sum += pri_taps[k] * constrain(p0 - px, pri_strength, damping);
@@ -137,10 +137,10 @@
if (p1 != INT16_MAX) max = imax(p1, max);
min = imin(p0, min);
min = imin(p1, min);
- const int8_t off2 = cdef_directions[(dir + 2) & 7][k];
+ const int off2 = cdef_directions[(dir + 2) & 7][k];
const int s0 = tmp[x + off2];
const int s1 = tmp[x - off2];
- const int8_t off3 = cdef_directions[(dir + 6) & 7][k];
+ const int off3 = cdef_directions[(dir + 6) & 7][k];
const int s2 = tmp[x + off3];
const int s3 = tmp[x - off3];
if (s0 != INT16_MAX) max = imax(s0, max);