Patent ID: 8918314

Claim:
An encoding apparatus comprising: a first layer encoder that encodes an input signal to acquire first layer encoded data; a first layer decoder that decodes the first layer encoded data to acquire a first layer decoded signal; a weighting filter that filters a first layer error signal that is a difference between the input signal and the first layer decoded data to acquire a weighted first layer error signal; a first layer error transform coefficient calculator that transforms the weighted first layer error signal into a frequency domain to calculate a first layer error transform coefficient; and a second layer encoder that encodes the first layer error transform coefficient to acquire second layer encoded data, wherein the second layer encoder comprises: a first shape vector encoder that refers the first layer error transform coefficient included in a first band which contains a second band in a lower frequency than a predetermined frequency and has a predetermined first bandwidth, to generate a first shape vector by arranging a predetermined number of pulses in the first band, and to generate first shape encoded information from positions of the predetermined number of pulses; a target gain calculator that calculates a target gain per subband having a predetermined second bandwidth, using the first layer error transform coefficient and the first shape vector included in the first band; a gain vector generator that generates a gain vector using a plurality of the target gains calculated per subband; and a gain vector encoder that encodes the gain vector to acquire first gain encoded information.