Use rounding to try to preserve the original value. Fix test case.

This commit is contained in:
Jorge Rodriguez
2014-09-09 12:16:23 -07:00
parent 145690788c
commit ca241daefa
2 changed files with 9 additions and 9 deletions

View File

@ -563,7 +563,7 @@ void verify_box(void)
STBIR_ASSERT(output44[j][i] == ((n+2)>>2));
t += n;
}
STBIR_ASSERT(output11[j][i] == ((t+32)>>6));
STBIR_ASSERT(output11[0][0] == ((t+32)>>6));
}
void verify_filter_normalized(stbir_filter filter, unsigned char* output, int output_size)