v410 encoder and decoder