Patent ID: 9538191
Date: 2017-01-03
CPC Classifications: H04N

Claim:
1. A moving image coding apparatus that codes a moving image signal for forming a frame image including a plurality of macroblocks, and controls an amount of code to be generated in coding the moving image signal, the apparatus comprising: a target code amount setting unit configured to designate the number of said macroblocks in said plurality of macroblocks and set a target code amount as a code amount to be allocated to the designated number of said macroblocks; a quantization parameter determination unit configured to determine a quantization parameter value to be used in quantization performed in coding the moving image signal and allocate a code amount to a current macroblock that is a processing target macroblock in accordance with the target code amount and code amounts used for a plurality of previously processed ones of said plurality of macroblocks; and a coding unit configured to code the moving image signal and perform quantization with respect to the moving image signal using the quantization parameter value determined by the quantization parameter determination unit, wherein the coding unit includes a storage unit configured to store at least one previous frame image, and a motion estimate unit configured to obtain a difference image by extracting a reference frame image from the at least one previous frame image stored in the storage unit and calculating a difference between the current macroblock and an image region of the reference frame image having the same size as the current macroblock, obtain a sum of absolute transformed differences of the obtained difference image, and calculate a motion vector based on the obtained sum of absolute transformed differences, and the quantization parameter determination unit determines the quantization parameter value based on the sum of absolute transformed differences for the current macroblock obtained by the motion estimate unit.