frame: Initial work on DecodeResidual.