摘要 |
A method of obtaining a quantisation value for macroblocks of a picture for video compression includes estimating 11, for a plurality of quantisation values, a size of the picture in terms of a sum of all quantised coded coefficients. A linear relationship between a size of a macroblock and Activity of the macroblocks is assumed 12, where the Activity of the macroblock is the number of coded coefficients in the macroblock before discarding any coefficients or quantising the remaining coefficients. The macroblocks are divided 13 into groups by their Activity level such that substantially a same number of pre-quantisation coefficients are in each group. An average Activity of each group is determined 14. A quantisation value for each group is determined 15 from the assumed linear relationship between a number of bits per macroblock and Activity of the macroblocks and the average Activity of the group, as imposed by a predetermined bit rate. |