#define MOSAIC_BLOCK_SIZE 16u

static void apply_mosaic(uint32_t width, uint32_t height)
{
    for (uint32_t by = 0; by < height; by += MOSAIC_BLOCK_SIZE) {
        for (uint32_t bx = 0; bx < width; bx += MOSAIC_BLOCK_SIZE) {
            const uint8_t value = g_app.pixels[by * g_app.stride + bx * 4];
            fill_mosaic_block(bx, by, width, height, value);
        }
    }
}
