摘要 |
An object of embodiments of the present invention is to provide an improved gain-shape VQ. This is achieved by determining a number of bits to be allocated to a gain adjustment- and shape-quantizer for a plurality of combinations of a current bit rate and a first signal property. The determined allocated number of bits to the gain adjustment- and shape quantizer should provide a better result for the given bitrate and signal property than using a single fixed allocation scheme. That can be achieved by deriving the bit allocation by using an average of optimal bit allocations for a training data set. Thus by pre-calculating a number of bits to the gain adjustment and the shape quantizers for a plurality of combinations of the bit rate and a first signal property and creating a table indicating the number of bits to be allocated to the gain adjustment- and the shape-quantizers for a plurality of combinations of the bit rate and a first signal property. In this way, the table can be used for achieving an improved bit allocation. |