摘要 |
A variable length coding method and a variable length coding apparatus according to the present invention, as shown in FIG. 1, carries out step (a) of performing a VLC process and assigning a code to a combination of (Last, Run, Level), step (b) of subtracting LMAX as the maximum Level corresponding to (Last, Run) from Level to calculate amended Level and thereafter assigning a code to a combination of (Last, Run, amended Level), step (c) of subtracting a value that is obtained by adding 1 and RMAX as the maximum Run corresponding to (Last, Level) from Run to calculate amended Run and thereafter assigning a code to a combination of (Last, amended Run, Level), and step (d) of performing FLC assignment in parallel with each other, and includes step (e) of selecting the code according to predetermined priorities. According to the variable length coding method and the variable length coding apparatus constructed as described above, variable length coding having a reduced number of arithmetic cycles can be performed. |