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); |
iQuant, iDcScaler, predictors, bound, dec->bs_version); |
307 |
if (!acpred_flag) { |
if (!acpred_flag) { |
308 |
pMB->acpred_directions[i] = 0; |
pMB->acpred_directions[i] = 0; |
309 |
} |
} |
815 |
mb_height = (dec->height + 31) / 32; |
mb_height = (dec->height + 31) / 32; |
816 |
} |
} |
817 |
|
|
818 |
|
if (!dec->is_edged[0]) { |
819 |
start_timer(); |
start_timer(); |
820 |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
821 |
dec->width, dec->height, dec->bs_version); |
dec->width, dec->height, dec->bs_version); |
822 |
|
dec->is_edged[0] = 1; |
823 |
stop_edges_timer(); |
stop_edges_timer(); |
824 |
|
} |
825 |
|
|
826 |
if (gmc_warp) { |
if (gmc_warp) { |
827 |
/* accuracy: 0==1/2, 1=1/4, 2=1/8, 3=1/16 */ |
/* accuracy: 0==1/2, 1=1/4, 2=1/8, 3=1/16 */ |
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}; |
1221 |
const int64_t TRB = dec->time_pp - dec->time_bp, TRD = dec->time_pp; |
const int32_t TRB = dec->time_pp - dec->time_bp, TRD = dec->time_pp; |
1222 |
int i; |
int i; |
1223 |
|
|
1224 |
|
if (!dec->is_edged[0]) { |
1225 |
start_timer(); |
start_timer(); |
1226 |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
1227 |
dec->width, dec->height, dec->bs_version); |
dec->width, dec->height, dec->bs_version); |
1228 |
|
dec->is_edged[0] = 1; |
1229 |
|
stop_edges_timer(); |
1230 |
|
} |
1231 |
|
|
1232 |
|
if (!dec->is_edged[1]) { |
1233 |
|
start_timer(); |
1234 |
image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height, |
1235 |
dec->width, dec->height, dec->bs_version); |
dec->width, dec->height, dec->bs_version); |
1236 |
|
dec->is_edged[1] = 1; |
1237 |
stop_edges_timer(); |
stop_edges_timer(); |
1238 |
|
} |
1239 |
|
|
1240 |
for (y = 0; y < dec->mb_height; y++) { |
for (y = 0; y < dec->mb_height; y++) { |
1241 |
/* Initialize Pred Motion Vector */ |
/* Initialize Pred Motion Vector */ |
1559 |
} |
} |
1560 |
|
|
1561 |
image_swap(&dec->refn[0], &dec->refn[1]); |
image_swap(&dec->refn[0], &dec->refn[1]); |
1562 |
|
dec->is_edged[1] = dec->is_edged[0]; |
1563 |
image_swap(&dec->cur, &dec->refn[0]); |
image_swap(&dec->cur, &dec->refn[0]); |
1564 |
|
dec->is_edged[0] = 0; |
1565 |
SWAP(MACROBLOCK *, dec->mbs, dec->last_mbs); |
SWAP(MACROBLOCK *, dec->mbs, dec->last_mbs); |
1566 |
dec->last_reduced_resolution = reduced_resolution; |
dec->last_reduced_resolution = reduced_resolution; |
1567 |
dec->last_coding_type = coding_type; |
dec->last_coding_type = coding_type; |