float q = (coeff_num == 0) ? 1.0 : (quant_matrix[coeff_num] * quant_scalefac / 128.0 / sqrt(2.0)); // FIXME: fold
q *= (1.0 / 255.0);
//int w = (coeff_num == 0) ? 32 : int(quant_matrix[coeff_num]);
- int last_k = 0;
+ int last_k = 128;
pick_timer(start, local_timing[0]);
// DC coefficient pred from the right to left (within each slice)
for (unsigned block_idx = 0; block_idx < NUM_BLOCKS; block_idx += 320) {
- int prev_k = 0;
+ int prev_k = 128;
for (unsigned subblock_idx = 320; subblock_idx --> 0; ) {
unsigned yb = (block_idx + subblock_idx) / WIDTH_BLOCKS;