 The adaptive encoding uses the probabilities from the previous sample in sound encoding, from the left and upper pixel in image encoding, and additionally from the previous frame in video encoding.In the wavelet transformation, the probabilities are also passed through the hierarchy.Many of these methods are implemented in open-source and proprietary tools, particularly LZW and its variants.