Patent ID: 8385405

Claim:
A coding device configured to encode discrete cosine transform (DCT) coefficients corresponding to at least one pixel, the DCT coefficients having been run-length encoded into a Run value, a Level value and a Last value, the coding device comprising: a bit-precision selecting unit; and a coding unit operatively connected to the bit-precision selecting unit, wherein the bit-precision selecting unit is configured to encode the Run value and the Level value according to each of a plurality of predetermined bit-precision values, and select a bit-precision value, among the plurality of predetermined bit-precision values, corresponding to an encoded Run value and an encoded Level value having a lowest volume, wherein the coding unit is configured to generate a bit-stream by encoding the Run value and the Level value according to the selected bit- precision value, and encoding the Last value independent of the bit-precision value, and wherein the selected bit-precision value is inserted into the bit-stream.