1. A method for spatial prediction in a video encoder, said method comprising: storing a plurality of instructions in a table, wherein an instruction performs a correlation between one or more predetermined weights and one or more video samples; and executing a current instruction with a controller, thereby producing a spatial estimate of a current video sample in a current mode.