20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: mbprediction.c,v 1.13.2.9 2003-10-01 23:23:01 edgomez Exp $ |
* $Id: mbprediction.c,v 1.13.2.10 2003-10-03 16:57:55 edgomez Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
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) { |