y41p encoder and decoder