Add get_mode CTL for the encoder and decoder.