Abstract: A bit allocation method which facilitate control of the number of bits to be assigned to transform coefficients and block of image data with a deviation from the functional form. An image coding system which can implement an optimal bit allocation that minimizes quantization error under a predetermined information content or amount, in carrying out bit allocations of block-adaptive type and transform coefficient-adaptive type.