摘要 |
The present invention provides an apparatus and method for coding moving pictures, which reduces a delay time generated by buffering of a decoding apparatus in compressive coding of the moving pictures. In this invention, the target number of bits of one picture P as a target value of the number of generated bits per one picture is set as well as the upper limit number of bits uCg as an upper limit value of the number of generated bits of the picture is set. Then, when the cumulative number of generated bits Cg generated from the first macroblock to a macroblock which is being coded in the picture exceeds the upper limit number of bits uCg in the middle of the picture which is being coded, the coding of a macroblock is skipped to avoid underflow. When the cumulative number of generated bits Cg does not reach the target number of bits of one picture P after the picture has been coded to the end, the stuffing is performed so that the cumulative number of generated bits of one picture Cg reaches the target number of bits of one picture P.
|