frame: Implement decoding of Rice encoded residuals.