摘要 |
PROBLEM TO BE SOLVED: To provide an image encoder performing code amount control corresponding to a system transmitting video in realtime.SOLUTION: An image encoder 2 inputs uncompressed image data 31a, 31b. An encoding unit 22 encodes the macro blocks of the uncompressed image data 31a, 31b, based on the order information 41 indicating the encoding order of the macro block of the uncompressed image data 31a, 31b. An initial value determination unit 232 determines the initial value of a quantized parameter QP of an encoded MB. A generation code amount integration unit 231 integrates the generation code amount of a predetermined number of macro blocks encoded immediately before encoding the encoded MB. A correction value determination unit 233 determines a correction value V1 for use in correction of the initial value, based on the target code amount per predetermined number of macro blocks, and the integrated value of the generation code amount of a predetermined number of macro blocks. The quantized parameter QP of an encoded MB is determined by adding the initial value and the correction value V1. |