Fix an alignment issue in the CLPF unit test
Change-Id: I7eb6952f5ea639e55f108ba1250564cfc70a6363
diff --git a/test/clpf_test.cc b/test/clpf_test.cc
index fcdd061..d4818d4 100644
--- a/test/clpf_test.cc
+++ b/test/clpf_test.cc
@@ -95,7 +95,7 @@
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 @@
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,