Differential pulse-code modulation
Differential pulse-code modulation (DPCM) encodes changes between consecutive samples of a signal, rather than the signal's value directly (as done in pulse-code modulation). Decoding might thus be done by some manner of integrating DPCM samples over time. The input can be an analog signal or a digital signal.
If the input is a continuous-time analog signal, it needs to be sampled to become a discrete-time signal. Two methods to encode each DPCM value are:
- Method 1: First, quantize the samples (if not quantized already). The output is the difference between the current and previous sample.
- Method 2: Quantize the difference between the current sample and the output of a local decoder.
Applying one of these two methods, short-term redundancy (positive correlation of nearby values) of the signal is eliminated; compression ratios on the order of 2 to 4 can be achieved if differences are subsequently entropy coded, because the entropy of the difference signal is much smaller than that of the original discrete signal treated as independent samples. But removing this redundancy makes the encoded signal more fragile.