factor out de- and encoding of the list of supported pixel encodings