Deduplicate RGB compression code

In read-rgb-strip, merge codes dealing with different compressions