Patent ID: 8891888

Claim:
A method comprising: receiving at least one code that conveys data about at least one quantized coefficient corresponding to at least one pixel of an image file; determining a decoding mode and a version of a code mapping format for decoding the at least one code, wherein the decoding mode and the version of the code mapping format dynamically change based on at least one previously-decoded code and wherein determining the decoding mode based on at least one previously-decoded code comprises: upon determining at least one previously-decoded block of coefficients comprises only zero coefficients, initiating a zero block run decoding mode in which at least one received code represents a number of consecutive blocks of coefficients comprising only zero coefficients; constructing each of the consecutive blocks of coefficients; and populating each of the consecutive blocks of coefficients with zero coefficients; and decoding the at least one code according to the version of the code mapping format, during the decoding mode, to obtain the data about the at least one quantized coefficient.