Method for encoding parallel series entropy and apparatus thereof

The present invention discloses a parallel entropy coding method and a device thereof, belonging to the video coding decoding field. The method comprises the following steps of grouping the quantification coefficient of each transform block to parallelly input to and output to two register blocks, firstly; afterwards, scanning the coding coefficient (run, level) of each group of the quantificationcoefficient; selecting a code table of the current quantification coefficient according to the maximum value of the level of the coded coefficient, and selecting the code table of the transforms block EOB according to the maximum value of the level of all coding coefficients; finally, transforming the selected code table to a bit wide table, and calculating the bit number of the code of the transform block. The device comprises a data input transcription module, a run coding module, a reverse order matrix module, a code table selection module, a table look-up module, a Golomb coding module, and a bit number module of an addition transform module. The method and the device largely improve the speed of data processing, optimize the table, and at the same time, save the hardware resources.