Encoding and decoding of parameters