摘要 |
A variable bit-rate encoding device is provided that can perform a variable bit-rate encoding process at high rate. The subtracter 103 calculates a predictive error between compressed frame data and motion-compensated reference frame data and then outputs it to the code-amount allocator 107. The code-amount allocator 107 calculates and stores the power for each unit section of a predictive error. Thus, at the time the image data has been completely processed, a target code amount allocated to each unit section in a second pass encoding is decided based on the power of a predictive error of the whole image data and based on the power of a predictive error for each unit section. The motion vector memory 114 stores a motion vector for each macroblock. Upon an actual second pass encoding, the motion compensator 115 motion-compensates the reference frame input from the frame memory 116 according to the motion vector value and then outputs the motion-compensated reference frame to the subtracter 113.
|