303 |
|
|
304 |
start_timer(); |
start_timer(); |
305 |
predict_acdc(dec->mbs, x_pos, y_pos, dec->mb_width, i, &block[i * 64], |
predict_acdc(dec->mbs, x_pos, y_pos, dec->mb_width, i, &block[i * 64], |
306 |
iQuant, iDcScaler, predictors, bound, dec->bs_version); |
iQuant, iDcScaler, predictors, bound); |
307 |
if (!acpred_flag) { |
if (!acpred_flag) { |
308 |
pMB->acpred_directions[i] = 0; |
pMB->acpred_directions[i] = 0; |
309 |
} |
} |
339 |
stop_coding_timer(); |
stop_coding_timer(); |
340 |
|
|
341 |
start_timer(); |
start_timer(); |
342 |
add_acdc(pMB, i, &block[i * 64], iDcScaler, predictors); |
add_acdc(pMB, i, &block[i * 64], iDcScaler, predictors, dec->bs_version); |
343 |
stop_prediction_timer(); |
stop_prediction_timer(); |
344 |
|
|
345 |
start_timer(); |
start_timer(); |
1218 |
uint32_t x, y; |
uint32_t x, y; |
1219 |
VECTOR mv; |
VECTOR mv; |
1220 |
const VECTOR zeromv = {0,0}; |
const VECTOR zeromv = {0,0}; |
|
const int32_t TRB = dec->time_pp - dec->time_bp, TRD = dec->time_pp; |
|
1221 |
int i; |
int i; |
1222 |
|
|
1223 |
if (!dec->is_edged[0]) { |
if (!dec->is_edged[0]) { |
1321 |
|
|
1322 |
case MODE_DIRECT_NONE_MV: |
case MODE_DIRECT_NONE_MV: |
1323 |
for (i = 0; i < 4; i++) { |
for (i = 0; i < 4; i++) { |
1324 |
mb->mvs[i].x = (int32_t) ((TRB * last_mb->mvs[i].x) / TRD + mv.x); |
mb->mvs[i].x = last_mb->mvs[i].x*dec->time_bp/dec->time_pp + mv.x; |
1325 |
mb->b_mvs[i].x = (int32_t) ((mv.x == 0) |
mb->mvs[i].y = last_mb->mvs[i].y*dec->time_bp/dec->time_pp + mv.y; |
1326 |
? ((TRB - TRD) * last_mb->mvs[i].x) / TRD |
|
1327 |
: mb->mvs[i].x - last_mb->mvs[i].x); |
mb->b_mvs[i].x = (mv.x) |
1328 |
mb->mvs[i].y = (int32_t) ((TRB * last_mb->mvs[i].y) / TRD + mv.y); |
? mb->mvs[i].x - last_mb->mvs[i].x |
1329 |
mb->b_mvs[i].y = (int32_t) ((mv.y == 0) |
: last_mb->mvs[i].x*(dec->time_bp - dec->time_pp)/dec->time_pp; |
1330 |
? ((TRB - TRD) * last_mb->mvs[i].y) / TRD |
mb->b_mvs[i].y = (mv.y) |
1331 |
: mb->mvs[i].y - last_mb->mvs[i].y); |
? mb->mvs[i].y - last_mb->mvs[i].y |
1332 |
|
: last_mb->mvs[i].y*(dec->time_bp - dec->time_pp)/dec->time_pp; |
1333 |
} |
} |
1334 |
|
|
1335 |
decoder_bf_interpolate_mbinter(dec, dec->refn[1], dec->refn[0], |
decoder_bf_interpolate_mbinter(dec, dec->refn[1], dec->refn[0], |
1573 |
|
|
1574 |
if (dec->low_delay) { |
if (dec->low_delay) { |
1575 |
DPRINTF(XVID_DEBUG_ERROR, "warning: bvop found in low_delay==1 stream\n"); |
DPRINTF(XVID_DEBUG_ERROR, "warning: bvop found in low_delay==1 stream\n"); |
1576 |
dec->low_delay = 1; |
dec->low_delay = 0; |
1577 |
} |
} |
1578 |
|
|
1579 |
if (dec->frames < 2) { |
if (dec->frames < 2) { |