The invention provides an entropy coding structure and a realization method, which belong to the technical field of
digital video coding and decoding. In the invention, the whole entropy coder is divided into two stages of
assembly line structures, and the generation and coding of
macro block header parameters are finished in different
assembly line stages, so
waiting time is avoided, and simultaneously, coding time is rationally distributed. A single-path
assembly line
hardware structure is adopted in each stage of
assembly line, and compared with the conventional multipath parallel structure, the plurality of stages of
assembly line structures adopted by the whole
variable length coding module finish the operations of
one stage only within 1 hour, and the entropy coder provided by the invention can finish once
variable length coding in 1 hour; and simultaneously, sequentially coded
macro block header information and residual coefficients
multiplex a set of Columbus coding and code
stream splicing device, so hardware cost is saved, and
resource utilization rate is increased. In addition, unified laying-out is performed on a
variable length coding (VLC)
code table used by the variable length coding, and the using number of
random access memories (RAM) is reduced.