347 |
qcoeff[0] = qcoeff[0] - predictors[0]; |
qcoeff[0] = qcoeff[0] - predictors[0]; |
348 |
|
|
349 |
/* calc cost before ac prediction */ |
/* calc cost before ac prediction */ |
|
#ifdef BIGLUT |
|
|
Z2 = CodeCoeff_CalcBits(qcoeff, intra_table, scan_tables[0], 1); |
|
|
#else |
|
350 |
Z2 = CodeCoeffIntra_CalcBits(qcoeff, scan_tables[0]); |
Z2 = CodeCoeffIntra_CalcBits(qcoeff, scan_tables[0]); |
|
#endif |
|
351 |
|
|
352 |
/* apply ac prediction & calc cost*/ |
/* apply ac prediction & calc cost*/ |
353 |
if (direction == 1) { |
if (direction == 1) { |
364 |
} |
} |
365 |
} |
} |
366 |
|
|
|
#ifdef BIGLUT |
|
|
Z1 = CodeCoeff_CalcBits(qcoeff, intra_table, scan_tables[direction], 1); |
|
|
#else |
|
367 |
Z1 = CodeCoeffIntra_CalcBits(qcoeff, scan_tables[direction]); |
Z1 = CodeCoeffIntra_CalcBits(qcoeff, scan_tables[direction]); |
|
#endif |
|
368 |
|
|
369 |
/* undo prediction */ |
/* undo prediction */ |
370 |
if (direction == 1) { |
if (direction == 1) { |