frame: Reimplement riceDecode.