Patent ID: 7620104

Claim:
A video coding system for performing video coding through DCT (Discrete Cosine Transform), MC (Motion Compensation) and ME (Motion Estimation), comprising: an MC unit for producing an MAD (Mean Absolute Difference) value of a current macroblock; a control unit for estimating the number of bits of the current macroblock based on the MAD value and a QP (Quantization Parameter) and controlling an end of a VP (Video Packet); and a VLC (Variable length coding) unit for performing the ME, texture coding, and a packing task associated with all macroblocks of the VP under control of the control unit, wherein the MAD value is a value produced by dividing a sum of absolute values of pixels by constant number after calculating a difference value between current frame data and motion estimation data for a single macroblock, wherein the control unit estimates the number of bits of the current macroblock by means of an equation and decides the end of the VP when a value of adding a “bit_est” value to a sum of the number of bits of up to a previous macroblock is larger than a predetermined target VP length, and wherein the equation is “bit_est=k×(MAD/QP)+offset” where “bit_est” denotes the estimated number of bits, “k” denotes a constant produced by experimentation, and “offset” is a parameter for controlling the probability of a macroblock to be coded within the estimated number of bits, whereby a reading/writing operation associated with a VLC memory, a shift operation and a logic operation are not additionally required after macroblock coding or video packet coding is completed.