Patent ID: 8040947

Claim:
A code amount control device for controlling code amounts obtained as a result of compression coding in performing a compression coding on a moving image, the device comprising: a setting section configured to set, for each frame, a target code amount for maintaining a generated code amount per unit time of an image group configured by a plurality of frames as a target code amount to be used when performing the compression coding on an image of each frame; a correcting section configured to correct the target code amount set by the setting section based on predetermined information; a prohibiting section configured to prohibit the correcting section from performing an increasing correction operation of the target code amount based on the predetermined information in a case in which an incremental code amount by the correction exceeds a stored code amount of a virtual storage management buffer; a storage amount managing section configured to add a code amount corresponding to a reduction of the target code amount obtained by the correction by the correcting section to the stored code amount of the storage management buffer while having a predetermined storage amount as a limit, and to subtract a code amount corresponding to an increase of the target code amount obtained by the correction by the correcting section from the stored code amount of the storage management buffer; and a coding section configured to perform compression coding on an image of each frame in accordance with the target code amount corrected by the correcting section, wherein the storage amount managing section adds a code amount, as the code amount corresponding to the reduction of the target code amount obtained by the correction by the correcting section, to the stored code amount of the storage management buffer, the code amount being obtained by subtracting, from an assigned code amount that is assigned to all remaining images of the image group after performing the compression coding by the coding section based on the corrected target code amount, a code amount obtained by multiplying a reduction rate to the assigned code amount, the reduction rate being a rate of the corrected target code amount with respect to the target code amount before the correction.