Patent ID: 8861596

Claim:
An image encoding device comprising: an image rearrangement unit configured to perform rearrangement of image data in a sequence of pictures from a display sequence to an encoding sequence in accordance with a Group of Picture (GOP) configuration; a first encoding unit configured to perform: (a) calculation of a first generated code amount at a time of performing encoding of said rearranged image data using a fixed quantizing parameter, and (b) block distinction regarding whether a macro block is one of an intra-block for performing temporal prediction and an inter block for performing spatial prediction regarding a picture for performing prediction of a temporal direction; a code amount control unit configured: (a) to set a first offset amount of a first quantizing parameter, so as to have a predetermined code amount to be assigned to a non-I picture which references many images, according to a ratio, wherein said ratio is calculated between said intra block for performing temporal prediction and said inter block for performing spatial prediction regarding said picture for performing prediction of said temporal direction based on said block distinction performed at said first encoding unit, (b) to determine a second quantizing parameter based on said first generated code amount, so that a predicted generated code amount at the time of performing encoding using said first quantizing parameter, realizes a first target generated code amount, wherein said first quantizing parameter is a offset with said first offset amount, (c) to calculate a high-frequency component cost indicating a state of a high-frequency component in said non-I picture, and (d) to correct said predicted generated code amount based on said calculated high-frequency component cost; and a second encoding unit configured to perform encoding of said rearranged image data using said first quantizing parameter for realizing said first target generated code amount.