Patent ID: 7675437

Claim:
A method for improving variable length decoding performance, wherein a variable length decoding module decodes a coded data to obtain a decoded data and a subsequent module receives the decoded data to perform further processing, and the method comprising: coupling a buffering module between the variable length decoding module and the subsequent module, and buffering the decoded data decoded by the variable length decoding module, wherein the buffering module comprises a first memory and a second memory, and each capacity of the first memory and the second memory is exactly sufficient to store a data block of the decoded data; and clearing a read part of the buffering module so that a content of an unused area of the buffering module is a predetermined value when the subsequent module reads the decoded data from the buffering module, wherein the unused area is a part of the buffering module except for the unread decoded data, wherein the variable length decoding module does not write zero values of the decoded data into the buffering module when the variable length decoding module reads a zero output instruction among the coded data.