jpeg2000: Optimize dequantization