frame: Implement rice2 decoding.