frame: Use bitutil.DecodeUnary and pre-allocate samples instead of using append.