region to pixel mapping, and streamlined prediction code