Coding method, coding apparatus, coding program, and recording medium therefor
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
A lossless coding technique for near-logarithmic companded PCM that achieves high compression performance is provided. In coding, the coding method that produces the smaller code amount is selected between the prediction coding method, which performs linear prediction of samples in a frame and codes the amplitude of the prediction error, and the normalization coding method, which normalizes the amplitude of the samples in the frame and codes the normalized amplitude, and a selection code that indicates the selection result is output. The samples in the frame are coded according to the selected coding method to produce a compression code. In decoding, the compression code is decoded according to a decoding process corresponding to the coding method specified by the selection code.
-
Citations
22 Claims
-
1. 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.
-
-
2. 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 order producing sub-step of producing a prediction order 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 the prediction order is greater than a predetermined second threshold, and the range U is greater than a predetermined third threshold.
-
-
3. 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; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if any one of the one or more prediction coefficients is greater than a predetermined first threshold. - View Dependent Claims (4)
-
-
5. 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 order producing sub-step of producing a prediction order used for the linear prediction from the samples in the frame; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if the prediction order is greater than a predetermined second threshold.
-
-
6. 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 scheme selecting sub-step of selecting a prediction scheme that provides a smaller code amount between a short-term prediction and a long-term prediction for each frame; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if the long-term prediction is selected in the prediction scheme selecting sub-step.
-
-
7. 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 selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if an evaluation value that indicates a deviation of the samples in the frame is smaller than a predetermined fourth threshold.
-
-
8. 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 selection result output sub-step of outputting a selection code that indicates to select the normalization coding method, if it is determined that the difference between a maximum value and a minimum value of the samples in the frame is 1.
-
-
9. 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 error calculating sub-step of calculating a prediction error; a prediction code amount estimating sub-step of estimating the amount of prediction code produced by the prediction coding method, using the prediction error; a range calculating sub-step of calculating a range U based on values of all samples in the frame; an amplitude bit count calculating sub-step of calculating an amplitude bit count V using the range U according to V=log2 U; a normalization code amount estimating sub-step of estimating the amount of normalization code produced by the normalization coding method using the amplitude bit count V; and a selection result output sub-step of outputting a selection code that indicates to select the coding method that produces the smaller code amount between the prediction coding and the normalization coding based on the estimated amount of prediction code and the estimated amount of normalization code.
-
-
10. A coding method, comprising:
-
a prediction coefficient producing step of producing one or more prediction coefficients used for linear prediction from samples in a frame; a range calculating step of calculating a range U based on values of all samples in the frame; a selection result output step of outputting a selection code that indicates to select a prediction coding method that performs linear prediction of the samples in the frame and codes an amplitude of a prediction error, 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; and a coding step of coding the sample in the frame according to the selected coding method to produce a compression code. - View Dependent Claims (11)
-
-
12. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method 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. - View Dependent Claims (22)
-
-
13. A coding apparatus comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a prediction order producing sub-step of producing a prediction order 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 the prediction order is greater than a predetermined second threshold, and the range U is greater than a predetermined third threshold.
-
-
14. A coding apparatus, comprising:
a computer processor configured to; produce one or more prediction coefficients used for the linear prediction from the samples in the frame; calculate a range U based on values of all samples in the frame; output a selection code that indicates to select a prediction coding method that performs linear prediction of the samples in the frame and codes an amplitude of a prediction error, 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; and code the samples in the frame according to the selected coding method to produce a compression code. - View Dependent Claims (15)
-
16. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method 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; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if any one of the one or more prediction coefficients is greater than a predetermined first threshold.
-
-
17. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a prediction order producing sub-step of producing a prediction order used for the linear prediction from the samples in the frame; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if the prediction order is greater than a predetermined second threshold.
-
-
18. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a prediction scheme selecting sub-step of selecting a prediction scheme that provides a smaller code amount between a short-term prediction and a long-term prediction for each frame; and a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if the long-term prediction is selected in the prediction scheme selecting sub-step.
-
-
19. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a selection result output sub-step of outputting a selection code that indicates to select the prediction coding method, if an evaluation value that indicates a deviation of the samples in the frame is smaller than a predetermined fourth threshold.
-
-
20. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a selection result output sub-step of outputting a selection code that indicates to select the normalization coding method, if it is determined that the difference between a maximum value and a minimum value of the samples in the frame is 1.
-
-
21. A coding apparatus, comprising:
-
a computer processor configured to; select 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 output a selection code that indicates the selection result; and code the samples in the frame according to the selected coding method to produce a compression code, wherein the selection of the coding method comprises; a prediction error calculating sub-step of calculating a prediction error; a prediction code amount estimating sub-step of estimating the amount of prediction code produced by the prediction coding method, using the prediction error; a range calculating sub-step of calculating a range U based on values of all samples in the frame; an amplitude bit count calculating sub-step of calculating an amplitude bit count V using the range U according to V=log2 U; a normalization code amount estimating sub-step of estimating the amount of normalization code produced by the normalization coding method using the amplitude bit count V; and a selection result output sub-step of outputting a selection code that indicates to select the coding method that produces the smaller code amount between the prediction coding and the normalization coding based on the estimated amount of prediction code and the estimated amount of normalization code.
-
Specification