1. A method for compressing data in a computer system, the method comprising: providing a plurality of modeling schemes; calculating an estimated cost to encode a previous set of pixels for each modeling scheme; selecting a lowest cost scheme from the plurality of modeling schemes; and encoding the pixel based on the lowest cost scheme.