摘要 |
The present invention is to provide a variable length decoding method for decoding complete binary tree code, which is implemented to an entropy coding module for executing the process comprising the steps of: procuring a TabIndex to calculate a value T=└log<SUB>2</SUB>(TabIndex)┘; reading T bits from a bitstream to obtain a first result M; determining whether or not the result M is smaller than (TabIndex-(1<<T)); if not, obtaining Index equal to (1<<T)-M-1; otherwise, reading 1 bits from the bitstream to obtain a second result N; and then obtaining Index equal to TabIndex-2xM-N-1, so as to decode data stream of video more efficiently and fast.
|