| Algorithm 6 Variable bit-length ADPCM decoder. |
|
Require:p // ADPCM value. Require: M // bits of the current ADPCM value. Require: // if the predicted offset is initialized or not. Require: // a predicted offset to be initialized. Require: // if the is initialized or not. Require: // an original data to be set to . Ensure: P // N bit Pixel element. if then return end if if then if then else end if end if if then end if if then end if if then else end if |