Patent ID: 8306347

Claim:
A method for representing video data related to a macroblock of a video image in a coding procedure, said method comprising: representing, with a processor, one or more of size of quantized transform coefficients, number of nonzero quantized transform coefficients in a block, position of a last nonzero quantized transform coefficients in a block, coding mode, or Coded Block Pattern with indexed positions in a Variable Length Code (VLC) table including codes assigned to each indexed position; determining, with the processor, that a predetermined value of the one or more of size of quantized transform coefficients, number of nonzero quantized transform coefficients in a block, position of a last nonzero quantized transform coefficients in a block, coding mode, or Coded Block Pattern occurs in the video data during the coding procedure; coding, with the processor, at least part of the video data with a code assigned to a position x in the VLC table associated with the predetermined value of the one or more of size of quantized transform coefficients, number of nonzero quantized transform coefficients in a block, position of a last nonzero quantized transform coefficients in a block, coding mode, or Coded Block Pattern that occurred in the video data during the coding procedure, the VLC table being stored in a memory device; determining, with the processor, whether x>0, wherein 0 denotes a position at a top of the VLC table; and rearranging, with the processor, the VLC table by associating a different predetermined value of the one or more of size of quantized transform coefficients, number of nonzero quantized transform coefficients in a block, position of a last nonzero quantized transform coefficients in a block, coding mode, or Coded Block Pattern currently associated with a position x−1 with the position x, and associating the predetermined value of the one or more of size of quantized transform coefficients, number of nonzero quantized transform coefficients in a block, position of a last nonzero quantized transform coefficients in a block, coding mode, or Coded Block Pattern that occurred in the video data during the coding procedure with the position x−1.