265 |
|
|
266 |
sum = QuantizeInterBlock(&qcoeff[i * 64], &data[i * 64], iQuant, pParam->m_quant_type); |
sum = QuantizeInterBlock(&qcoeff[i * 64], &data[i * 64], iQuant, pParam->m_quant_type); |
267 |
|
|
268 |
|
if(frame->global_flags & XVID_CARTOON_MODE) { |
269 |
|
limit *= 3; |
270 |
|
} |
271 |
|
|
272 |
if (sum >= limit) { |
if (sum >= limit) { |
273 |
|
|
274 |
start_timer(); |
start_timer(); |
350 |
|
|
351 |
int sum = QuantizeInterBlock(&qcoeff[i * 64], &data[i * 64], pMB->quant, pParam->m_quant_type); |
int sum = QuantizeInterBlock(&qcoeff[i * 64], &data[i * 64], pMB->quant, pParam->m_quant_type); |
352 |
|
|
353 |
|
if(frame->global_flags & XVID_CARTOON_MODE) { |
354 |
|
limit *= 2; |
355 |
|
} |
356 |
|
|
357 |
if ((sum > 2) || (qcoeff[i*64+1] != 0) || (qcoeff[i*64+8] != 0) ) codedecision = 1; |
if ((sum > 2) || (qcoeff[i*64+1] != 0) || (qcoeff[i*64+8] != 0) ) codedecision = 1; |
358 |
else { |
else { |
359 |
if (pMB->mode == MODE_DIRECT || pMB->mode == MODE_DIRECT_NO4V) { |
if (pMB->mode == MODE_DIRECT || pMB->mode == MODE_DIRECT_NO4V) { |