Patent ID: 8140343

Claim:
A signal encoding method, comprising: encoding a core layer signal to obtain a core layer signal code; selecting an enhancement sample point from a plurality of sample points, wherein the enhanced sample point that requires enhancement layer signal encoding according to the core layer signal code and a number of bits that can be used by an enhancement layer, wherein N indicates a total number of the sample points, wherein n indicates a sequence number for each sample point, wherein 0≦n≦N−1, and wherein selecting the enhancement sample point further comprises: obtaining a moving average value of a specified signal of a sample point numbered n, wherein the moving average value is an average value of absolute values of specified signals of sample points numbered less than n; and determining whether the sample point numbered n is the enhancement sample point according to the moving average value; obtaining an enhancement layer signal code of the enhancement sample point; and outputting a bit stream that comprises the core layer signal code and the enhancement layer signal code.