4 |
* - Decoder Module - |
* - Decoder Module - |
5 |
* |
* |
6 |
* Copyright(C) 2002 MinChen <chenm001@163.com> |
* Copyright(C) 2002 MinChen <chenm001@163.com> |
7 |
* 2002-2003 Peter Ross <pross@xvid.org> |
* 2002-2004 Peter Ross <pross@xvid.org> |
8 |
* |
* |
9 |
* This program is free software ; you can redistribute it and/or modify |
* This program is free software ; you can redistribute it and/or modify |
10 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
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 |
} |
} |
1361 |
xvid_dec_frame_t * frame, xvid_dec_stats_t * stats, |
xvid_dec_frame_t * frame, xvid_dec_stats_t * stats, |
1362 |
int coding_type, int quant) |
int coding_type, int quant) |
1363 |
{ |
{ |
1364 |
|
const int brightness = XVID_VERSION_MINOR(frame->version) >= 1 ? frame->brightness : 0; |
1365 |
|
|
1366 |
if (dec->cartoon_mode) |
if (dec->cartoon_mode) |
1367 |
frame->general &= ~XVID_FILMEFFECT; |
frame->general &= ~XVID_FILMEFFECT; |
1368 |
|
|
1369 |
if (frame->general & (XVID_DEBLOCKY|XVID_DEBLOCKUV|XVID_FILMEFFECT) && mbs != NULL) /* post process */ |
if ((frame->general & (XVID_DEBLOCKY|XVID_DEBLOCKUV|XVID_FILMEFFECT) || brightness!=0) |
1370 |
|
&& mbs != NULL) /* post process */ |
1371 |
{ |
{ |
1372 |
/* note: image is stored to tmp */ |
/* note: image is stored to tmp */ |
1373 |
image_copy(&dec->tmp, img, dec->edged_width, dec->height); |
image_copy(&dec->tmp, img, dec->edged_width, dec->height); |
1374 |
image_postproc(&dec->postproc, &dec->tmp, dec->edged_width, |
image_postproc(&dec->postproc, &dec->tmp, dec->edged_width, |
1375 |
mbs, dec->mb_width, dec->mb_height, dec->mb_width, |
mbs, dec->mb_width, dec->mb_height, dec->mb_width, |
1376 |
frame->general, dec->frames, (coding_type == B_VOP)); |
frame->general, brightness, dec->frames, (coding_type == B_VOP)); |
1377 |
img = &dec->tmp; |
img = &dec->tmp; |
1378 |
} |
} |
1379 |
|
|