jpeg2000: Compute quantization for 'scalar derived' in the correct case.