| Algorithm 5 Variable bit-length ADPCM encoder. |
|
Require:P // N bit Pixel element. 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 // ADPCM value. if then return end if if then if then else end if end if if then end if if then end if if then if then else end if else if then else end if end if |