Patent ID: 8909521

Claim:
A coding method, comprising: a selection step of selecting a coding method that produces a smaller code amount between a prediction coding method that codes an amplitude of a prediction error resulting from linear prediction of samples in a frame and a normalization coding method that normalizes an amplitude of the samples in the frame and codes the normalized amplitude, and outputting a selection code that indicates the selection result; and a coding step of coding the samples in the frame according to the selected coding method to produce a compression code, wherein the selection step comprises: a prediction coefficient producing sub-step of producing one or more prediction coefficients used for the linear prediction from the samples in the frame; a range calculating sub-step of calculating a range U based on values of all samples in the frame; and a selection result output sub-step of outputting the selection code that indicates to select the prediction coding method, if any one of the prediction coefficients is greater than a predetermined first threshold, and the range U is greater than a predetermined third threshold.