Fix an alignment issue in the CLPF unit test
Change-Id: I7eb6952f5ea639e55f108ba1250564cfc70a6363
This commit is contained in:
Родитель
e84eaf03d4
Коммит
b754ec3e81
|
@ -95,7 +95,7 @@ void test_clpf(int w, int h, int depth, int iterations,
|
|||
int dstride, int x0, int y0, int sizex,
|
||||
int sizey, unsigned int strength,
|
||||
unsigned int bitdepth)) {
|
||||
const int size = 24;
|
||||
const int size = 40;
|
||||
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
||||
DECLARE_ALIGNED(16, pixel, s[size * size]);
|
||||
DECLARE_ALIGNED(16, pixel, d[size * size]);
|
||||
|
@ -119,8 +119,8 @@ void test_clpf(int w, int h, int depth, int iterations,
|
|||
s[i] = clamp((rnd.Rand16() & ((1 << bits) - 1)) + level, 0,
|
||||
(1 << depth) - 1);
|
||||
|
||||
for (ypos = 2; ypos < size - h - 2 && !error; ypos += h * !error) {
|
||||
for (xpos = 2; xpos < size - w - 2 && !error; xpos += w * !error) {
|
||||
for (ypos = 8; ypos < size - h - 8 && !error; ypos += h * !error) {
|
||||
for (xpos = 8; xpos < size - w - 8 && !error; xpos += w * !error) {
|
||||
for (strength = depth - 8; strength < depth - 5 && !error;
|
||||
strength += !error) {
|
||||
ref_clpf(s, ref_d, size, size, xpos, ypos, w, h, 1 << strength,
|
||||
|
|
Загрузка…
Ссылка в новой задаче