Patent ID: 7590778

Claim:
A method, comprising: generating, with an encoder, an input data stream to a decoder comprising at least one of a plurality of operation codes and compressed data for an output device, wherein one of the operation codes includes parameters indicating a counter size indicating a size of a counter and a counter value indicating an initial value for the counter; receiving, by the decoder, the input data stream; processing, by the decoder, the data in the input data stream to perform an operation with respect to a buffer according to the operation code including the parameters indicating the counter size by: creating the counter in the buffer having the counter size indicated in the parameters; setting the created counter to the counter value indicated in the parameters; and using the created counter to repeat an operation with respect to data from the input data stream in the buffer a number of times indicated in the counter; and decoding, by the decoder, the compressed data into decompressed data to send to an output data stream to the output device.