Use a uniformly colored background in the test program. This looks
better than the randomly-looking pattern that was used before.
A chessboard pattern would be even better, but this will do for now.
img->height = height;
img->stride = width * 3;
img->buffer = (unsigned char*)calloc(1, height * width * 3);
- for (int i = 0; i < height * width * 3; ++i)
- img->buffer[i] = (i/3/50) % 100;
+ memset(img->buffer, 63, img->stride * img->height);
+ //for (int i = 0; i < height * width * 3; ++i)
+ // img->buffer[i] = (i/3/50) % 100;
return img;
}