25 for (y = 0; y <
h; y++) {
26 for (x = 0; x <
w; x++)
27 printf(
" %7x", ii[y*lz_32 + x]);
30 printf(
"---------------\n");
35 int ret = 0, xoff, yoff;
41 const int w = 6,
h = 5, lz = 8;
43 0xb0, 0x71, 0xfb, 0xd8, 0x01, 0xd9, 0x01, 0x02,
44 0x51, 0x8e, 0x41, 0x0f, 0x84, 0x58, 0x03, 0x04,
45 0xc7, 0x8d, 0x07, 0x70, 0x5c, 0x47, 0x05, 0x06,
46 0x09, 0x4e, 0xfc, 0x74, 0x8f, 0x9a, 0x07, 0x08,
47 0x60, 0x8e, 0x20, 0xaa, 0x95, 0x7d, 0x09, 0x0a,
51 const int ii_w =
w+e*2, ii_h =
h+e*2;
54 const int ii_lz_32 = ((ii_w + 1) + 3) & ~3;
63 ii_start = ii + ii_lz_32 + 1;
64 ii_start2 = ii2 + ii_lz_32 + 1;
68 for (yoff = -e; yoff <= e; yoff++) {
69 for (xoff = -e; xoff <= e; xoff++) {
70 printf(
"xoff=%d yoff=%d\n", xoff, yoff);
73 src, lz, xoff, yoff, e,
w,
h);
83 if (memcmp(ii, ii2, (ii_h+1) * ii_lz_32 *
sizeof(*ii))) {
84 printf(
"Integral mismatch\n");