Encoder/Decoder implementation for DEC SIXEL graphics