1. A method carried out by an electronic data processor, comprising: generating a spatial vector for a target block of pixels; using the spatial vector to construct a spatial reference block; and using the spatial reference block to generate a spatial prediction of the target block.