Patent ID: 8600183

Claim:
A system comprising: a processor of a machine; a Discrete Cosine Transform (DCT) module to obtain a plurality of DCT coefficients associated with a digital image, each DCT coefficient from the plurality of DCT coefficients associated with a DCT coefficient storage comprising one or more bits for storing a value of a DCT coefficient and one or more available bits; a statistics generator to generate, using the processor of the machine, statistics associated with the plurality of DCT coefficients, the statistics comprising a first value, the first value comprising a runlength of a zero-run; a placement module to store the generated statistics in at least some of the available bits of the plurality of DCT coefficients, the placement module to store the first value in at least some of available bits of a zero-value DCT coefficient from the plurality of DCT coefficients; an entropy coder to generate uniquely decodable (UD) codes for the plurality of DCT coefficients utilizing the statistics stored in the plurality of DCT coefficients; and a last non-zero module to determine that a value of a last DCT coefficient from the plurality of DCT coefficients is zero, the last DCT coefficient being a last-accessed DCT coefficient when all other DCT coefficients in the plurality of the DCT coefficients have already been accessed, the last non-zero module further to determine a position of a last non-zero DCT coefficient from the plurality of DCT coefficients, the last non-zero DCT coefficient being the most recently accessed non-zero DCT coefficient after all other non-zero DCT coefficients in the plurality of the DCT coefficients have already been accessed, wherein the placement module is further to store the position of the last non-zero DCT coefficient in available bits of the last DCT coefficient.