1. An apparatus comprising: a central processing unit configured to generate (i) a schedule in response to (a) performing a raster scan of blocks of an input frame, (b) sorting said blocks by a respective dependency number and (c) ordering said blocks according to said respective dependency numbers and (ii) a dependency map; and a parallel processing unit comprising an array of software-configurable general purpose processors, a globally shared memory, wherein each of the software-configurable general purpose processors in said array of software-configurable general purpose processors has access to said globally shared memory to execute one or more portions of a decoding program, and a shared memory, wherein (i) said shared memory is accessible by said central processing unit to program said shared memory with said schedule, (ii) said schedule describes which of said one or more portions of said decoding program are to be executed by each of said software-configurable general purpose processors, (iii) said dependency map indicates which of said blocks depend on other blocks of said input frame and (iv) said schedule is generated based on said dependency map.