compressor: Partial rewrite based on new RingBuf.
neon: Use new RingBuf.  Also correct a couple of errors.