Patent AU-2018200238-B2 (AU)
Title: Signal processing method and apparatus
Inventor: ZHOU XUAN
IPC: G10L19/002
Filed: 2018-01-11
Granted: 2019-07-11
Abstract: Embodiments of the present invention provide a signal processing method and apparatus. The method includes: determining a total quantity of to-be-allocated bits corresponding to a current frame; implementing primary bit allocation on to-be-processed sub-bands; performing a primary information unit quantity determining operation for each sub-band that has undergone the primary bit allocation, so as to obtain a quantity of information units corresponding to each sub-band of the to-be-processed sub-bands and a total quantity of surplus bits; selecting sub-bands for secondary bit allocation from the to-be-processed sub-bands according to at least one of a sub-band characteristic of each sub-band of the to-be-processed sub-bands or the total quantity of surplus bits; implementing secondary bit allocation on the sub-bands for secondary bit allocation; and performing, according to the quantities of primarily allocated bits and quantities of secondarily allocated bits of the sub-bands for secondary bit allocation, a secondary information unit quantity determining operation for each sub-band of the sub-bands for secondary bit allocation, so as to re-obtain a quantity of information units corresponding to each sub-band of the sub-bands for secondary bit allocation. In the embodiments of the present invention, a waste of bits can be avoided, and encoding and decoding quality can be improved. Determine a total quantity of to-be-allocated bits corresponding to to-be-processed sub-bands of a current frame Implement primary bit allocation on each sub-band of the to-be- S120 processed sub-bands according to the total quantity of to-be allocated bits, so as to obtain a quantity of primarily allocated bits of each sub-band of the to-be-processed sub-bands Perform, according to the quantity of primarily allocated bits of each sub-band, a primary information unit quantity determining operation for each sub-band of the to-be-processed sub-bands that S130 has undergone the primary bit allocation, so as to obtain a total quantity of surplus bits of the current frame and a quantity of information units corresponding to each sub-band of the to-be processed sub-bands Select sub-bands for secondary bit allocation from the to-be processed sub-bands according to a secondary bit allocation parameter Implement secondary bit allocation on the sub-bands for secondary S150 bit allocation, so as to allocate the surplus bits to the sub-bands for secondary bit allocation and obtain a quantity of secondarily allocated bits of each sub-band of the sub-bands for secondary bit allocation of the current frame Perform, according to the bits obtained when the primary bit allocation is performed for the sub-bands for secondary bit allocation and the bits obtained when the secondary bit allocation is S160 performed, a secondary information unit quantity determining operation for each sub-band of the sub-bands for secondary bit allocation, so as to re-obtain a quantity of information units corresponding to each sub-band of the sub-bands for secondary bit allocation of the current frame