Patent ID: 8755617

Claim:
An image encoding device comprising: a first encoding unit configured to perform encoding of image data using a fixed quantizing parameter to calculate a first generated code amount; a second encoding unit configured to perform encoding of said image data using a plurality of different quantizing parameters for each of said quantizing parameters as the image data of an ultra picture to calculate a second generated code amount for each of the different quantizing parameters; a code amount control unit configured to determine a quantizing parameter by performing prediction of (a) a predicted quantizing parameter for realizing a target generated code amount based on the first generated code amount, and (b) a predicted generated code amount at the time of employing this quantizing parameter based on the first generated code amount calculated at said first encoding unit, and the code amount control unit configured to correct this predicted generated code amount according to the second generated code amounts calculated at said second encoding unit when said target generated code amount is for 1 GOP (group of pictures) such that the generated code amount after correction is equal to or smaller than said target generated code amount and when said target generated code amount is not 1 GOP of the corrected generated code amount, prediction of the predicted generated code amount and correction thereof are performed by changing a parameter value of the predicted quantizing parameter; and a third encoding unit configured to perform encoding of said image data using the quantizing parameter determined at said code amount control unit.