摘要 |
A method of and system for encoding a sequence of pictures without overflowing or underflowing a decoder buffer is disclosed. In one embodiment, the method uses a single-pass algorithm to store picture data that has been encoded using an MPEG standard. The method is used to monitor a characteristic of a macroblock, such as the type of picture encoded within the macroblock (e.g., I-picture, B-picture, and P-picture). A storage parameter based on the type of picture is dynamically generated and used to store the macroblock. Storage parameters include any combination of bits allocation, quantization step, or other parameters that ensure that the decoder buffer neither overflows nor underflows. Storage parameters are determined for the current picture, on-the-fly, and are thus optimized. A decoder buffer is well suited for providing smooth pictures during scene cuts and scene changes.
|