context: read codebook and residuals, quantize