45f3e405c6
Use the bounding box to compute an approximation of which output contains most of the surface. Move the region32 init outside the loop, and fini it, too. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>