Enable combination of trellis quantization and scan optimization