Patent ID: 7801214

Claim:
A data processing apparatus for determining quantization scales when encoding processed data, the data processing apparatus comprising: a specifying circuit for specifying a bit rate used to provide encoded data for decoding, the bit rate being based on the encoding of the encoded data; an activity calculation circuit for calculating an activity value indicating a degree of complexity of the processed data, the processed data including blocks of pixel data having pixel values, wherein the activity value is calculated by: determining, using the pixel values, average values corresponding to the blocks, the average values indicating averages of pixel data included in the blocks; determining differences between the average values; and calculating a square sum of the differences; a rearrangement circuit for rearranging the processed data into a sequence of frames of image data, the sequence being based on an order of encoding of the processed data; an index generation circuit for generating index data, serving as an index for specifying an amount of data storage of a storage circuit storing the encoded data at a decoding side; and a quantization control circuit comprising: a target calculation circuit for calculating a target bit rate indicating a target value of the bit rate, wherein the target bit rate is calculated based on the generated index data; an adjustment circuit for generating an adjustment amount to adjust the target bit rate; and a control circuit for calculating the quantization scales based on the bit rate, the adjusted target bit rate, and the activity value, the quantization scales being used to provide the encoded data for decoding.