摘要 |
An image encoding apparatus includes a calculation unit for calculating complexity from pixel values of an input image, the complexity representing a code amount generated by prediction encoding each block included in a prediction target region of the input image, and an allocation unit for allocating a code amount to each block based on the calculated complexity of each block and an allowable code amount previously set for the prediction target region. The apparatus further includes a determination unit for determining an encoding parameter corresponding to each block based on the complexity of each block and the code amount allocated to each block, and an encoding unit for encoding each block by using the determined encoding parameter of each block. Finally, the apparatus includes a resetting unit for resetting the allowable code amount for a next prediction target region based on an occupancy amount of a buffer.
|